A logistics company is designing an automated package tracking update ingestion system. Package scanning devices at various transit hubs upload status updates. These updates for each package must be processed sequentially to prevent out-of-order state updates. The volume of updates varies significantly, with massive surges during holiday shopping seasons and near-zero activity during early morning hours.
The company wants to design a serverless architecture that minimizes costs during idle periods and scales automatically to handle peak surges without administrative overhead.
Which TWO configurations should a solutions architect select to meet these requirements cost-effectively? (Select two.)
- Configure an Amazon DynamoDB table using on-demand capacity mode to store the package tracking states.Cevap
- Route incoming tracking updates to an Amazon Simple Queue Service (Amazon SQS) FIFO queue, and configure an AWS Lambda function to process messages from the queue.Cevap
- CRoute incoming tracking updates to an Amazon Simple Queue Service (Amazon SQS) standard queue, and configure an AWS Lambda function to process messages from the queue.
- DConfigure an Amazon DynamoDB table using provisioned capacity mode with Auto Scaling enabled to store the package tracking states.
- EDeploy a continuously running AWS Lambda function that loops indefinitely to poll the queue for tracking updates.
Cevap
The correct choices are using Amazon DynamoDB in on-demand capacity mode and routing updates through an Amazon SQS FIFO queue processed by AWS Lambda.
The correct solution combined the use of Amazon SQS FIFO queues to guarantee package update order and AWS Lambda to process updates dynamically, alongside Amazon DynamoDB in on-demand capacity mode. This setup ensures that compute and database resources scale down to zero cost during idle periods, while auto-scaling to handle peak workloads with no administrative overhead.
Adım Adım Çözüm
Anahtar Kavram
Leveraging serverless architectures with SQS FIFO queues and DynamoDB on-demand capacity mode to achieve automatic scaling and cost optimization for spiky, order-sensitive workloads.
Tahmini Süre:1m 30s