Skip to Content
Asterrr's Handbook
2 · New solutions

Purpose-built databases

Choosing between RDS, Aurora, DynamoDB, DocumentDB, Neptune, Keyspaces, Timestream, MemoryDB, Redshift and OpenSearch, and the DynamoDB and Aurora features the exam tests.

Exam tasks: 2.5 (select database and storage for performance), 4.3 (choose new architectures, including purpose-built databases)

The decision: what shape is the data and the access pattern (relational joins, key lookups, documents, graph traversals, time series, analytics or search), and how much scale, latency and operational effort is acceptable?

Choosing a database

yesnoyesnoyesyesno, or engine likeOracle/SQL ServernoyesnoMongoDBCassandranoyesno: key-value at anyscaleWhat does the workload do?Analytics over TBs:aggregations, BI?RedshiftFull-text search, loganalytics?OpenSearchServiceRelational: joins,transactions, SQL?Need cloud-native scale,fast failover, global?AuroraRDSRelationships are thequery?NeptuneExisting MongoDB orCassandra app?DocumentDBKeyspacesMicrosecond reads, durablein-memory?MemoryDBDynamoDB
Decision tree for choosing a database

Time-series data (IoT sensors, metrics) with time-window queries goes to Timestream, and a ledger or audit trail usually lands in a regular database with an append-only design (see the QLDB note below).

Side by side

ServiceModelSignals in a question
RDSRelational: MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, Db2Commercial engine, lift and shift, license needs
AuroraRelational, MySQL- or PostgreSQL-compatibleHigh throughput, 15 replicas, fast failover, global reads
Aurora DSQLDistributed serverless PostgreSQL-compatibleActive-active SQL across Regions
DynamoDBKey-value and documentSingle-digit ms at any scale, serverless, known access patterns
DocumentDBDocument, MongoDB-compatibleMigrate a MongoDB workload with minimal changes
NeptuneGraph (Gremlin, openCypher, SPARQL)Social networks, fraud rings, recommendations, knowledge graphs
KeyspacesWide-column, Cassandra-compatible (CQL)Migrate Cassandra without running clusters
TimestreamTime seriesIoT telemetry, DevOps metrics, time-window queries
MemoryDBDurable in-memory, Valkey- and Redis OSS-compatibleMicrosecond reads and durability as the primary DB
RedshiftColumnar data warehouseBI, complex aggregations, petabyte analytics
OpenSearch ServiceSearch and log analyticsFull-text search, log exploration, dashboards

Legacy: use Aurora PostgreSQL or DynamoDB with an append-only design instead

Amazon QLDB, the managed ledger database, reached end of support in July 2025. Older material still names it as the answer for an immutable, cryptographically verifiable journal.

Legacy: use Timestream for InfluxDB instead

Timestream for LiveAnalytics closed to new customers in June 2025. New time-series designs use Timestream for InfluxDB. Exam questions that just say "Timestream" still mean the time-series service in general.

Service pages

The rest, briefly

  • DocumentDB: storage architecture like Aurora's, MongoDB API compatibility, global clusters. Elastic clusters shard for very large write scale.
  • Neptune: use it when queries walk relationships several hops deep, which is slow and awkward in SQL. Neptune Analytics handles large in-memory graph algorithms.
  • Keyspaces: serverless Cassandra. No nodes, compaction or repair to manage.
  • MemoryDB: a Multi-AZ transaction log makes writes durable, so it can be the only database. ElastiCache is a cache in front of another database.
  • Redshift: RA3 nodes separate compute from managed storage. Redshift Serverless for intermittent use. Concurrency scaling handles bursts. See analytics patterns.
  • OpenSearch Service: see analytics patterns.

Scenarios

Scenario · choose 2
A logistics company runs a PostgreSQL order database on RDS. Reporting queries every morning slow down order entry. The company also wants the database to survive an AZ failure with automatic failover. Which TWO actions should the architect take?
Scenario
A payments startup builds a fraud-detection feature that must find accounts linked through shared devices, cards and addresses, up to four hops away, in under a second. The current SQL queries with recursive joins time out. Which database should the architect choose?
Scenario
A media app on DynamoDB has a table keyed by user ID. The product team now needs to query all items by upload date across all users. The table has been in production for a year. What should the architect do?

Further reading

On this page