A financial technology company is designing a transaction processing application. When a customer initiates a fund transfer, the transaction must be processed asynchronously in the exact order it was received to prevent account balance discrepancies. The architecture must decouple the frontend web portal from the backend processing servers to handle traffic peaks without losing messages. Which TWO components should a solutions architect recommend to satisfy these requirements? (Select TWO).
- Amazon SQS FIFO queue to store the incoming transactions in strict order.Cevap
- An Auto Scaling group of EC2 instances acting as backend workers that poll the queue.Cevap
- CAmazon SQS Standard queue to buffer the transaction requests.
- DAmazon RDS Read Replicas configured as the primary write target for failover.
- EAmazon DynamoDB configured with Provisioned Capacity Mode to scale dynamically for unpredictable traffic spikes.
Cevap
The correct architecture uses an Amazon SQS FIFO queue to store and sequence transaction requests, combined with an Auto Scaling group of EC2 worker instances that poll the queue to process messages asynchronously.
The correct solution leverages an Amazon SQS FIFO queue to guarantee first-in, first-out message sequencing and prevent duplicate processing, ensuring the transaction order is maintained. To handle the asynchronous processing and scaling requirements, an Auto Scaling group of EC2 worker instances polls the SQS queue and scales dynamically based on workload demand.
Adım Adım Çözüm
Anahtar Kavram
Decoupling message-driven architectures while guaranteeing strict message ordering using Amazon SQS FIFO queues.