Bird
0
0

An SQS queue has maxReceiveCount set to 2. If a message fails processing twice, what is the expected status of the message immediately after the second failure?

medium📝 service behavior Q4 of 15
AWS - SNS and SQS
An SQS queue has maxReceiveCount set to 2. If a message fails processing twice, what is the expected status of the message immediately after the second failure?
AThe message is moved to the Dead Letter Queue
BThe message is deleted from the queue
CThe message remains in the main queue and is available for retry
DThe message is archived automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand maxReceiveCount behavior

    maxReceiveCount defines how many times a message can be received before moving to DLQ.
  2. Step 2: Message state after second failure

    After the second failed processing attempt (equal to maxReceiveCount), the message is moved to the Dead Letter Queue.
  3. Final Answer:

    The message is moved to the Dead Letter Queue -> Option A
  4. Quick Check:

    Message moves to DLQ after maxReceiveCount failures [OK]
Quick Trick: Message moves to DLQ once maxReceiveCount is reached [OK]
Common Mistakes:
MISTAKES
  • Assuming message stays in main queue after maxReceiveCount
  • Thinking message is deleted immediately
  • Believing message is archived automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes