Interview Prep/AWS/DNS, CDN and Messaging

How do dead-letter queues and redrive work in SQS?

IntermediateConceptDNS, CDN and Messaging
Answer

A redrive policy on the source queue specifies a DLQ and maxReceiveCount; once a message has been received that many times without deletion, SQS moves it to the DLQ. A DLQ must be of the same type (standard or FIFO). Retention does not reset when moved, so set DLQ retention to 14 days.

After fixing the bug, use DLQ redrive (console or aws sqs start-message-move-task) to send messages back to the source.

aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging