AWS Certified Developer – Associate — Question 367

A developer creates a customer managed key for multiple AWS users to encrypt data in Amazon S3. The developer configures Amazon Simple Notification
Service (Amazon SNS) to publish a message if key deletion is scheduled. The developer needs to preserve any SNS messages that cannot be delivered so that those messages can be reprocessed.
Which AWS service or feature should the developer use to meet this requirement?

Answer options

Correct answer: C

Explanation

Amazon SNS supports the use of Amazon Simple Queue Service (Amazon SQS) queues as dead-letter queues (DLQs) to capture and preserve messages that cannot be delivered to subscribers. This allows developers to safely store failed notifications and reprocess them later. Other options like Amazon SES, AWS Lambda, or CloudWatch alarms do not provide the native queuing and storage capabilities required to retain undelivered messages for reprocessing.