SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Design High-Performing Architectures

High-Performing Databases: Aurora vs RDS, DynamoDB, DAX and ElastiCache

25 min readSAA-C03 · Design High-Performing ArchitecturesUpdated

Task 3.3 of SAA-C03 is about choosing and tuning the database layer for performance. That means picking the database type and engine from the access pattern, migrating to that engine, scaling reads with RDS read replicas (and knowing when Multi-AZ is the wrong answer), using what makes Aurora fast (shared storage, low-lag replicas behind a reader endpoint, Global Database, Serverless v2), designing DynamoDB tables and indexes that avoid hot partitions, choosing on-demand or provisioned capacity, and adding a cache (DAX or ElastiCache) with the right population strategy. It sits in the Design High-Performing Architectures domain, and database selection is one of the exam's densest question sources. Questions describe a workload (read-heavy, write-heavy, spiky, global) with a constraint such as lowest cost or least operational overhead, and every option is a real database feature. This lesson shows how to map any requirement phrase to the right engine, replication mode, capacity mode or cache, and why the near-miss options lose.

What you’ll learn

  • Choose a database type — relational, key-value, in-memory or purpose-built — from the workload's access pattern
  • Choose a relational engine (MySQL, PostgreSQL, Aurora) and plan a homogeneous or heterogeneous migration to it
  • Decide between read replicas, Multi-AZ DB instance deployments and Multi-AZ DB cluster deployments by separating read scaling from availability
  • Explain Aurora's performance architecture and when Aurora replicas, Aurora Global Database or Aurora Serverless v2 beat standard RDS
  • Choose DynamoDB on-demand vs provisioned capacity, and design partition keys and secondary indexes that avoid throttling
  • Select the right cache — DAX vs ElastiCache, Valkey/Redis OSS vs Memcached — and the right population strategy
  • Fix connection exhaustion with RDS Proxy and scale write-intensive workloads by matching the fix to the measured bottleneck

The 10 parts · about 22 min of reading

  1. Pick the database from the access pattern, not the dataStart hereAd hoc SQL and unplanned joins point to RDS or Aurora, known key-based access at scale to DynamoDB, microsecond reads to a cache.2 min
  2. Choosing the engine and migrating to itKeep the engine the application uses; a heterogeneous move converts schema and code first, then AWS DMS copies data with full load and CDC.2 min
  3. RDS read replicas vs Multi-AZRead replicas add readable, asynchronously synced capacity; a Multi-AZ DB instance standby only survives an AZ failure and serves no reads.2 min
  4. Aurora: why it is fast, and when it beats standard RDSReplicas share one volume behind a single reader endpoint; Global Database serves remote Regions and Serverless v2 fits intermittent load.3 min
  5. DynamoDB capacityUse provisioned capacity with auto scaling for steady traffic and on-demand for spiky or unknown traffic, pre-warmed for a known launch.2 min
  6. Partition keys, hot partitions, and GSI vs LSIThrottling with spare capacity means a hot key, fixed by better keys or write sharding; querying by another attribute means a GSI.3 min
  7. Choosing the cacheDAX caches DynamoDB with no code rewrite; ElastiCache caches the rest, Valkey or Redis OSS for durability and Memcached for simplicity.2 min
  8. Caching strategies and RDS ProxyLazy loading risks stale data, write-through risks cache pollution and a TTL bounds both; RDS Proxy pools connections Lambda would exhaust.2 min
  9. Capacity planning and the database-selection decision tableScale reads with replicas and caches, scale writes by distributing, scaling up or buffering, and match the fix to the measured bottleneck.2 min
  10. Worked scenariosVaried reporting queries go to a read replica, throttling with headroom is a hot partition key, and unforecastable traffic needs on-demand.2 min

Mind map

