Topic 1 Question 139
2 つ選択A company's DevOps engineer is creating an AWS Lambda function to process notifications from an Amazon Simple Notification Service (Amazon SNS) topic. The Lambda function will process the notification messages and will write the contents of the notification messages to an Amazon RDS Multi-AZ DB instance.
During testing, a database administrator accidentally shut down the DB instance. While the database was down the company lost several of the SNS notification messages that were delivered during that time.
The DevOps engineer needs to prevent the loss of notification messages in the future.
Which solutions will meet this requirement?
Replace the RDS Multi-AZ DB instance with an Amazon DynamoDB table.
Configure an Amazon Simple Queue Service (Amazon SQS) queue as a destination of the Lambda function.
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.
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.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: CD
The two solutions that will meet the requirement of preventing the loss of notification messages in the future are:
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.
This solution will ensure that notification messages are delivered to the SQS queue even if the Lambda function is unavailable or the RDS DB instance is down. The Lambda function can then process the messages from the SQS queue at its own pace.
C. Configure an Amazon Simple Queue Service (Amazon SQS) dead-letter queue for the SNS topic.
This solution will ensure that notification messages that cannot be delivered to the RDS DB instance are not lost. Instead, they will be moved to a dead-letter queue. The DevOps engineer can then manually process the messages from the dead-letter queue.
👍 5vandergun2023/11/23 - 正解だと思う選択肢: CD
C:D , D is a best practice for this scenario, C because you can send failed SNS o SQS Dead letter queue, https://docs.aws.amazon.com/sns/latest/dg/sns-dead-letter-queues.html
👍 3zolthar_z2023/11/30 - 正解だと思う選択肢: BD
B & D are correct
👍 1zain12582023/11/28
シャッフルモード