A company is building an ecommerce web application on AWS. The application sends information about new orders to an Amazon API Gateway REST API to process. The company must ensure that orders are processed in the order they are received. Which solution meets this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Use an API Gateway integration to send a message to an Amazon Simple Queue Service (Amazon SQS) FIFO queue when the application receives an order. Configure the SQS FIFO queue to invoke an AWS Lambda function for processing..
Why this is the answer
The correct solution uses an Amazon SQS FIFO (First-In, First-Out) queue because it guarantees the order in which messages are sent and received, which is crucial for processing orders sequentially. API Gateway can directly integrate with SQS to send messages. An AWS Lambda function can then be configured to process messages from the FIFO queue, ensuring orders are processed in the exact order they were received. Using an Amazon SNS topic would not guarantee order, as SNS is a publish/subscribe service primarily for fan-out messaging, not ordered processing. An API Gateway authorizer is for authentication and authorization, not for managing processing order or blocking requests for sequential processing. An SQS standard queue does not guarantee message order, making it unsuitable for this requirement.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed