
Answer-first summary for fast verification
Answer: The event fails all processing attempts, The Lambda function invocation is asynchronous
The Lambda function invocation is asynchronous - When an asynchronous invocation event exceeds the maximum age or fails all retry attempts, Lambda discards it. Or sends it to dead-letter queue if you have configured one. The event fails all processing attempt - A dead-letter queue acts the same as an on-failure destination in that it is used when an event fails all processing attempts or expires without being processed. Incorrect options: The Lambda function invocation is synchronous - When you invoke a function synchronously, Lambda runs the function and waits for a response. Queues are generally used with asynchronous invocations since queues implement the decoupling feature of various connected systems. It does not make sense to use queues when the calling code will wait on it for a response. The event has been processed successfully - A successfully processed event is not sent to the dead-letter queue. The event processing failed only once but succeeded thereafter - A successfully processed event is not sent to the dead-letter queue.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
As a new team member, you are working on implementing Dead Letter Queues (DLQ) for AWS Lambda functions to handle failures gracefully. Dead Letter Queues are essential for ensuring that messages or tasks that could not be processed successfully by the Lambda function are not lost. Instead, they are added to a specified queue, such as an Amazon SQS queue, for further analysis or reprocessing.
As an AWS Certified Developer Associate, can you assist him in identifying the scenarios in which AWS Lambda will send a message to a DLQ after attempting to process it? (Select two)
A
The event fails all processing attempts
B
The Lambda function invocation is asynchronous
C
The event has been processed successfully
D
The Lambda function invocation failed only once but succeeded thereafter
E
The Lambda function invocation is synchronous