ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 110 - DOP-C02 discussion

Report
Export

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? (Select TWO.)

A.
Replace the RDS Multi-AZ DB instance with an Amazon DynamoDB table.
Answers
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.
Answers
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.
Answers
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.
Answers
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.
Answers
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.
Suggested answer: C, D

Explanation:

These solutions will meet the requirement because they will prevent the loss of notification messages in the future. An Amazon SQS queue is a service that provides a reliable, scalable, and secure message queue for asynchronous communication between distributed components. You can use an SQS queue to buffer messages from an SNS topic and ensure that they are delivered and processed by a Lambda function, even if the function or the database is temporarily unavailable.

Option C will configure an SQS dead-letter queue for the SNS topic. A dead-letter queue is a queue that receives messages that could not be delivered to any subscriber after a specified number of retries. You can use a dead-letter queue to store and analyze failed messages, or to reprocess them later. This way, you can avoid losing messages that could not be delivered to the Lambda function due to network errors, throttling, or other issues.

Option D will subscribe an SQS queue to the SNS topic and configure the Lambda function to process messages from the SQS queue. This will decouple the SNS topic from the Lambda function and provide more flexibility and control over the message delivery and processing. You can use an SQS queue to store messages from the SNS topic until they are ready to be processed by the Lambda function, and also to retry processing in case of failures. This way, you can avoid losing messages that could not be processed by the Lambda function due to database errors, timeouts, or other issues.

asked 16/09/2024
Website Subscription
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first