Optimising Database Capacity and Commitments
This lesson explains how capacity modes, Aurora storage configurations and commitments such as Database Savings Plans reduce database costs.
Learning outcomes
After completing this lesson, you will be able to:
- Choose a DynamoDB capacity mode from a traffic pattern.
- Explain when Aurora I/O-Optimized and Aurora Serverless v2 reduce cost.
- Compare Database Savings Plans with engine-specific reservations.
Capacity models
DynamoDB offers on-demand mode, charged per request and suited to unpredictable or spiky traffic, and provisioned mode with auto scaling, cheaper for steady traffic and discounted further with reserved capacity; the Standard-IA table class lowers storage cost for rarely accessed tables. Aurora Serverless v2 scales capacity in fine increments and can pause at zero capacity when idle, which suits variable and development workloads; provisioned Aurora and RDS instances suit steady load, with reserved DB instances for long-term baselines.
Storage and I/O
Aurora Standard charges for I/O requests; Aurora I/O-Optimized removes I/O charges for higher instance and storage prices, which is cheaper when I/O exceeds about a quarter of the Aurora bill. RDS storage uses gp3 volumes, whose IOPS and throughput are provisioned separately from size, and storage autoscaling avoids over-provisioning. Read replicas and caches reduce load on expensive primary instances, and Graviton-based instance classes improve price performance.
Database cost choices
Commitments across engines
Database Savings Plans are a one-year commitment to an hourly spend that applies across eligible database services, engines, instance families and Regions, including Aurora, RDS, DynamoDB, ElastiCache, DocumentDB and Neptune, so the discount follows workloads as they move. Engine-specific reservations can give deeper discounts for usage that will not change.
| Situation | Choice |
|---|---|
| Spiky or unpredictable DynamoDB traffic | On-demand mode |
| Steady DynamoDB traffic | Provisioned with auto scaling and reserved capacity |
| I/O over about 25% of the Aurora bill | Aurora I/O-Optimized |
| Idle nights and weekends | Aurora Serverless v2 scaling to zero |
| Commitment that must follow engine changes | Database Savings Plans |
A SaaS database estate
A SaaS company runs 40 Aurora clusters, half of them development clusters idle at night, and several DynamoDB tables in on-demand mode with steady traffic. It plans to move some workloads from Aurora to DynamoDB next year.
Development clusters move to Aurora Serverless v2 with a minimum of zero, and two production clusters whose bills are dominated by I/O switch to I/O-Optimized.
Steady DynamoDB tables move to provisioned capacity with auto scaling, and the remaining baseline is covered by a Database Savings Plan, which keeps the discount when workloads move between engines.
When does Aurora I/O-Optimized lower total cost?
Show answer
When I/O charges make up more than about 25% of the Aurora bill, because it removes I/O charges in exchange for higher instance and storage prices.
Exam Tips
Remember for the exam
- Spiky DynamoDB traffic: on-demand; steady traffic: provisioned with auto scaling and reserved capacity.
- Aurora bill dominated by I/O: Aurora I/O-Optimized.
- Idle development databases: Aurora Serverless v2 scaling to zero.
- Commitment that follows changes of engine or Region: Database Savings Plans.