
Answer-first summary for fast verification
Answer: Creating a dead-letter queue for message storage and setting it as the Lambda function's event source for retries.
The correct answer is C. Implementing a dead-letter queue (DLQ) for discarded messages is a common approach to handle failed invocations. The DLQ stores the failed messages, allowing developers to inspect and retry them later. Setting the DLQ as an event source for the Lambda function enables automatic processing of these failed messages with minimal operational overhead.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer ensure that failed asynchronous invocations of an AWS Lambda function are stored for later retry with minimal operational overhead?
A
Using Amazon CloudWatch Logs to filter and archive messages to S3 for Lambda reprocessing.
B
Utilizing Amazon EventBridge with Amazon SNS to trigger Lambda function retries.
C
Creating a dead-letter queue for message storage and setting it as the Lambda function's event source for retries.
D
Directing Amazon EventBridge events to an Amazon SQS queue, with Lambda configured to process messages from the queue.
No comments yet.