
Answer-first summary for fast verification
Answer: Sending messages to an Amazon SQS FIFO queue and configuring it to invoke a Lambda function for order processing.
The correct answer is B. To ensure that the orders are processed in the order that they are received, an Amazon SQS FIFO (First-In-First-Out) queue should be used. A FIFO queue guarantees that messages are processed exactly in the same sequence in which they are sent. By configuring the SQS FIFO queue to invoke an AWS Lambda function, the system ensures that each order is processed in the correct order. The other options do not guarantee order processing: SNS does not ensure ordering (option A), blocking requests using an API Gateway authorizer is not a practical or scalable solution (option C), and an SQS standard queue does not guarantee ordering (option D).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
For an ecommerce web application on AWS, which AWS service configuration ensures that new orders processed by an Amazon API Gateway REST API are handled in the order received?
A
Publishing to an Amazon SNS topic and subscribing a Lambda function for order processing upon receiving an order.
B
Sending messages to an Amazon SQS FIFO queue and configuring it to invoke a Lambda function for order processing.
C
Using an API Gateway authorizer to block incoming requests during order processing.
D
Sending messages to an Amazon SQS standard queue and configuring it to invoke a Lambda function for order processing.
No comments yet.