Question

Difficulty: EasyDecoupling Architectures and Event-Driven Messaging

A company is designing a new microservices-based application on AWS. When an order is placed, the order details must be sent to two separate downstream systems: an inventory management service and a shipping coordination service. The orders must be processed by both services in the exact chronological sequence they were placed. Which combination of services should a solutions architect recommend to decouple these systems while preserving the message order? (Select TWO.)

  1. Amazon SQS FIFO queues to buffer messages for each downstream serviceAnswer
  2. Amazon SNS FIFO topics to fan out the messages to the queuesAnswer
  3. C
    Amazon SQS Standard queues to queue messages for each downstream service
  4. D
    Amazon RDS Read Replicas to replicate the order database for downstream services
  5. E
    Amazon Route 53 Latency Routing to route messages to the closest downstream service

Answer

Amazon SQS FIFO queues and Amazon SNS FIFO topics are the correct services to decouple the components and preserve the message order.
To decouple microservices while ensuring that messages are sent to multiple endpoints (fan-out) and processed in the exact chronological sequence, Amazon SNS FIFO topics and Amazon SQS FIFO queues must be used in combination. SNS FIFO topics manage ordering during distribution, and SQS FIFO queues ensure that consumers pull messages in the correct sequence.

Step-by-Step Solution

1
Identify the decoupling and fan-out requirements.
The application needs to distribute messages to multiple distinct downstream services (fan-out pattern).
Amazon SNS is the standard service on AWS to achieve fan-out messaging to multiple consumers.
2
Determine the message ordering constraints.
The messages must be processed in the exact order they are received.
Standard SQS and SNS do not guarantee strict ordering. FIFO (First-In-First-Out) features must be used for both SNS and SQS to preserve end-to-end chronological sequence.
3
Combine SNS FIFO and SQS FIFO.
The solutions architect should deploy an Amazon SNS FIFO topic that publishes to Amazon SQS FIFO queues attached to each downstream microservice.
This architecture decouples the services, supports fan-out, and preserves message order.

Key Concept

Decoupling message-driven architectures while preserving strict message ordering using SNS and SQS FIFO configurations.
Estimated Time:1m 30s
Rate this question