A fintech company is designing a payment transaction system to receive webhooks from a payment gateway. The system must process these transactions in the exact order they are received. The webhook volume is highly unpredictable, experiencing sudden spikes of activity followed by hours of complete silence. The processing logic completes within 1.5 seconds per request. The company wants to minimize idle compute costs.
Which TWO options should a solutions architect recommend to build a cost-effective and compliant architecture? (Select TWO.)
- Use Amazon SQS FIFO queues to buffer incoming webhooks and guarantee first-in, first-out processing.Cevap
- Use AWS Lambda to process messages from the queue, scaling to zero when no webhooks are present.Cevap
- CUse Amazon SQS standard queues to buffer incoming webhooks and ensure strict ordering.
- DUse an AWS Lambda function configured to run continuously to poll the queue for incoming webhooks.
- EUse an Amazon DynamoDB table in provisioned capacity mode with high write capacity limits to handle peak bursts.
Cevap
Use Amazon SQS FIFO queues to buffer incoming webhooks and guarantee first-in, first-out processing, and use AWS Lambda to process messages from the queue, scaling to zero when no webhooks are present.
Using Amazon SQS FIFO queues ensures that webhook messages are delivered and processed in the exact order they are received. Coupling this queue with AWS Lambda to process messages on an event-driven basis allows the system to scale down to zero when no transactions are occurring, which eliminates idle compute costs.
Adım Adım Çözüm
Anahtar Kavram
Serverless architectures minimize idle compute costs by scaling resources down to zero during inactive periods, while FIFO queues guarantee message sequencing.