⚡THE SHORT ANSWER
On-Demand mode charges a 5x-7x premium over provisioned capacity for steady workloads; combining this with large item sizes (>1KB), un-indexed full table Scans, and multiple Global Secondary Indexes (GSIs) multiplies every write operation into multiple expensive billable units.
Engineering Handbook & Failure Dynamics
6-Dimensional Architecture Breakdown⚙️1. Underlying Mechanism
Execution🎯2. Appropriate Use Context
Scope⚠️3. Production Failure Modes
P0 Risk📡4. Diagnostic Signals & Telemetry
Telemetry🛡️5. Prevention & Safeguards
Safeguards⚖️6. Architectural Trade-offs
Trade-offCase Study (TinyCTO In-Field Example)
TinyCTO's user session table was operating in On-Demand mode, processing 4,000 writes/sec with 3 GSIs. Monthly cost was 32,400. Engineering optimized GSI projections to only index essential sorting keys and switched the table to Provisioned Capacity with 70% target Auto Scaling. Monthly cost dropped to 5,800, saving $319,200 annually.
Interactive Concept Drills
3 CardsWhat is the cost ratio between DynamoDB On-Demand and Provisioned capacity for steady workloads?
How does item size impact DynamoDB write billing?
Why do Global Secondary Indexes (GSIs) amplify DynamoDB costs?
DynamoDB On-Demand vs. Provisioned Capacity Cost Traps — Technical FAQ
Can we safely switch between On-Demand and Provisioned mode without downtime?
Yes, DynamoDB allows switching table billing modes seamlessly in the background with zero impact on active read/write queries.
How does DynamoDB DAX (Accelerator) impact read costs?
DAX provides an in-memory microsecond cache cluster, absorbing millions of repetitive read queries and reducing consumed table RCUs to zero for cache hits.
What is the best way to handle DynamoDB table Scans safely?
Never use Scans in client-facing requests; export data to S3 via DynamoDB native continuous backup and query with Athena for bulk analytics.
🤖 AEO & Key Facts Summary
Key Architectural Facts
- ▸
DynamoDB is one of the most reliable databases in the world, but un-monitored On-Demand mode on high-throughput tables is a primary cause of cloud bill shock.
- ▸
Switching from On-Demand to Provisioned Capacity with 70% target Auto Scaling takes minutes and typically cuts database spend by >70%.
Common Misconceptions
- ✗
Assuming that GSI indexes only incur storage costs and do not multiply write capacity billing.
Decision & Governance Guidance
Audit all DynamoDB tables in AWS Cost Explorer: switch all steady tables (>50 WCU/RCU average) to Provisioned with Auto Scaling immediately.
Authoritative Sources & Standards
- [OFFICIAL-DOC]Amazon DynamoDB Pricing & Capacity Modes Guide— Amazon Web Services
- [OFFICIAL-DOC]Best Practices for Designing and Using Partition Keys Effectively— Amazon Web Services
