Bird
0
0

You have an SQS queue configured with a visibility timeout of 30 seconds. If a consumer receives a message but fails to delete it within 30 seconds, what happens to the message?

hard📝 Application Q9 of 15
AWS - SNS and SQS
You have an SQS queue configured with a visibility timeout of 30 seconds. If a consumer receives a message but fails to delete it within 30 seconds, what happens to the message?
AThe message is permanently deleted.
BThe message becomes visible again and can be received by other consumers.
CThe message is moved to a dead-letter queue immediately.
DThe message is duplicated in the queue.
Step-by-Step Solution
Solution:
  1. Step 1: Understand visibility timeout behavior

    Visibility timeout hides the message from other consumers temporarily after receipt.
  2. Step 2: Identify what happens if message is not deleted in time

    If not deleted within timeout, the message becomes visible again for redelivery.
  3. Final Answer:

    The message becomes visible again and can be received by other consumers. -> Option B
  4. Quick Check:

    Visibility timeout expiry = message visible again [OK]
Quick Trick: Visibility timeout hides message temporarily only [OK]
Common Mistakes:
  • Assuming message is deleted automatically
  • Thinking message moves to dead-letter queue immediately
  • Believing message duplicates on timeout

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes