A consumer receives an SQS message, then its visibility timeout expires before it is deleted. What happens next?
Correct answer
B. The message becomes visible again and another consumer may process it a second time
12 views
B. The message becomes visible again and another consumer may process it a second time
12 views
Visibility timeout hides a received message from other consumers for a set period; if the consumer fails to delete it in time the message reappears and is redelivered. Standard queues offer at-least-once delivery, so consumers must be idempotent, and the timeout should exceed the expected processing time. A repeatedly failing message reaches the dead-letter queue only after maxReceiveCount deliveries.
Asked in: NTS, PPSC IT, Campus Interviews
Not sure why the answer is B? Ask here and get an explanation.