1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. A consumer receives an SQS message, then its visibility…

Added 30 Nov -0001

A consumer receives an SQS message, then its visibility timeout expires before it is deleted. What happens next?

  1. The message stays invisible until the queue's retention period eventually expires
  2. The message becomes visible again and another consumer may process it a second time Correct answer
  3. The message is permanently deleted, because the expired timeout counts as an acknowledgement
  4. The message moves to the dead-letter queue immediately, since the receive has failed

Correct answer

B. The message becomes visible again and another consumer may process it a second time

12 views

MCQSEXAM

Explanation

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.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs