DOP-C02 Question 293
Select 3You are managing an e-commerce application hosted on AWS. The application processes customer orders, and each order is published to an Amazon SNS topic. You need to ensure that when a new order event is published, the following actions occur automatically: 1) Notify the fulfillment department via email, 2) Push the event to an Amazon SQS queue for downstream processing, and 3) Trigger a Lambda function to perform analytics on the order data. Which combination of actions will achieve this?
- A
Subscribe an email endpoint to the Amazon SNS topic for notifying the fulfillment department.
- B
Use an Amazon EventBridge rule to route the SNS event to an Amazon SQS queue for downstream processing.
- C
Subscribe an Amazon SQS queue directly to the Amazon SNS topic.
- D
Configure an Amazon SNS subscription with an AWS Lambda function as the endpoint.
- E
Use Amazon CloudWatch Logs to monitor the SNS topic and trigger the Lambda function upon new events.
Show answer and explanation
Correct answers: A, C, D
Explanation
Amazon SNS provides the ability to fan out messages to multiple subscribers, such as email endpoints, SQS queues, and Lambda functions. By subscribing the email endpoint to notify the fulfillment department, the SQS queue for downstream processing, and the Lambda function for analytics, all required actions can be performed automatically in response to new order events.
- A. Correct.
This is correct. Amazon SNS supports email endpoints, and subscribing an email address to the SNS topic ensures that the fulfillment department receives notifications.
- B. Incorrect.
This is incorrect. Amazon EventBridge is not necessary in this scenario as Amazon SNS can directly deliver messages to SQS queues without additional routing.
- C. Correct.
This is correct. Amazon SNS supports direct integration with Amazon SQS, allowing messages to be queued for downstream processing.
- D. Correct.
This is correct. Amazon SNS supports Lambda function endpoints, enabling the Lambda function to be triggered automatically by new events.
- E. Incorrect.
This is incorrect. Amazon CloudWatch Logs is used for monitoring and logging purposes, not for triggering actions based on SNS events.