A logistics company is designing a serverless and automated scaling architecture to process order fulfillment status updates. The updates must be processed in the exact sequence they are received to ensure data integrity in the inventory database. The application receives updates continuously 24/7 at a stable rate, with each message taking an average of 45 seconds to process. The processed updates must then be stored in a database that experiences highly unpredictable, brief spikes in write requests.
Which two solutions should a solutions architect recommend to meet these requirements most cost-effectively? (Select TWO.)
- Configure the destination Amazon DynamoDB table in On-Demand capacity mode.Cevap
- Buffer the incoming messages using Amazon SQS FIFO queues.Cevap
- CBuffer the incoming messages using Amazon SQS standard queues.
- DConfigure the destination Amazon DynamoDB table in provisioned capacity mode with high write capacity limits to handle peak traffic.
- EDeploy AWS Lambda functions triggered by the queue to process the continuous updates.
Cevap
To meet these requirements cost-effectively, buffer the incoming messages using Amazon SQS FIFO queues to preserve order, and configure the destination Amazon DynamoDB table in On-Demand capacity mode to dynamically handle the unpredictable database traffic spikes without paying for idle capacity.
The system requires strict order processing, which is satisfied by buffering messages with Amazon SQS FIFO queues. Additionally, the database must handle highly unpredictable, brief spikes in write requests; configuring Amazon DynamoDB in On-Demand capacity mode accommodates these spikes instantly and cost-effectively by charging only for actual reads and writes, avoiding the cost of idle provisioned capacity.
Adım Adım Çözüm
Anahtar Kavram
Selecting cost-effective serverless queue and database capacity modes based on workload characteristics and sequencing requirements.