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

A developer is building an application on AWS. The application includes an AWS Lambda function that processes messages from an Amazon Simple Queue Service (Amazon SQS) queue.

The Lambda function sometimes fails or times out. The developer needs to figure out why the Lambda function fails to process some messages.

Which solution will meet these requirements with the LEAST operational overhead?

Answer options

Correct answer: C

Explanation

Configuring a dead-letter queue (DLQ) is the native AWS solution to isolate messages that cannot be processed successfully, requiring minimal configuration and zero custom code. Options A and B do not help isolate the specific failing messages for debugging and do not address the root cause of message processing failures. Option D introduces unnecessary operational overhead because it requires writing and maintaining custom code within the Lambda function to handle failures and write to Amazon DynamoDB.