AWS Certified Developer – Associate (DVA-C02) — Question 188
A developer is testing an application that invokes an AWS Lambda function asynchronously. During the testing phase, the Lambda function fails to process after two retries.
How can the developer troubleshoot the failure?
Answer options
- A. Configure AWS CloudTrail logging to investigate the invocation failures.
- B. Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
- C. Configure Amazon Simple Workflow Service to process any direct unprocessed events.
- D. Configure AWS Config to process any direct unprocessed events.
Correct answer: B
Explanation
The correct answer is B because configuring Dead Letter Queues allows the developer to capture failed events for further analysis, providing insight into why the Lambda function failed. Option A, while useful for logging, does not specifically address troubleshooting failures related to Lambda invocation. Options C and D involve services that are not directly tailored for handling Lambda invocation failures, making them less effective for this scenario.