AWS - SNS and SQSWhich 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}Check Answer
Step-by-Step SolutionSolution:Step 1: Identify correct RedrivePolicy keysThe correct keys are "deadLetterTargetArn" and "maxReceiveCount" as per AWS documentation.Step 2: Match options with correct keysOnly {"deadLetterTargetArn":"arn:aws:sqs:region:account-id:DLQ","maxReceiveCount":5} uses "deadLetterTargetArn" and "maxReceiveCount" correctly.Final Answer:{"deadLetterTargetArn":"arn:aws:sqs:region:account-id:DLQ","maxReceiveCount":5} -> Option AQuick Check:Correct keys = deadLetterTargetArn + maxReceiveCount [OK]Quick Trick: Look for deadLetterTargetArn and maxReceiveCount keys [OK]Common Mistakes:Using wrong key names like deadLetterQueueArnConfusing maxRetries with maxReceiveCountSwapping key order incorrectly
Master "SNS and SQS" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - Request and response mapping - Quiz 7medium API Gateway - REST API creation - Quiz 5medium API Gateway - CORS configuration - Quiz 1easy AWS Lambda - Lambda execution model - Quiz 6medium CloudWatch - CloudWatch dashboards - Quiz 5medium Elastic Load Balancing - ALB vs NLB decision - Quiz 6medium RDS and Relational Databases - Parameter groups and option groups - Quiz 2easy SNS and SQS - SNS notification types (email, SMS, Lambda) - Quiz 15hard SNS and SQS - SQS queue concept - Quiz 15hard SNS and SQS - SNS and SQS integration pattern (fan-out) - Quiz 11easy