Queues with SQS · Question 10 of 12
Messages are processed twice because processing takes longer than the visibility timeout. What is the right measure?
1 answer is correct. Medium Created with AI
Show answer
Answer
- C Raise the timeout above the usual duration or extend it via ChangeMessageVisibility
Explanation
If the timeout expires before the consumer deletes the message, it becomes visible again and a second consumer fetches it. The timeout should therefore be longer than processing; with varying durations the consumer extends it via the API. Deleting immediately risks data loss.