exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 139 discussion

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? (Choose two.)

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vandergun
Highly Voted 1 year ago
Selected Answer: 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.
upvoted 11 times
...
zolthar_z
Highly Voted 1 year ago
Selected Answer: 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
upvoted 5 times
...
CHRIS12722222
Most Recent 10 hours, 10 minutes ago
Selected Answer: BD
Correct answer https://www.youtube.com/watch?v=rYFAdRCibyc
upvoted 1 times
...
weixing
2 months ago
BD C. Dead-letter queues can only be added to SNS subscriptions, not to topics.
upvoted 1 times
...
h432ng
4 months, 3 weeks ago
AD. C is wrong, "Configuring an Amazon SNS dead-letter queue for a subscription" not for SNS topic A is correct, with Dynamodb, admin can no longer "accidentally shut down the DB instance." A fixes the root cause. With D an SQS is there, no need for DLQ for SNS. If lambda process data from SQS, what is SNS DLQ help here?
upvoted 2 times
...
thanhnv142
10 months, 1 week ago
Selected Answer: CD
C and D are correct: <. While the database was down the company lost several of the SNS notification messages that were delivered during that time> means dead-letter queue in SQS and output SNS to SQS to store dead-letter queue
upvoted 4 times
...
zain1258
1 year ago
Selected Answer: BD
B & D are correct
upvoted 1 times
Gomer
5 months, 3 weeks ago
Here's what I get when you break it down graphically between CD and BC: CD: SNS > SQS|DLQ) > Lambda > RDS BD: SNS > SQS > Lambda > SQS > RDS The DLQ is just there to handle any SNS messages that have errors and can't be processed. There is no way you want/need two SQS queues in series (on either side of the Lambda). The ONLY thing you need to add for the requirements is queue to hold stuff while DB is down. The DLQ just makes sure even an messed up message data is captured for later review. Only C&D make any sense here.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago