3.3 AWS Database Services

Key Takeaways

  • Amazon RDS is a managed relational database service supporting MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, and Amazon Aurora.
  • Amazon DynamoDB is a fully managed NoSQL key-value database with single-digit millisecond latency at any scale.
  • Amazon Aurora is a cloud-native relational database compatible with MySQL and PostgreSQL, up to 5x faster than standard MySQL.
  • Amazon Redshift is a cloud data warehouse designed for analytical queries (OLAP) across petabytes of structured data.
  • Amazon ElastiCache provides in-memory caching (Redis or Memcached) for sub-millisecond response times.
Last updated: March 2026

AWS Database Services

Quick Answer: AWS offers purpose-built databases for different needs: RDS/Aurora for relational data, DynamoDB for NoSQL key-value, Redshift for analytics/warehousing, ElastiCache for in-memory caching, and DocumentDB for document databases. Choose based on data model and access pattern.

Relational Databases

Amazon RDS (Relational Database Service)

Amazon RDS is a managed service that makes it easy to set up, operate, and scale relational databases in the cloud.

Supported engines:

EngineDescription
Amazon AuroraCloud-native, MySQL/PostgreSQL-compatible
MySQLOpen-source relational database
PostgreSQLAdvanced open-source relational database
MariaDBCommunity-developed fork of MySQL
OracleEnterprise relational database
SQL ServerMicrosoft relational database

What RDS manages for you:

  • Hardware provisioning and OS patching
  • Database engine patching
  • Automated backups and point-in-time recovery
  • Multi-AZ deployment for high availability
  • Read replicas for read scaling
  • Monitoring and metrics via CloudWatch

What you manage:

  • Database schema design
  • Query optimization
  • IAM and database user management
  • Choosing the instance size and storage type
  • Encryption configuration

Amazon Aurora

Amazon Aurora is AWS's cloud-native relational database built for the cloud, compatible with MySQL and PostgreSQL.

FeatureDetail
PerformanceUp to 5x faster than standard MySQL, 3x faster than standard PostgreSQL
Durability6 copies of data across 3 AZs
Auto-scaling storageGrows automatically from 10 GB up to 128 TB
High AvailabilityAutomated failover with up to 15 read replicas
Aurora ServerlessAuto-scales compute capacity based on demand

On the Exam: If a question mentions "cloud-native relational database" or "MySQL/PostgreSQL compatible with better performance," the answer is Aurora.


NoSQL Databases

Amazon DynamoDB

Amazon DynamoDB is a fully managed NoSQL database that delivers single-digit millisecond latency at any scale.

FeatureDetail
Data ModelKey-value and document
PerformanceSingle-digit millisecond response at any scale
ScalingAutomatic scaling; handles 10+ trillion requests per day
ServerlessNo servers to manage, patch, or maintain
Global TablesMulti-Region, multi-active replication
DAXDynamoDB Accelerator for microsecond reads (in-memory cache)
PricingPay-per-request or provisioned capacity

When to use DynamoDB:

  • High-traffic web applications needing consistent low latency
  • Mobile and gaming backends
  • IoT data storage
  • Session management
  • Shopping carts

On the Exam: DynamoDB = NoSQL, serverless, single-digit millisecond latency, key-value/document store. If a question describes a NoSQL or key-value database need, DynamoDB is usually the answer.


Analytical Databases

Amazon Redshift

Amazon Redshift is a cloud data warehouse designed for analytical queries (OLAP) across large datasets.

FeatureDetail
TypeColumnar data warehouse
ScalingPetabyte-scale
Performance10x better than traditional data warehouses
Redshift ServerlessAnalyze data without managing clusters
Redshift SpectrumQuery data directly in S3 without loading

When to use Redshift:

  • Business intelligence and reporting
  • Complex analytical queries across large datasets
  • Aggregation and summarization of historical data

Caching

Amazon ElastiCache

Amazon ElastiCache provides in-memory caching to improve application performance.

EngineUse Case
RedisAdvanced data structures, replication, pub/sub, persistence
MemcachedSimple caching, multi-threaded, no persistence needed

Use ElastiCache when:

  • Database queries are repetitive and results can be cached
  • Session data needs to be shared across application servers
  • Sub-millisecond response times are required

Other Database Services

ServiceTypeUse Case
Amazon DocumentDBDocument database (MongoDB-compatible)Content management, catalogs, user profiles
Amazon NeptuneGraph databaseSocial networks, fraud detection, recommendation engines
Amazon KeyspacesWide-column (Cassandra-compatible)Equipment maintenance, fleet management, route optimization
Amazon QLDBLedger database (immutable)Financial transactions, supply chain, regulatory compliance
Amazon TimestreamTime-series databaseIoT, DevOps monitoring, application metrics
Amazon MemoryDB for RedisRedis-compatible durable databaseDurable in-memory workloads

Database Selection Guide

RequirementBest Service
Relational data, complex queriesAmazon RDS or Aurora
High-speed key-value lookupsAmazon DynamoDB
Data warehousing and analyticsAmazon Redshift
In-memory cachingAmazon ElastiCache
Document storage (MongoDB workloads)Amazon DocumentDB
Graph relationshipsAmazon Neptune
Immutable, verifiable transaction logAmazon QLDB
Time-series data (IoT sensors)Amazon Timestream
Test Your Knowledge

Which AWS database service is a fully managed NoSQL database that provides single-digit millisecond latency at any scale?

A
B
C
D
Test Your Knowledge

A company needs a cloud-native relational database that is compatible with MySQL and provides up to 5x better performance. Which service should they use?

A
B
C
D
Test Your Knowledge

Which AWS service is designed for running complex analytical queries across petabytes of structured data?

A
B
C
D
Test Your Knowledge

A company needs a graph database to manage highly connected datasets for a social networking application. Which service should they choose?

A
B
C
D