Messages keep failing and blocking others in a queue. How do you isolate poison messages?
IntermediateScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → Use a dead-letter queue with a redrive path.
What I'd do →
- Set
RedrivePolicywithmaxReceiveCount5 to a DLQ - Alarm on
ApproximateNumberOfMessagesVisibleon the DLQ - Inspect messages, fix the bug, then redrive:
aws sqs start-message-move-task --source-arn <dlq-arn> - Keep DLQ retention longer than main (14 days)
Why → DLQ keeps healthy flow moving and preserves bad messages for diagnosis.
Interview tip → Mention FIFO message group blocking.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateWhat is the difference between a CNAME and an alias record in Route 53?BeginnerRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateCloudFront returns 403 from an S3 origin. List the checks.Intermediate