QuestionQ106

VerifiedDeployment

A developer has an application that asynchronously invokes an AWS Lambda function. The developer wants to store messages that resulted in failed invocations of the Lambda function so that the application can retry the call later.

What should the developer do to accomplish this goal with the LEAST operational overhead?

Explanation

For asynchronous Lambda invocations, a dead-letter queue (DLQ) is the purpose-built AWS feature to capture and retry failed messages. Lambda automatically routes failed async invocations to the configured DLQ (SQS or SNS) with no additional code required. This requires the least operational overhead compared to manual CloudWatch/S3 solutions or EventBridge workarounds.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!