AWS Certified Developer – Associate — Question 295

A developer creates an AWS Lambda function that publishes a message to an Amazon Simple Queue Service (Amazon SQS) queue. The developer needs to ensure that the message is not processed for 60 seconds after delivery to the destination queue.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

To postpone the delivery of new messages to consumers upon arrival in an Amazon SQS queue, you must configure a delivery delay, which postpones message visibility for the specified 60-second duration. The visibility timeout (Option B) only hides messages after they have already been consumed, while modifying the Lambda function's configuration (Options C and D) has no impact on queue-side message retrieval delays.