A company is designing the database architecture for a web application that manages ticket sales. The database requirements are split into two categories:
* Ticket transaction records: The write workload is highly unpredictable, experiencing extreme surges up to writes per second during flash sales, but dropping to near zero for most of the week.
* User profile sessions: The read workload is highly predictable with a stable baseline of reads per second throughout the day. Low latency under is required.
Which TWO strategies should a solutions architect recommend to design a highly cost-optimized database tier that meets these requirements? (Select TWO.)
- Store ticket transaction records in an Amazon DynamoDB table configured in On-Demand capacity mode.Cevap
- Store user profile sessions in an Amazon DynamoDB table configured in Provisioned capacity mode with Auto Scaling enabled.Cevap
- CStore ticket transaction records in an Amazon DynamoDB table configured in Provisioned capacity mode with a static capacity of write capacity units.
- DStore ticket transaction records in an Amazon RDS for PostgreSQL Multi-AZ DB cluster, using read replicas as the primary automated disaster recovery failover mechanism.
- EStore user profile sessions in an Amazon DynamoDB table configured in On-Demand capacity mode to handle the reads.
Cevap
Store ticket transaction records in an Amazon DynamoDB table configured in On-Demand capacity mode, and store user profile sessions in an Amazon DynamoDB table configured in Provisioned capacity mode with Auto Scaling enabled.
The correct strategy involves combining DynamoDB On-Demand capacity mode for the highly unpredictable ticket transaction workloads and Provisioned capacity mode with Auto Scaling for the stable, predictable user profile session workloads. On-Demand mode instantly handles surges up to writes without throttling or paying for idle time, which is highly cost-effective for spiky traffic. Provisioned capacity mode with Auto Scaling is more cost-effective for predictable workloads because it provides a lower unit cost for a guaranteed baseline of traffic.
Adım Adım Çözüm
Anahtar Kavram
Cost-optimized database capacity planning requires matching database capacity modes to workload predictability. Use On-Demand capacity for spiky, unpredictable workloads, and Provisioned capacity with Auto Scaling for predictable baselines.