A restaurant chain is implementing a cloud-based kitchen display system. When a customer places an order, the order details must be sent to the kitchen terminal and to a real-time analytics dashboard. The kitchen terminal must receive and display orders in the exact sequence they were submitted by the customer. The analytics dashboard does not require strict ordering. If an order fails to process after multiple attempts, it must be isolated for troubleshooting with the least operational overhead.
Which combination of steps should a solutions architect take to meet these requirements? (Select TWO.)
- Create an Amazon SNS FIFO topic. Create an Amazon SQS FIFO queue for the kitchen terminal and a standard Amazon SQS queue for the analytics dashboard. Subscribe both queues to the SNS FIFO topic.Cevap
- Configure a redrive policy on the SQS queues to send failed messages to a dead-letter queue (DLQ) after the maximum receive count is exceeded.Cevap
- CCreate a standard Amazon SNS topic. Create standard Amazon SQS queues for both the kitchen terminal and the analytics dashboard, and subscribe both queues to the SNS topic.
- DCreate an Amazon SNS FIFO topic. Create a standard Amazon SQS queue for the kitchen terminal and an Amazon SQS FIFO queue for the analytics dashboard, and subscribe both queues to the SNS FIFO topic.
- EConfigure a dead-letter queue (DLQ) directly on the Amazon SNS FIFO topic to handle messages that the kitchen terminal application fails to process.
Cevap
Create an Amazon SNS FIFO topic, create an Amazon SQS FIFO queue for the kitchen terminal, subscribe both queues to the SNS FIFO topic, and configure a redrive policy on the SQS queues to send failed messages to a dead-letter queue (DLQ).
To achieve both event fan-out and strict ordering for one of the downstream consumers, the architect must combine an Amazon SNS FIFO topic with an Amazon SQS FIFO queue. SNS FIFO topics support fanning out messages to multiple SQS queues. By subscribing an SQS FIFO queue for the ordering-sensitive kitchen terminal and a standard SQS queue for the analytics dashboard (which does not require strict ordering), both consumers receive the messages appropriately. Furthermore, configuring a redrive policy on the SQS queues allows messages that repeatedly fail processing to be automatically sent to a dead-letter queue (DLQ) for isolation and troubleshooting with minimal operational overhead.
Adım Adım Çözüm
Anahtar Kavram
Decoupling message fan-out with ordering guarantees using Amazon SNS FIFO and SQS FIFO queues.