A company is developing a mobile game and needs a cost-optimized database solution. The game has highly unpredictable traffic, experiencing short bursts of intense activity followed by hours of zero usage. The game stores temporary player session data that is only valid for hours.
Which two configurations should a Solutions Architect recommend? (Select TWO).
- Create an Amazon DynamoDB table using On-Demand Capacity mode to scale automatically with the unpredictable traffic.Answer
- BCreate an Amazon DynamoDB table using Provisioned Capacity mode to support peak burst traffic.
- Enable DynamoDB Time to Live (TTL) to automatically delete expired player session data and minimize storage costs.Answer
- DPurchase DynamoDB Reserved Capacity based on the maximum anticipated hourly write throughput.
- EDeploy Amazon RDS for PostgreSQL and configure Read Replicas to act as the primary failover targets during high-traffic spikes.
Answer
Create an Amazon DynamoDB table using On-Demand Capacity mode, and enable DynamoDB Time to Live (TTL) on the session data table.
For unpredictable, spiky workloads with long periods of zero activity, Amazon DynamoDB On-Demand capacity mode provides the most cost-optimized scaling by charging only for actual read and write requests. Combining this with DynamoDB Time to Live (TTL) allows automatic deletion of expired temporary player sessions after 24 hours, preventing unnecessary storage costs without additional compute overhead.
Step-by-Step Solution
Key Concept
Selecting the cost-optimal capacity mode and data retention policy for unpredictable, transient database workloads.