You are testing an application that invokes a Lambda function asynchronously. The function fails even after two automated retries during testing. What is the recommended way to capture and investigate the failed events?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure a Dead Letter Queue and send failed events to Amazon SQS for analysis..
Why this is the answer
When an asynchronously invoked Lambda function fails after all retries, the recommended approach to capture and investigate these failures is to configure a Dead Letter Queue (DLQ). By sending failed events to an Amazon SQS queue, you can inspect the event payload, error messages, and other relevant details to understand why the function failed. This allows for debugging and reprocessing of the events as needed. AWS CloudTrail logs API calls made to AWS services, not the internal execution failures of a Lambda function. Amazon Simple Workflow Service (SWF) is a workflow orchestration service and is not primarily designed for capturing and analyzing individual failed Lambda invocations. AWS Config records configuration changes of AWS resources and does not capture or reprocess failed Lambda events.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed