A company is designing a serverless backend for an application. The database experiences sudden, unpredictable spikes in traffic followed by long periods of idle time. The application also needs to process transactional orders sequentially in the exact order they are received. Which two options should the solutions architect select to meet these requirements in the most cost-effective manner?
- Configure Amazon DynamoDB with on-demand capacity mode to store application data.Answer
- Use an Amazon SQS FIFO queue to handle the transactional orders.Answer
- CConfigure Amazon DynamoDB with provisioned capacity mode and auto scaling.
- DUse an Amazon SQS standard queue to handle the transactional orders.
- EDeploy a continuously running AWS Lambda function to poll the transactional orders.
Answer
Use Amazon DynamoDB with on-demand capacity mode and an Amazon SQS FIFO queue to process transactional orders.
To achieve cost-efficiency for a database with unpredictable, spiky traffic and long idle times, Amazon DynamoDB on-demand capacity mode is the best choice because it scales instantly and charges only for active requests, incurring zero idle costs. To guarantee that transactional orders are processed in the exact sequence they are received, an Amazon SQS FIFO queue must be used as it enforces strict ordering.
Step-by-Step Solution
Key Concept
Selecting cost-effective serverless database scaling options and message ordering mechanisms
Estimated Time:1m 30s