Q92 — AWS SAA-C03 Ch.12
Question 92 of 100 | ← Chapter 12
Q892. A company wants to enhance its ecommerce order-processing application that is deployed on AWS. The application must process each order exactly once without affecting the customer experience during unpredictable traffic surges.Which solution will meet these requirements?
- A. Create an Amazon Simple Queue Service (Amazon SQS) FIFO queue. Put all the orders in the SQS queue. Configure an AWS Lambda function as the target to process the orders. ✓
- B. Create an Amazon Simple Notification Service (Amazon SNS) standard topic. Publish all the orders to the SNS standard topic. Configure the application as a notification target.
- C. Create a flow by using Amazon AppFlow. Send the orders to the flow. Configure an AWS Lambda function as the target to process the orders.
- D. Configure AWS X-Ray in the application to track the order requests. Configure the application to process the orders by pulling the orders from Amazon CloudWatch.
Correct Answer: A. Create an Amazon Simple Queue Service (Amazon SQS) FIFO queue. Put all the orders in the SQS queue. Configure an AWS Lambda function as the target to process the orders.
Explanation
To enhance the ecommerce order-processing application on AWS, ensuring each order is processed exactly once without impacting the customer experience during traffic surges, the following solution can be implemented:A. Create an Amazon Simple Queue Service (Amazon SQS) FIFO queue. Put all the orders in the SQS queue. Configure an AWS Lambda function as the target to process the orders.Amazon SQS is a fully managed message queuing service that enables decoupling of application components and provides reliable and scalable communication between them. By creating an SQS FIFO queue and putting all the orders in the queue, the application can ensure that each order is processed exactly once.Using an SQS FIFO queue ensures the ordering and delivery of messages in the order they are sent. This guarantees that each order will be processed without duplication. By configuring an AWS Lambda function as the target to process the orders, the application can achieve serverless, scalable, and event-driven processing.During traffic surges, the SQS FIFO queue acts as a buffer, allowing the application to handle the unpredictable load without impacting the customer experience. The Lambda function can scale automatically based on the incoming workload, ensuring efficient and timely processing of orders.Option B suggests creating an Amazon Simple Notification Service (Amazon SNS) standard topic and publishing all the orders to it. However, SNS is a pub/sub messaging service and does not provide the guarantee of exactly-once processing. It is not suitable for ensuring every order is processed exactly once.Option C suggests using Amazon AppFlow to send the orders to a flow and configuring an AWS Lambda function as the target. However, AppFlow is primarily used for data integration and not specifically designed for processing orders in an ecommerce application.Option D suggests configuring AWS X-Ray for tracking order requests and processing orders by pulling from Amazon CloudWatch. However, X-Ray is a service for distributed tracing and does not provide the necessary components for exactly-once processing or handling traffic surges.In summary, to enhance the ecommerce order-processing application on AWS, ensuring each order is processed exactly once without impacting the customer experience during traffic surges, creating an SQS FIFO queue and configuring an AWS Lambda function as the target (Option A) is the appropriate solution.