AWS Certified Developer – Associate (DVA-C02) — Question 45
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?
Answer options
- A. Inspect the frontend logs for API failures. Call the POST API manually by using the requests from the log file.
- B. Create and inspect the Lambda dead-letter queue. Troubleshoot the failed functions. Reprocess the events.
- C. Inspect the Lambda logs in Amazon CloudWatch for possible errors. Fix the errors.
- D. Make sure that caching is disabled for the POST API in API Gateway.
Correct answer: B
Explanation
The correct answer is B because a dead-letter queue can capture events that fail to be processed, allowing the developer to troubleshoot and reprocess them. Options A and C do not address the possibility of unprocessed events, while D is unrelated to the issue of order processing failures.