Ad hoc SQL, unplanned joins → RDS orAuroraKnown key access at scale → DynamoDBTransactions alone don't rule outDynamoDBNeptune graph, Timestream IoT,DocumentDB Mongo1✓Access pattern firstKeep the engine the app already usesHeterogeneous: SCT or DMS SC convertsschemaDMS full load + CDC for minimaldowntimeRDS to Aurora: Aurora read replica,then promote2✓Engine choice andmigrationReplicas: async, readable,cross-RegionMulti-AZ instance standby serves noreadsMulti-AZ DB cluster: two readablestandbysReplica promotion is manual, notfailover3✓Read replicas vs Multi-AZShared volume keeps replica lag under100 msOne reader endpoint, up to 15 replicasGlobal Database: storage-level,sub-second lagServerless v2 scales to 0 ACUs andpauses4✓Aurora's advantagesSteady traffic → provisioned + autoscalingSpiky or unknown traffic → on-demandOn-demand instantly absorbs 2xprevious peakKnown launch → pre-warm with warmthroughput5✓DynamoDB capacity modesThrottling with spare capacity = hotpartitionFix with high-cardinality key or writeshardingQuery by another attribute → GSIpartition keyGSIs any time; LSIs only at tablecreation6✓Hot partitions andindexesDAX: microsecond DynamoDB reads, norewriteElastiCache fronts RDS, sessions, anybackendValkey/Redis OSS: persistence,failover, sorted setsMemcached: simplest, multi-threaded,no persistence7✓DAX vs ElastiCacheLazy loading caches only reads, can gostaleWrite-through stays fresh, riskspollutionTTL bounds staleness and unread dataRDS Proxy pools connections Lambdaexhausts8✓Caching strategies, RDSProxyScale reads with replicas and cachesScale writes: distribute, scale up orSQS bufferDisk I/O saturated → Provisioned IOPSStrongly consistent reads cost doubleRCUs9✓Capacity planningVaried reporting queries → readreplicaThrottling with headroom → shard thehot keyUnforecastable traffic → on-demandcapacity10✓Worked scenariosHigh-performingdatabases
Mind map

High-Performing Databases: Aurora vs RDS, DynamoDB, DAX and ElastiCache

Ad hoc SQL, unplanned joins → RDS orAuroraKnown key access at scale → DynamoDBTransactions alone don't rule outDynamoDBNeptune graph, Timestream IoT,DocumentDB Mongo1✓Access pattern firstKeep the engine the app already usesHeterogeneous: SCT or DMS SC convertsschemaDMS full load + CDC for minimaldowntimeRDS to Aurora: Aurora read replica,then promote2✓Engine choice andmigrationReplicas: async, readable,cross-RegionMulti-AZ instance standby serves noreadsMulti-AZ DB cluster: two readablestandbysReplica promotion is manual, notfailover3✓Read replicas vs Multi-AZShared volume keeps replica lag under100 msOne reader endpoint, up to 15 replicasGlobal Database: storage-level,sub-second lagServerless v2 scales to 0 ACUs andpauses4✓Aurora's advantagesSteady traffic → provisioned + autoscalingSpiky or unknown traffic → on-demandOn-demand instantly absorbs 2xprevious peakKnown launch → pre-warm with warmthroughput5✓DynamoDB capacity modesThrottling with spare capacity = hotpartitionFix with high-cardinality key or writeshardingQuery by another attribute → GSIpartition keyGSIs any time; LSIs only at tablecreation6✓Hot partitions andindexesDAX: microsecond DynamoDB reads, norewriteElastiCache fronts RDS, sessions, anybackendValkey/Redis OSS: persistence,failover, sorted setsMemcached: simplest, multi-threaded,no persistence7✓DAX vs ElastiCacheLazy loading caches only reads, can gostaleWrite-through stays fresh, riskspollutionTTL bounds staleness and unread dataRDS Proxy pools connections Lambdaexhausts8✓Caching strategies, RDSProxyScale reads with replicas and cachesScale writes: distribute, scale up orSQS bufferDisk I/O saturated → Provisioned IOPSStrongly consistent reads cost doubleRCUs9✓Capacity planningVaried reporting queries → readreplicaThrottling with headroom → shard thehot keyUnforecastable traffic → on-demandcapacity10✓Worked scenariosHigh-performingdatabases

How the exam tests this

SAA-C03 tests this task with workload-shaped scenarios plus a constraint: a read-heavy, write-heavy, spiky, idle or global workload and lowest cost, least operational overhead, no code change or a hard latency word (milliseconds vs microseconds). Classic shapes: relational vs DynamoDB decided by ad hoc SQL rather than transactions; homogeneous vs heterogeneous migration (schema conversion vs DMS data movement, Aurora read replica promotion); the read-offload choice (read replicas vs Multi-AZ DB instance vs cache); the Aurora upgrade (low-lag replicas, reader endpoint, Global Database vs binlog replica, Serverless v2 vs a stop/start schedule); DynamoDB capacity mode (on-demand headroom, warm throughput); hot partitions on tables and GSIs; GSI key choice; DAX vs ElastiCache; Valkey/Redis OSS vs Memcached; cache population and eviction; and RDS Proxy vs a bigger instance or reserved concurrency. Trap patterns: Multi-AZ offered for read scaling, more capacity offered for a hot partition, a GSI keyed on the wrong attribute, and a fix that works but violates a stated constraint. Read the constraint words before the options.

