Topic 1 Question 60
An ecommerce company is using an AWS Lambda function behind Amazon API Gateway as its application tier. To process orders during checkout, the application calls a POST API from the frontend. The POST API invokes the Lambda function asynchronously. In rare situations, the application has not processed orders. The Lambda application logs show no errors or failures. What should a developer do to solve this problem?
Inspect the frontend logs for API failures. Call the POST API manually by using the requests from the log file.
Create and inspect the Lambda dead-letter queue. Troubleshoot the failed functions. Reprocess the events.
Inspect the Lambda logs in Amazon CloudWatch for possible errors. Fix the errors.
Make sure that caching is disabled for the POST API in API Gateway.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: B
Use DLQ
👍 3Dun62023/03/24 - 正解だと思う選択肢: A
A The Lambda function might have not been called since the Lambda logs show no errors or failures. The cause might be that the frontend application does not call the API or an error occurs in the API Gateway processing.
👍 3Untamables2023/03/26 - 正解だと思う選択肢: B
Explanation: By configuring a dead-letter queue (DLQ) for the Lambda function, you can capture asynchronous invocation events that were not successfully processed. This allows you to troubleshoot the failed functions and reprocess the events, ensuring that orders are not missed. The DLQ will hold information about the failed events, allowing you to analyze and resolve the issue.
👍 3gpt_test2023/04/03
シャッフルモード