
Answer-first summary for fast verification
Answer: Configure an Amazon Simple Queue Service (Amazon SQS) dead-letter queue for the SNS topic., Subscribe an Amazon Simple Queue Service (Amazon SQS) queue to the SNS topic. Configure the Lambda function to process messages from the SQS queue.
The correct options are C and D. Option D ensures that the SNS notifications are delivered to an SQS queue even if the Lambda function or RDS DB instance is unavailable. The Lambda function can later process these messages from the SQS queue. This setup decouples the processing from the notification delivery, reducing the risk of message loss. Option C, configuring an SQS dead-letter queue for the SNS topic, provides a mechanism to capture failed messages that could not be processed, ensuring that no messages are permanently lost. This strategy allows manual or automated reprocessing of these messages later.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A DevOps engineer at a company is developing an AWS Lambda function to handle notifications from an Amazon SNS topic. The Lambda function is designed to process these notifications and store their contents in an Amazon RDS Multi-AZ DB instance. During a test, the DB instance was inadvertently shut down by a database administrator, resulting in the loss of several SNS notification messages that were sent during the downtime. To prevent such data loss in the future, which two solutions should the DevOps engineer implement?
A
Replace the RDS Multi-AZ DB instance with an Amazon DynamoDB table.
B
Configure an Amazon Simple Queue Service (Amazon SQS) queue as a destination of the Lambda function.
C
Configure an Amazon Simple Queue Service (Amazon SQS) dead-letter queue for the SNS topic.
D
Subscribe an Amazon Simple Queue Service (Amazon SQS) queue to the SNS topic. Configure the Lambda function to process messages from the SQS queue.
E
Replace the SNS topic with an Amazon EventBridge event bus. Configure an EventBridge rule on the new event bus to invoke the Lambda function for each event.
No comments yet.