/Database Services (RDS, DynamoDB, Aurora)
Concept
Medium

Database Services (RDS, DynamoDB, Aurora)

6 min read·rdsauroradynamodbredshiftelasticacheneptunedmsmulti-azread-replicasolapclf-c02

AWS provides purpose-built databases for every use case: relational (RDS, Aurora), NoSQL key-value and document (DynamoDB), data warehousing (Redshift), in-memory caching (ElastiCache), and graph (Neptune). The critical CLF-C02 distinction is RDS Multi-AZ (high availability, synchronous, standby not readable) versus Read Replicas (read scaling, asynchronous, readable).


1. AWS Database Services — Purpose-Built for Every Workload

Rendering diagram…

2. Amazon RDS — Relational Database Service

RDS is a fully managed relational database. AWS handles all the operational work so you focus on your data and application.

AWS manages: OS patching, automated backups, software patching, multi-AZ failover, read replica creation, monitoring

Customer manages: Database schema design, SQL query optimization, IAM and DB user accounts, application connection strings

Supported engines: MySQL, PostgreSQL, MariaDB, Oracle, Microsoft SQL Server, Amazon Aurora

RDS Multi-AZ — High Availability

Rendering diagram…

Multi-AZ purpose: HIGH AVAILABILITY — not performance

  • Standby instance cannot be read — it exists only for failover
  • Synchronous replication — zero data loss on failover
  • Automatic failover via DNS change — application reconnects automatically

RDS Read Replicas — Read Scaling

Rendering diagram…

Read Replicas purpose: READ PERFORMANCE SCALING

  • Replicas are readable — offload SELECT queries from the primary
  • Asynchronous replication — slight replication lag possible
  • Up to 15 read replicas per primary instance
  • Can be promoted to standalone database (useful for disaster recovery)

Multi-AZ vs Read Replicas — Key Exam Distinction

FeatureMulti-AZRead Replicas
Primary purposeHigh availabilityRead performance scaling
Replication typeSynchronousAsynchronous
Standby/replica readable?No — failover onlyYes — accept read traffic
FailoverAutomatic (DNS change)Manual promotion
Cross-RegionNoYes
Data loss on failureZero (synchronous)Possible lag

3. Amazon Aurora

Aurora is AWS's cloud-native relational database — rebuilt from scratch for the cloud with MySQL and PostgreSQL compatibility:

  • 5× throughput of standard MySQL on RDS; throughput of PostgreSQL on RDS
  • 6 copies of data automatically maintained across 3 AZs — self-healing storage
  • Continuous backup to S3; point-in-time recovery to any second
  • Up to 15 Aurora Replicas with sub-10 ms replica lag
  • MySQL and PostgreSQL compatible — existing apps migrate without code changes

Aurora Serverless

  • Auto-scales database compute up and down based on actual load
  • Scales to zero when idle — pay only for active usage
  • Best for: Intermittently used apps, unpredictable traffic, dev/test environments

4. Amazon DynamoDB — NoSQL at Any Scale

DynamoDB is a fully managed serverless NoSQL database delivering single-digit millisecond performance:

Rendering diagram…
FeatureDescription
ServerlessNo servers to provision, patch, or manage
Auto-scalingHandles millions of requests/second automatically
Global TablesMulti-region, active-active — write and read in any Region
DAXIn-memory cache; microsecond reads; same API as DynamoDB
StreamsCapture item-level changes; trigger Lambda functions
On-demand modePay per request; no capacity planning
Provisioned modePre-specify read/write units; more cost-efficient at sustained load

When DynamoDB vs RDS:

  • DynamoDB: Massive scale, flexible schema, key-value lookups, serverless, gaming leaderboards, session management
  • RDS: Complex SQL joins, multi-table transactions, existing relational data models

5. Amazon Redshift — Data Warehouse

Redshift is a fully managed cloud data warehouse for analytical workloads:

  • Petabyte-scale columnar storage optimized for large analytical queries
  • OLAP (Online Analytical Processing) — complex aggregations across huge datasets
  • Standard SQL interface; integrates with BI tools (Amazon QuickSight, Tableau, Power BI)
  • Automatically backs up to S3; can restore to any point in time

