Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 397

An AWS Lambda function is invoked asynchronously to process events. Occasionally, the Lambda function falls to process events. A developer needs to collect and analyze these failed events to fix the issue.

What should the developer do to meet these requirements with the LEAST development effort?

    Correct Answer: C

    To address the issue of occasionally failing to process events in an AWS Lambda function with the least development effort, adding a dead-letter queue (DLQ) to send messages to an Amazon Simple Queue Service (Amazon SQS) standard queue is the best solution. A DLQ captures the failed events automatically, allowing the developer to analyze and reprocess them as necessary. SQS is also well-suited for handling potentially large volumes of messages and provides robust features for message retention and retrieval.

Discussion
komorebi

C. Add a dead-letter queue to send messages to an Amazon Simple Queue Service (Amazon SQS) standard queue.

rdiazOption: C

A dlq in SQS