3.5 Database Services — RDS, Aurora, DynamoDB, and More

Key Takeaways

  • RDS supports six engines (MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, Db2) with automated backups, patching, and Multi-AZ failover.
  • Aurora is AWS-built and MySQL/PostgreSQL compatible with up to 5x better performance than MySQL and 3x better than PostgreSQL, plus 6-way replication across 3 AZs.
  • DynamoDB is a serverless NoSQL key-value/document database with single-digit millisecond latency, auto-scaling, and Global Tables for multi-Region active-active.
  • ElastiCache provides in-memory caching with Redis (rich features, persistence) or Memcached (simple, multi-threaded) for sub-millisecond response times.
  • Amazon Redshift is a data warehouse for analytics (OLAP) — not for transactional (OLTP) workloads.
Last updated: March 2026

Database Services — RDS, Aurora, DynamoDB, and More

Quick Answer: Use RDS/Aurora for relational data (SQL). Use DynamoDB for key-value/NoSQL at any scale. Use ElastiCache (Redis/Memcached) for caching. Use Redshift for data warehousing/analytics. Use Neptune for graph data. Use DocumentDB for MongoDB-compatible workloads. Choose the purpose-built database that matches your data model and access patterns.

Amazon RDS (Relational Database Service)

RDS is a managed relational database service supporting six database engines.

RDS Engines

EngineCompatibilityMax Storage
MySQLMySQL64 TB
PostgreSQLPostgreSQL64 TB
MariaDBMariaDB64 TB
OracleOracle64 TB
SQL ServerSQL Server16 TB
IBM Db2IBM Db264 TB

RDS Managed Features

FeatureDetail
Automated backupsDaily snapshots + transaction logs (point-in-time recovery up to 35 days)
Multi-AZSynchronous standby replica with automatic failover (60-120 seconds)
Read replicasUp to 15 (Aurora) / 5 (other engines); async replication
PatchingAutomated OS and database engine patching during maintenance windows
MonitoringCloudWatch metrics + Performance Insights + Enhanced Monitoring
EncryptionAt rest (KMS) and in transit (SSL/TLS)

RDS Read Replicas vs. Multi-AZ

FeatureRead ReplicasMulti-AZ
PurposeRead scalingHigh availability
ReplicationAsynchronousSynchronous
Readable?Yes (serve read traffic)No (standby only)
Cross-RegionYesNo (same Region)
FailoverManual promotionAutomatic (60-120s)
Use caseRead-heavy workloads, reportingProduction HA

On the Exam: "Scale read-heavy database workload" → Read replicas. "Automatic failover for database HA" → Multi-AZ. You can combine both for read scaling AND high availability.

Amazon Aurora

Aurora is an AWS-designed relational database compatible with MySQL and PostgreSQL, delivering up to 5x MySQL performance and 3x PostgreSQL performance.

Aurora Architecture

FeatureDetail
Storage6 copies of data across 3 AZs (automatically)
DurabilityTolerate loss of 2 copies for writes, 3 copies for reads
Auto-scaling storage10 GB to 128 TB, grows automatically in 10 GB increments
Read replicasUp to 15 with <10ms replica lag
Failover<30 seconds (promotes a read replica)
BacktrackingRewind database to a point in time without restoring from backup
CloningCreate a copy of database using copy-on-write (instant, no storage cost initially)

Aurora Serverless v2

FeatureDetail
ScalingInstantly scales compute from 0.5 to 256 ACUs (Aurora Capacity Units)
Use caseVariable/unpredictable workloads, dev/test, multi-tenant
BillingPer ACU per second
Minimum0.5 ACU when idle (not zero — use Serverless v1 for scale-to-zero)

Amazon DynamoDB

DynamoDB is a serverless NoSQL database providing single-digit millisecond performance at any scale.

DynamoDB Features

FeatureDetail
Data modelKey-value and document
LatencySingle-digit millisecond reads/writes
ScalingAutomatic (on-demand) or provisioned with auto-scaling
Global TablesActive-active multi-Region replication
DAXDynamoDB Accelerator — in-memory cache for microsecond reads
StreamsCapture item-level changes (trigger Lambda, replicate data)
TTLAutomatically delete expired items at no cost
PITRPoint-in-time recovery (continuous backups up to 35 days)

DynamoDB Capacity Modes

ModeDescriptionBest For
On-DemandPay per request, no capacity planningUnpredictable traffic, new applications
ProvisionedSet RCUs/WCUs with optional auto-scalingPredictable traffic, cost optimization

DynamoDB Accelerator (DAX)

DAX is an in-memory cache for DynamoDB that delivers microsecond response times:

  • Fully managed, Multi-AZ
  • Compatible with existing DynamoDB API calls (drop-in replacement)
  • Ideal for read-heavy workloads with repeated reads of the same items

Amazon ElastiCache

ElastiCache provides managed in-memory data stores for caching.

Redis vs. Memcached

FeatureRedisMemcached
Data structuresStrings, hashes, lists, sets, sorted sets, streamsSimple key-value
PersistenceYes (snapshots + AOF)No
ReplicationMulti-AZ with automatic failoverNo replication
ClusteringYes (up to 500 nodes)Yes (up to 40 nodes)
Pub/SubYesNo
Backup/RestoreYesNo
Multi-threadedSingle-threaded (per shard)Multi-threaded
Use caseSession store, leaderboards, real-time analyticsSimple caching, session store

On the Exam: "In-memory cache with replication and persistence" → ElastiCache for Redis. "Simple caching layer, multi-threaded" → ElastiCache for Memcached.

Other Database Services

ServiceTypeUse Case
Amazon RedshiftColumnar data warehouse (OLAP)BI, analytics, reporting on petabytes of data
Amazon NeptuneGraph databaseSocial networks, knowledge graphs, fraud detection
Amazon DocumentDBMongoDB-compatible document DBContent management, catalogs, user profiles
Amazon KeyspacesCassandra-compatibleWide-column NoSQL, time-series data
Amazon TimestreamTime-series databaseIoT, DevOps metrics, application monitoring
Amazon QLDBImmutable ledger databaseFinancial transactions, supply chain, regulatory
Amazon MemoryDBRedis-compatible, durableUltra-fast durable database (not just cache)
Test Your Knowledge

A web application needs a relational database with automatic failover, up to 15 read replicas, and storage that automatically scales. Which database service is the BEST fit?

A
B
C
D
Test Your Knowledge

A gaming leaderboard requires sub-millisecond read latency with automatic scaling. Which database should be used?

A
B
C
D
Test Your Knowledge

Which caching solution provides automatic Multi-AZ failover and data persistence?

A
B
C
D