OLTP vs OLAP:

OLTPOLAP
PurposeTransactional operations (insert, update, delete)Analytics and reporting (aggregations, trends)
AWS ServiceRDS, Aurora, DynamoDBRedshift
Query typeMany simple fast queriesFew complex slow queries over large datasets
Data volumeCurrent operational dataHistorical data, terabytes to petabytes

6. Amazon ElastiCache — In-Memory Caching

  • Managed in-memory data store for sub-millisecond response times
  • Reduces load on backend databases by caching frequently read data
  • Two engines:
EngineBest ForKey Features
RedisSessions, leaderboards, pub/sub, complex data typesPersistence, replication, multi-AZ, sorted sets
MemcachedSimple key-value caching, multi-threaded performanceSimplicity, horizontal scaling, no persistence

7. Amazon Neptune — Graph Database

  • Fully managed graph database for applications with highly connected datasets
  • Supports property graph (Apache TinkerPop/Gremlin) and RDF (SPARQL)
  • Use cases: Social networks, recommendation engines, fraud detection, knowledge graphs, network topology

8. Database Migration Services

ServicePurpose
AWS DMSMigrate databases to AWS with minimal downtime; source DB stays online
AWS SCTConvert database schema when changing engines (e.g., Oracle to Aurora PostgreSQL)

DMS supports: Homogeneous (MySQL → RDS MySQL) and heterogeneous (Oracle → Aurora) migrations


9. CLF-C02 Quick Reference

TopicKey Fact
RDS enginesMySQL, PostgreSQL, MariaDB, Oracle, SQL Server, Aurora
RDS Multi-AZHigh availability; synchronous; standby NOT readable; auto-failover
RDS Read ReplicasRead scaling; asynchronous; ARE readable; can be cross-Region
Multi-AZ vs Read ReplicaMulti-AZ = HA; Read Replica = read performance
AuroraMySQL/PostgreSQL compatible; 5× MySQL throughput; 6 copies across 3 AZs
Aurora ServerlessAuto-scales compute; scales to zero; pay per use
DynamoDBServerless NoSQL; single-digit ms; auto-scales to any size
DAXIn-memory cache for DynamoDB; microsecond reads; same API
DynamoDB Global TablesMulti-region active-active replication; write in any Region
RedshiftColumnar data warehouse; petabyte-scale; OLAP analytics
ElastiCache RedisSub-ms caching; sessions, leaderboards; persistence support
ElastiCache MemcachedSimple caching; multi-threaded; no persistence
NeptuneGraph database; social networks, fraud detection
DMSDatabase migration with source DB staying online
SCTSchema conversion between different database engines

Practice Questions7

easy

Q1. Which AWS service is a fully managed relational database that supports MySQL, PostgreSQL, Oracle, and SQL Server, handling OS patching, backups, and Multi-AZ failover for you?


Select one answer before revealing.

easy

Q2. Which AWS database service is a fully managed NoSQL key-value and document database designed for single-digit millisecond performance at any scale?


Select one answer before revealing.

medium

Q3. What is a key advantage of Amazon Aurora over standard Amazon RDS MySQL?


Select one answer before revealing.

medium

Q4. A company needs to analyze petabytes of structured sales data using SQL queries for business intelligence reporting. Which AWS service is purpose-built for this use case?


Select one answer before revealing.

easy

Q5. Which AWS service provides a fully managed in-memory cache compatible with Redis and Memcached, used to reduce database load and improve application response times?


Select one answer before revealing.

medium

Q6. A company is migrating their on-premises Oracle database to Amazon Aurora PostgreSQL. Which AWS tool converts the database schema and stored procedures to a compatible format?


Select one answer before revealing.

medium

Q7. Which TWO features are automatically included with Amazon RDS when you enable Multi-AZ deployment? (Select TWO — more than one answer may be correct)


Select one answer before revealing.