AWS Certified Developer – Associate (DVA-C02) — Question 334

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?

Answer options

Correct answer: C

Explanation

Configuring a dead-letter queue (DLQ) using Amazon SQS or Amazon SNS is the native, lowest-overhead method to capture failed asynchronous AWS Lambda invocations. Once configured, setting the DLQ as an event source allows the Lambda function to automatically process and retry the failed messages with minimal manual intervention. Other approaches involving custom CloudWatch log filtering or manual EventBridge routing introduce unnecessary complexity and operational overhead.