A company runs a social media application where users post updates. The database workloads are split into two Amazon DynamoDB tables:
1. A table storing user posts, which receives highly unpredictable, sudden spikes of write traffic when posts go viral.
2. A table storing user profile information, which has a stable, predictable read volume during daytime hours.
Both tables are currently configured with high Provisioned Capacity Units (PCUs) to prevent throttling during peak times, leading to significant idle capacity costs.
Which TWO actions should the solutions architect recommend to optimize the database costs? (Select TWO).
- Configure the user posts table to use DynamoDB On-Demand capacity mode.Answer
- Enable DynamoDB Auto Scaling with provisioned capacity for the user profile table.Answer
- CConfigure the user posts table to use Provisioned capacity mode with a static limit set to the highest peak traffic level.
- DConfigure the user profile table to use Amazon RDS Read Replicas and set them as the primary automatic failover target.
- EPurchase Compute Savings Plans to cover the read and write capacity unit costs of both DynamoDB tables.
Answer
Configure the user posts table to use DynamoDB On-Demand capacity mode, and enable DynamoDB Auto Scaling with provisioned capacity for the user profile table.
For the user posts table, DynamoDB On-Demand capacity mode automatically accommodates sudden traffic spikes without throttling and charges only for what is consumed, making it ideal for unpredictable workloads. For the user profile table, DynamoDB Provisioned capacity mode with Auto Scaling allows the company to take advantage of lower baseline rates for predictable traffic while adjusting to daily usage changes.
Step-by-Step Solution
Key Concept
Selecting cost-optimal capacity modes and scaling policies in Amazon DynamoDB based on workload predictability.
Estimated Time:2m 0s