Key takeaways

  1. Pick relational (RDS/Aurora) for ad hoc SQL and unplanned joins; DynamoDB supports ACID transactions, so transactions alone don't rule it out — unplanned query patterns do.
  2. Homogeneous migrations keep the engine; heterogeneous ones need DMS Schema Conversion or AWS SCT for schema and code, plus AWS DMS (full load + CDC) for the data. RDS to Aurora: create an Aurora read replica, then promote.
  3. Read replicas scale reads (asynchronous, readable, cross-Region capable); a Multi-AZ DB instance standby cannot serve reads, while a Multi-AZ DB cluster (MySQL/PostgreSQL) has two readable standbys.
  4. Aurora Replicas share the cluster volume, so lag is typically under 100 ms, behind one reader endpoint; Global Database replicates at the storage layer for sub-second cross-Region reads; Serverless v2 can scale to 0 ACUs and pause.
  5. DynamoDB: provisioned + auto scaling for steady traffic, on-demand for unpredictable or idle-then-bursty traffic — on-demand instantly handles up to double the previous peak, and warm throughput pre-warms for a known launch.
  6. Throttling with capacity to spare is a hot partition (each partition caps at about 3,000 RCU / 1,000 WCU); fix the key with high cardinality or write sharding. A throttled GSI also throttles base-table writes.
  7. A Query needs the index's partition key value, so the attribute you look up by must be the GSI's partition key; GSIs can be added any time, LSIs only at table creation.
  8. DAX is the microsecond, API-compatible cache for DynamoDB; ElastiCache fronts everything else — Valkey/Redis OSS for persistence, failover and sorted sets, Memcached for the simplest multi-threaded cache.
  9. Lazy loading + TTL caches only what is read; write-through keeps data fresh but can fill memory with unread items. RDS Proxy pools connections and speeds failover — unlike a bigger instance or reserved concurrency.
0/10
Ready to start

Part 1: Pick the database from the access pattern, not the data

Ad hoc SQL and unplanned joins point to RDS or Aurora, known key-based access at scale to DynamoDB, microsecond reads to a cache.

2 min read · 10 parts, about 22 min in allStart lesson

Frequently asked questions

What is the difference between Amazon Aurora and Amazon RDS?

RDS is AWS's managed service for standard database engines — MySQL, PostgreSQL, MariaDB, SQL Server, Oracle — where each instance and replica keeps its own copy of the data. Aurora is AWS's own MySQL- and PostgreSQL-compatible engine built on a shared, distributed storage volume spanning three Availability Zones. That architecture is why Aurora supports up to 15 read replicas with minimal lag behind a load-balanced reader endpoint, fails over faster, and delivers higher throughput than the equivalent community engines on RDS. Choose Aurora when a relational workload needs serious read scaling, fast failover, or global replicas; standard RDS remains fine for modest workloads or engines Aurora does not offer.

When should I use DynamoDB on-demand vs provisioned capacity?

Use on-demand when traffic is unpredictable, spiky, or unknown — new applications, workloads that idle then surge — because you pay per request with no capacity planning and no throttling from under-provisioning. Use provisioned capacity, usually with auto scaling, when traffic is steady and predictable, because sustained throughput costs less per request than on-demand. A common lifecycle is to launch on-demand, observe real traffic, then switch to provisioned once the pattern stabilizes. Note that neither mode fixes a hot partition: if requests concentrate on one partition key value, that partition throttles regardless of mode.

What is the difference between DAX and ElastiCache?

DynamoDB Accelerator (DAX) is a write-through cache purpose-built for DynamoDB: it is API-compatible, so the application swaps its client with minimal code change, and eventually consistent reads that hit the cache return in microseconds. It only works with DynamoDB. ElastiCache is a general-purpose in-memory cache (Valkey, Redis OSS or Memcached) that can front any data source — RDS, Aurora, external APIs, session state — but the application must implement the caching logic itself. On the exam, "DynamoDB" plus "microsecond reads" or "minimal application changes" means DAX; caching for a relational database or storing sessions and leaderboards means ElastiCache.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?