Bird
0
0

Which of the following is the correct way to configure a Dead Letter Queue in AWS SQS using RedrivePolicy?

easy📝 Configuration Q12 of 15
AWS - SNS and SQS
Which of the following is the correct way to configure a Dead Letter Queue in AWS SQS using RedrivePolicy?
A{"deadLetterTargetArn":"arn:aws:sqs:region:account-id:DLQ","maxReceiveCount":5}
B{"maxReceiveCount":5,"deadLetterQueueArn":"arn:aws:sqs:region:account-id:DLQ"}
C{"deadLetterQueue":"arn:aws:sqs:region:account-id:DLQ","maxRetries":5}
D{"targetArn":"arn:aws:sqs:region:account-id:DLQ","maxReceiveCount":10}
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct RedrivePolicy keys

    The correct keys are "deadLetterTargetArn" and "maxReceiveCount" as per AWS documentation.
  2. Step 2: Match options with correct keys

    Only {"deadLetterTargetArn":"arn:aws:sqs:region:account-id:DLQ","maxReceiveCount":5} uses "deadLetterTargetArn" and "maxReceiveCount" correctly.
  3. Final Answer:

    {"deadLetterTargetArn":"arn:aws:sqs:region:account-id:DLQ","maxReceiveCount":5} -> Option A
  4. Quick Check:

    Correct keys = deadLetterTargetArn + maxReceiveCount [OK]
Quick Trick: Look for deadLetterTargetArn and maxReceiveCount keys [OK]
Common Mistakes:
  • Using wrong key names like deadLetterQueueArn
  • Confusing maxRetries with maxReceiveCount
  • Swapping key order incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes