Topic 1 Question 10
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 wants to ensure that orders are processed in the order that they are received. Which solution will meet these requirements?
Use an API Gateway integration to publish a message to an Amazon Simple Notification Service (Amazon SNS) topic when the application receives an order. Subscribe an AWS Lambda function to the topic to perform processing.
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.
Use an API Gateway authorizer to block any requests while the application processes an order.
Use an API Gateway integration to send a message to an Amazon Simple Queue Service (Amazon SQS) standard queue when the application receives an order. Configure the SQS standard queue to invoke an AWS Lambda function for processing.
ユーザの投票
コメント(17)
- 正解だと思う選択肢: B
B because FIFO is made for that specific purpose
👍 41Sinaneos2022/10/08 - 正解だと思う選択肢: B
Should be B because SQS FIFO queue guarantees message order.
👍 22rein_chau2022/10/08 - 正解だと思う選択肢: B
Keywords:
- Orders are processed in the order that they are received.
A: Incorrect - SNS just for notification like send email, SMS. It don't retain the data in the queue and it's used pub-sub pattern. B: Correct - SQS FIFO will help message process in order. FIFO -> first in first out. C: Incorrect - with this solution we will create blocker app not good app =)) D: Incorrect - SQS standard don't guarantee the order.
👍 8PhucVuu2023/04/04
シャッフルモード