A smart home security company is designing an event-driven system to process status logs from connected smart hubs (e.g., alarm armed, sensor triggered, door unlocked). To ensure the correct application logic, the status logs for each individual home must be processed in the precise order they are generated. The logs must be fanned out to both a real-time alerting service and a secondary database ingestion worker. The architecture must be decoupled, scalable, and minimize operational overhead.
Which combination of services and configurations should a solutions architect use to meet these requirements? (Select TWO.)
- Create an Amazon SNS FIFO topic to ingest the smart hub status logs and publish them to downstream subscribers.Cevap
- Create Amazon SQS FIFO queues for the alerting service and the database ingestion worker, subscribing both queues to the SNS topic.Cevap
- CCreate standard Amazon SQS queues for both downstream services and subscribe them to a standard Amazon SNS topic.
- DCreate a single standard Amazon SQS queue to buffer the logs, and configure both downstream services to poll the queue concurrently.
Cevap
Create an Amazon SNS FIFO topic to ingest the smart hub status logs, and create Amazon SQS FIFO queues for the alerting service and database worker subscribed to the SNS FIFO topic.
To preserve ordering during event ingestion and distribution, Amazon SNS FIFO must be paired with Amazon SQS FIFO queues. An SNS FIFO topic ensures that message ordering is maintained when fanning out. SQS FIFO queues then receive these ordered messages and guarantee first-in, first-out processing for each downstream consumer independently.
Adım Adım Çözüm
Anahtar Kavram
Using Amazon SNS FIFO and Amazon SQS FIFO queues together enables decoupled, fan-out messaging architectures that guarantee strict first-in, first-out (FIFO) ordering and deduplication.