Cost-Optimized Databases: DynamoDB vs RDS, Aurora Serverless, and Caching
A cost-optimized database design is the database service, data type, capacity model and backup policy that meets every stated requirement for the lowest total cost. Task 4.3 of SAA-C03 covers that design end to end: why DynamoDB vs RDS cost comparisons depend on idle time, when Aurora Serverless v2 (which can pause at 0 ACUs) beats a provisioned instance, how Reserved Instances, reserved nodes and Database Savings Plans discount steady capacity, and how a cache such as ElastiCache or DAX lets you run a smaller database. It also covers the quieter levers: engine licensing, homogeneous and heterogeneous migrations, purpose-built time series and columnar stores, Aurora I/O-Optimized, RDS Proxy, storage and IOPS sizing, DynamoDB capacity modes and table classes, and backup frequency and retention. Several options in a database cost scenario usually work, and only one is cheapest without breaking a requirement. By the end of this lesson you will be able to match a workload shape (steady, spiky, intermittent, read-heavy, analytical, time-stamped) to its cheapest database design and explain why each more expensive alternative loses.
What you’ll learn
- Choose between DynamoDB and RDS on cost grounds by analyzing workload shape and idle time
- Select serverless database options (Aurora Serverless v2 with auto-pause, DynamoDB on-demand) for intermittent or unpredictable load, and know their resume and scaling limits
- Match steady capacity to the right commitment: Reserved Instances and payment options, ElastiCache reserved nodes, or a Database Savings Plan
- Decide when caching with ElastiCache or DAX is cheaper than a bigger instance or read replicas
- Design backup policies by setting snapshot frequency and retention to the stated requirement, and archive long-term copies cheaply
- Pick the right DynamoDB capacity mode and table class, and right-size RDS instances, storage, IOPS, Aurora storage configuration and connections
- Choose purpose-built time series and columnar options instead of forcing those workloads onto a row-store OLTP engine
- Plan homogeneous and heterogeneous migrations with the right tools (native tools, Aurora read replicas, AWS SCT, AWS DMS with CDC)
The 11 parts · about 27 min of reading
- How AWS databases chargeStart hereRDS bills instance-hours whether busy or idle while DynamoDB bills requests, so the more idle time, the more serverless pricing wins.2 min
- Engine economicsOpen-source engines remove license costs, and Aurora's premium pays back when shared-storage replicas or I/O-Optimized billing apply.2 min
- Serverless databases for intermittent and unpredictable loadAurora Serverless v2 and DynamoDB on-demand make idle time nearly free, but steady 24/7 load is cheaper on provisioned capacity.2 min
- Commit and right-sizeRight-size first, then reserve for steady load with a term that ends before the workload does, and drop unneeded provisioned IOPS.4 min
- Caching: the cheapest read capacity you can buyRepetitive reads that tolerate staleness are cheapest behind ElastiCache or DAX; diverse reads needing fresh data call for a replica.3 min
- Backups and retentionSet backup frequency and retention to the stated requirement, delete stale manual snapshots, and export query-only history to S3.3 min
- Capacity planningSteady DynamoDB traffic is cheaper provisioned with auto scaling, sudden spikes need on-demand, and RDS Proxy fixes connection sizing.3 min
- Purpose-built database typesMatch storage layout to the data: Timestream for InfluxDB for time series, Parquet on S3 with Athena or Redshift for columnar analytics.2 min
- Migrating databasesEngine changes need SCT then DMS full load plus CDC; same-engine moves skip conversion, such as promoting an Aurora read replica.2 min
- The database-cost decision table and the bill levers checklistMatch workload shape to its cheapest fit, then audit existing designs for idle instances, oversizing, missing caches and unneeded licenses.2 min
- Worked scenariosRequirements disqualify first, then workload shape ranks survivors: idle-heavy relational goes serverless, repeated reads get a cache.2 min
Mind map
How the exam tests this
SAA-C03 tests this task with a workload description and a cost qualifier, and the workload's shape — steady, spiky, intermittent, unpredictable, read-heavy, analytical, time-stamped — usually decides the pricing model. A second, mid-scenario constraint then separates near-twins: whether a resume delay is acceptable (Aurora Serverless v2 auto-pause), whether traffic peaks faster than an alarm can react (on-demand rather than auto scaling), how long the workload will live (reservation term), whether the configuration may change (Savings Plan rather than RI), how many minutes of downtime the cutover allows (DMS CDC or an Aurora read replica), or whether an archive must be restorable (snapshot) or only queried (export to S3). Common shapes include the business-hours database burning 24/7 instance-hours, the DynamoDB capacity-mode choice, the read-heavy database where a cache beats replicas, the instance sized for Lambda connections, the Oracle licensing complaint, the retention or stale-snapshot audit, sensor data on a relational engine, and oversized provisioned IOPS. Expect options that discount idle hours instead of removing them, cut cost by breaking a stated recovery or compatibility requirement, or use a tool that cannot do the job (a snapshot across engines, Standard-IA on a busy table). When two options both work, the one that stops paying for idle time — or serves the same work from cheaper capacity — is cheaper.
Key takeaways
- Workload shape decides the pricing model: idle-heavy or unpredictable load belongs on serverless (Aurora Serverless v2, DynamoDB on-demand); steady 24/7 load belongs on provisioned capacity with a commitment.
- Engine choice is a cost lever: open-source engines carry no license fee, and Aurora's premium buys shared-storage replicas (up to 15 without duplicating storage) — pay it only when you use that.
- Aurora Serverless v2 at a 0-ACU minimum pauses when idle and bills only storage, but the first connection waits to resume (about 15 seconds, longer after a day); DynamoDB on-demand has no resume delay.
- Commitments discount every hour, idle ones included: Reserved Instances (3-year All Upfront is cheapest for a fixed, steady database), ElastiCache reserved nodes, or a 1-year no-upfront Database Savings Plan when flexibility matters — with a term that ends before the workload does.
- Right-size first, then commit; non-production databases can stop on a schedule (they restart after seven days), and an instance sized only for connections gets RDS Proxy and a smaller class.
- Repetitive reads plus staleness tolerance means a cache: ElastiCache, or DAX for DynamoDB (eventually consistent reads only, and lower provisioned reads to bank the saving); diverse or must-be-fresh reads mean a replica.
- DynamoDB provisioned capacity with auto scaling fits steady or predictable curves; auto scaling reacts in minutes, so spikes that arrive in seconds belong on on-demand. Standard-IA only helps storage-dominated tables.
- Backups have two dials: automated retention (1–35 days of point-in-time restore) and scheduled snapshot frequency and retention for the long tail; delete stale manual snapshots, and export query-only archives to S3 as Parquet (not restorable) with lifecycle to Glacier.
- Use purpose-built types: Timestream for InfluxDB for time series (LiveAnalytics is closed to new customers), Parquet on S3 with Athena or Redshift for columnar analytics.
- Heterogeneous migrations use SCT plus DMS full load and CDC; homogeneous ones skip conversion — Aurora read replicas for RDS to Aurora, native tools for the schema plus DMS for data (DMS creates only tables and primary keys).
- Storage levers: gp3 instead of unneeded provisioned IOPS (for MySQL, MariaDB and PostgreSQL, 400 GiB+ includes 12,000 IOPS), storage autoscaling instead of pre-allocation, and Aurora I/O-Optimized when I/O is 25%+ of spend.
Part 1: How AWS databases charge
RDS bills instance-hours whether busy or idle while DynamoDB bills requests, so the more idle time, the more serverless pricing wins.
Frequently asked questions
Is DynamoDB cheaper than RDS?
It depends entirely on workload shape, which is exactly how the exam frames it. DynamoDB charges per request plus storage, so a table that is idle most of the time costs almost nothing — while an RDS instance bills every hour it runs regardless of load. For spiky, intermittent, or low-traffic key-value workloads, DynamoDB is usually far cheaper. For steady, always-on workloads, a right-sized RDS or Aurora instance covered by a Reserved Instance can be very economical. And if the application needs relational features — SQL, joins, transactions across entities — DynamoDB's price is irrelevant, because a cheaper option that misses a requirement is a wrong answer.
When is Aurora Serverless v2 more cost-effective than provisioned Aurora?
Aurora Serverless v2 is more cost-effective than provisioned Aurora when the database has significant idle time or genuinely unpredictable demand. It bills per ACU-second and scales capacity with load; with a minimum capacity of 0 ACUs it also pauses after a period with no connections, and while paused you pay only for storage. The trade-offs: the first connection after a pause waits for the database to resume (typically about 15 seconds, 30 seconds or more after a pause longer than a day), so auto-pause does not suit workloads that must always answer in milliseconds; and at sustained high utilization, ACU pricing costs more than an equivalent provisioned instance, which can also be discounted with a commitment. Idle-heavy or unpredictable load fits Serverless v2; steady, always-busy load fits provisioned capacity with Reserved Instances or a Savings Plan.
Should I use DynamoDB on-demand or provisioned capacity mode?
Use DynamoDB on-demand when traffic is spiky, unpredictable, or unknown — new applications, infrequent batch jobs, or launch events whose traffic peaks faster than auto scaling can react. You pay per request, pay nearly nothing when idle, and on-demand instantly absorbs traffic up to double the table's previous peak. Use provisioned mode with auto scaling when traffic is steady or follows a predictable daily curve: well-utilized capacity-unit-hours cost less than the same on-demand requests. Auto scaling reacts to CloudWatch alarms after consumption has been high for a few minutes, so it follows gradual curves but throttles sudden jumps. The costly mistakes are running steady high-volume traffic on on-demand and permanently provisioning for a rare peak.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.