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

A developer needs to build a workflow to handle messages that are sent to an Amazon Simple Queue Service (Amazon SQS) queue. When a message reaches the queue, the workflow must implement a delay before invoking an AWS Lambda function to process the message.

Which solution will meet this requirement in the MOST operationally efficient way?

Answer options

Correct answer: C

Explanation

Setting the DelaySeconds parameter on an Amazon SQS queue (creating a delay queue) natively postpones the delivery of new messages to consumers, making it the most operationally efficient way to delay AWS Lambda processing via an event source mapping. Option D is incorrect because the Visibility Timeout controls how long a message is hidden from other consumers after it has already been read, rather than delaying its initial delivery. Options A and B are incorrect because they introduce unnecessary architectural complexity, custom code, and additional costs compared to the native SQS delay feature.