A financial services firm is designing a real-time transaction ledger. The ledger must process deposit and withdrawal events in the exact order they are initiated for each individual bank account to prevent overdrafts. The event volume routinely spikes to transactions per second. Two independent downstream applications—a ledger database writer and a real-time fraud detection engine—must process every transaction. The architecture must guarantee that duplicate messages sent within a 5-minute window are discarded, and it must minimize operational overhead.
Which combination of actions should a solutions architect recommend to meet these requirements? (Select TWO.)
- Create an Amazon Simple Notification Service (Amazon SNS) FIFO topic and subscribe two Amazon Simple Queue Service (Amazon SQS) FIFO queues to the topic, one for each downstream application.Answer
- Enable high-throughput mode on the SQS FIFO queues, and configure the transaction events to use the bank account ID as the message group ID.Answer
- CCreate a single Amazon SQS FIFO queue and configure both downstream applications to poll from the same queue simultaneously.
- DCreate an Amazon SNS standard topic and subscribe two Amazon SQS standard queues to the topic, enabling message deduplication on the queues.
- EProvision an Amazon Kinesis Data Stream with 3 shards, and configure both downstream applications as consumers using the Kinesis Client Library (KCL).
Answer
Create an Amazon SNS FIFO topic with two SQS FIFO queues subscribed to it, enable high-throughput mode on the SQS FIFO queues, and use the bank account ID as the message group ID.
To achieve both event fan-out and strict sequencing under a high-throughput scenario, the architecture must utilize Amazon SNS FIFO and Amazon SQS FIFO. An SNS FIFO topic preserves ordering and deduplication when forwarding events to subscribed SQS FIFO queues. Setting the bank account ID as the message group ID allows the SQS FIFO queue to group related messages together for ordered processing while enabling horizontal scaling across multiple partitions. High-throughput mode allows the FIFO queues to scale dynamically and accommodate the TPS volume, while SQS FIFO's native deduplication satisfies the 5-minute window without custom application logic.
Step-by-Step Solution
Key Concept
Combining Amazon SNS FIFO and SQS FIFO queues to achieve high-throughput event fan-out with strict ordering and native deduplication.
Estimated Time:3m 0s