AWS Certified Solutions Architect – Associate (SAA-C03) — Question 488
An ecommerce company runs an application in the AWS Cloud that is integrated with an on-premises warehouse solution. The company uses Amazon Simple Notification Service (Amazon SNS) to send order messages to an on-premises HTTPS endpoint so the warehouse application can process the orders. The local data center team has detected that some of the order messages were not received.
A solutions architect needs to retain messages that are not delivered and analyze the messages for up to 14 days.
Which solution will meet these requirements with the LEAST development effort?
Answer options
- A. Configure an Amazon SNS dead letter queue that has an Amazon Kinesis Data Stream target with a retention period of 14 days.
- B. Add an Amazon Simple Queue Service (Amazon SQS) queue with a retention period of 14 days between the application and Amazon SNS.
- C. Configure an Amazon SNS dead letter queue that has an Amazon Simple Queue Service (Amazon SQS) target with a retention period of 14 days.
- D. Configure an Amazon SNS dead letter queue that has an Amazon DynamoDB target with a TTL attribute set for a retention period of 14 days.
Correct answer: C
Explanation
Amazon SNS natively supports Dead Letter Queues (DLQs) by targeting Amazon SQS queues to capture messages that fail to deliver to subscription endpoints. Since Amazon SQS supports a maximum message retention period of 14 days, this configuration meets all requirements with the least amount of development effort. Other options either require custom code integration to pipe failed messages into DynamoDB or Kinesis, or do not address the delivery failure to the on-premises endpoint.