A media company uses Amazon EC2 workers to transcode video clips from an Amazon SQS standard queue. Each clip takes between 2 and 4 minutes to process, after which the worker deletes the message. The queue still uses its default settings. The operations team notices that many clips are transcoded two or three times, which wastes compute, even though no worker has crashed. Which change will MOST effectively stop the repeated processing?
Choose one answer.
Show the answer and explanation
Answer: D
Explanation
When a worker receives an SQS message, it is hidden only for the visibility timeout, which defaults to 30 seconds. Because each clip takes 2 to 4 minutes, messages reappear and are processed again. Setting the timeout longer than the maximum processing time (or extending it per message with ChangeMessageVisibility) stops the duplicates. Long polling and delivery delays do not affect in-flight messages.