Bird
0
0

Given the following SQS queue configuration with a DLQ and maxReceiveCount set to 3, what happens when a message fails processing 4 times?

medium📝 Predict Output Q13 of 15
AWS - SNS and SQS
Given the following SQS queue configuration with a DLQ and maxReceiveCount set to 3, what happens when a message fails processing 4 times?
{"RedrivePolicy": {"deadLetterTargetArn": "arn:aws:sqs:region:account-id:DLQ", "maxReceiveCount": 3}}
AThe message is moved to the Dead Letter Queue after the 4th failure
BThe message is deleted immediately after the 3rd failure
CThe message stays in the main queue indefinitely
DThe message is moved to the DLQ after the 3rd failure
Step-by-Step Solution
Solution:
  1. Step 1: Understand maxReceiveCount meaning

    maxReceiveCount defines how many times a message can be received before moving to DLQ.
  2. Step 2: Apply maxReceiveCount to message failures

    After 3 failed receives, the message is moved to the DLQ, not after the 4th.
  3. Final Answer:

    The message is moved to the DLQ after the 3rd failure -> Option D
  4. Quick Check:

    maxReceiveCount = 3 means move to DLQ after 3 failures [OK]
Quick Trick: Message moves to DLQ exactly at maxReceiveCount failures [OK]
Common Mistakes:
  • Thinking message moves after 4th failure
  • Assuming message is deleted after failures
  • Believing message stays in main queue forever

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes