SAA-C03 Question 259
Single answerA company is building an e-commerce platform that processes user orders. The platform needs to ensure that order updates are broadcast to multiple downstream services, such as inventory management, shipping, and billing systems, in real-time. These downstream systems should be able to independently subscribe to and process the order updates without impacting each other. Which AWS service should the company use to implement this solution?
- A
Amazon SQS
- B
Amazon SNS
- C
Amazon MQ
- D
AWS Step Functions
Show answer and explanation
Correct answer: B
Explanation
The publish/subscribe model is ideal for scenarios where a single event (e.g., an order update) needs to be broadcast to multiple independent systems. Amazon SNS is purpose-built for this use case, allowing you to create a topic and have multiple subscribers receive messages in real-time. Other services like SQS or MQ are better suited for point-to-point messaging rather than broadcast scenarios.
- A. Incorrect.
Amazon SQS is a queuing service used for decoupling and buffering messages between producers and consumers. However, it does not support the publish/subscribe model required for broadcasting messages to multiple independent subscribers.
- B. Correct.
Amazon SNS (Simple Notification Service) is designed for the publish/subscribe model, allowing a single message to be published to a topic and then delivered to multiple subscribers. This makes it ideal for the scenario described.
- C. Incorrect.
Amazon MQ is a managed message broker service that supports open-standard messaging protocols. While it can be used for messaging, it is not as simple or scalable as Amazon SNS for a publish/subscribe pattern.
- D. Incorrect.
AWS Step Functions is a serverless orchestration service for workflows. It is not designed for messaging or publish/subscribe use cases.