A company is using Amazon SNS to publish messages to multiple Amazon SQS queues for processing. The company wants to implement a system that ensures failed messages are retried for a certain number of times and then moved to a dead-letter queue (DLQ) if they are not successfully processed. What is the most appropriate configuration to meet this requirement?