Choosing Purpose-Built Databases by Keyword and Access Pattern
This lesson explains how AWS offers a database for each data model, and how exam questions often contain a keyword that points directly to one of them.
Learning outcomes
After completing this lesson, you will be able to:
- Map keywords to purpose-built databases.
- Choose one database per access pattern.
Database by keyword
Exam questions about purpose-built databases usually contain keywords that identify the appropriate service. The following table maps common keywords to their databases.
| Keyword | Database | Notes |
|---|---|---|
| MongoDB, JSON documents | Amazon DocumentDB | Aurora-like storage |
| Graph, relationships, fraud rings, recommendations | Amazon Neptune | Gremlin, openCypher, SPARQL |
| Cassandra, CQL, wide-column | Amazon Keyspaces | Serverless |
| Time series, IoT | Amazon Timestream | Timestream for InfluxDB (LiveAnalytics is closed to new customers) |
| Data warehouse, analytics | Amazon Redshift | Columnar |
| Full-text search, log analytics, vectors | Amazon OpenSearch Service | — |
| Ledger, immutable history | Aurora PostgreSQL or DynamoDB designs | QLDB has reached end of support |
The following diagram shows the databases from the table with their keywords.

Database by keyword
One database per access pattern
Forcing every workload into one relational database causes performance and scaling problems, because each kind of data is best served by a store designed for its access pattern. Microservice architectures therefore often use a database per service, chosen for that service's needs: DynamoDB for shopping carts that need fast key lookups at any scale, Aurora for orders that need transactions and joins, and Neptune for recommendations that follow relationships between customers and products.
Moving to purpose-built databases is supported by migration tools, for example AWS DMS can migrate MongoDB to Amazon DocumentDB, and many of these engines are serverless or scale automatically, which reduces the operational cost of running several of them.
Which database for each service?
One database per access pattern
A single application may use several purpose-built databases, each suited to one type of data. The following table identifies the database chosen for each.
| Data | Database |
|---|---|
| Orders and payments with transactions | Amazon Aurora |
| User sessions and shopping carts at massive scale | Amazon DynamoDB |
| Product search with typing-error tolerance | Amazon OpenSearch Service |
| "Customers who bought this also bought" relationships | Amazon Neptune |
| Sensor readings every second from 10,000 devices | Amazon Timestream |
| Existing MongoDB application | Amazon DocumentDB |
| Business reporting across years of data | Amazon Redshift |
Exam questions usually include one keyword (transactions, key-value, search, graph, time series, MongoDB, data warehouse) that points to the purpose-built database.
Which database suits relationships between friends, products and purchases for recommendations?
Show answer
Amazon Neptune, a graph database designed to query highly connected data.
Exam Tips
Remember for the exam
- For MongoDB compatibility use DocumentDB; for Cassandra compatibility use Keyspaces.
- For queries over relationships, such as friends of friends or fraud rings, use Neptune.
- For IoT sensor time series, use Timestream.
- For full-text search, use OpenSearch Service.
- Each microservice should own its data store, chosen for its access pattern.