Originally published at unifiedpathmedia.com.
The short version: RDS (Relational Database Service) is a managed version of the relational database you probably already know (PostgreSQL, MySQL): same tables, same SQL, AWS (Amazon Web Services) just handles the patching and backups. DynamoDB is a managed NoSQL database built for a completely different shape of problem: known access patterns, enormous scale, and single-digit-millisecond latency, in exchange for giving up the flexible, ad-hoc queries relational databases are good at. The choice isn’t “which is better”. It’s which shape your data and your queries actually are.
← Part of the AWS Foundations series
Published September 24, 2026.
Last verified November 5, 2026 against AWS’s RDS, Aurora and DynamoDB documentation and pricing pages.
Who this is for: anyone building their first app on AWS who has to pick where the data lives. You’ll need first: nothing beyond knowing what a database is. Terms are explained as they come up.
Part 3 introduced both of these in a sentence each. That’s enough to know they exist. It’s not enough to pick one, and picking wrong is a expensive mistake to unwind once an application’s been built around it.
RDS: the database you already know how to think about
RDS isn’t a new kind of database. It’s PostgreSQL, MySQL, MariaDB, SQL Server, Oracle or Db2, running on AWS-managed infrastructure. (Amazon Aurora is AWS’s own MySQL- and PostgreSQL-compatible engine inside RDS, built for higher performance and availability.) You still write real SQL (the standard language for asking a database questions), still design tables with relationships and foreign keys (a column that points at a row in another table), still run whatever queries you need. What AWS takes off your plate is patching, automated backups, and Multi-AZ failover (AZ is short for Availability Zone; Multi-AZ keeps a standby copy in a second data center that takes over if the first one fails), so a hardware failure doesn’t mean a 3 a.m. page.
RDS is the right default whenever your data has real relationships (orders belong to customers, customers have addresses) and you don’t yet know every query you’ll ever need to run against it. That flexibility, the ability to ask a question you didn’t plan for, is exactly what relational databases are for.
Not sure yet? That is your answer: start with RDS.
DynamoDB: built for scale and known access patterns
DynamoDB gives up that flexibility on purpose, in exchange for scale and speed that’s hard for a relational database to match. It’s a key-value and document store (you save each item under a key and fetch it back by that key, a bit like a coat check): you define a primary key (the field you look items up by, like an order number) up front, and fast lookups by that key are what it’s built for. Ad-hoc queries across arbitrary fields, the kind RDS handles naturally, are either awkward or impossible without a secondary index (an extra lookup by a second field) you have to plan for in advance.
The trade only makes sense when you already know your access patterns: “look up a user by ID,” “get the last 20 orders for this customer.” If you’re still discovering what questions you’ll need to ask of your own data, that uncertainty is itself a signal you want RDS, not DynamoDB.
Where each one shines in practice: DynamoDB is a natural home for user sessions (with an expiry time, so old ones delete themselves), shopping carts, game leaderboards and streams of readings from devices. RDS is the home for orders, invoices, inventory and anything you’ll want to report on in ways you haven’t thought of yet.
A rule of thumb, not a rulebook
| Situation | Reach for |
|---|---|
| Data has real relationships; you’ll need queries you can’t fully predict yet | RDS |
| You know your access patterns and need to scale to massive, unpredictable traffic | DynamoDB |
| You’re not sure yet | RDS: it’s far easier to migrate off a relational database once your patterns are known than to retrofit flexibility DynamoDB was never built to have |
Get the free cloud lessons: a short, plain-English lesson every week. Subscribe free
Try both before committing to either
MiniStack runs real RDS engines (actual PostgreSQL and MySQL, not an emulation) alongside a DynamoDB implementation, so you can prototype against both and feel the difference in how you write queries before any of it touches a real account.
bash
$ export AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test AWS_DEFAULT_REGION=us-east-1
$ aws dynamodb create-table \
--table-name Orders \
--attribute-definitions AttributeName=OrderId,AttributeType=S \
--key-schema AttributeName=OrderId,KeyType=HASH \
--billing-mode PAY_PER_REQUEST \
--endpoint-url http://localhost:4566
Five questions before you choose
- Do you know your queries up front? DynamoDB rewards knowing exactly how you’ll read the data. RDS lets you decide later and ask new questions with SQL.
- Is your data relational? Orders, customers and invoices that join to each other are SQL’s home turf.
- How spiky is the traffic? Wildly uneven load is where DynamoDB’s on-demand mode earns its keep.
- Who has to maintain it? A team that already knows SQL moves faster on RDS.
- What does a mistake cost? A wrong table design in DynamoDB can be painful to undo. A wrong index in RDS is a one-line fix.
How each one bills (and what’s free)
RDS charges for the database instance by the hour, plus storage, plus backups beyond what’s included. You pay whether or not anyone is querying it.
DynamoDB has two billing modes. On-demand charges for each read and write you actually make. Provisioned charges for a set amount of capacity you reserve, used or not.
DynamoDB also has an always-free allowance with no end date: 25 GB (gigabytes) of storage plus 25 units each of provisioned read and write capacity, per Region. That allowance covers provisioned mode only. On-demand reads and writes are billed from the first request, though storage under 25 GB is still free.
On a new account, both are paid for from your credits until they run out (the Free Tier post explains how that works). In short: DynamoDB is cheap for small or bursty apps, and RDS is predictable for steady ones. Check current pricing for your Region before you commit; FinOps Part 2 shows how to estimate the monthly cost first.
You don’t have to pick just one
Plenty of real apps use both: DynamoDB for the sessions and the shopping cart, RDS for the orders and the reporting. Pick per job, not per company.
One networking difference worth knowing: an RDS database lives inside your own private network, in subnets you choose. DynamoDB is a service you reach over AWS’s network, so it never sits in your subnets at all. If you want that traffic to stay inside your private network (your VPC, or virtual private cloud), a VPC endpoint handles it.
Common mistakes
- Using DynamoDB like a SQL database. If you keep wishing for joins, you picked the wrong tool.
- Choosing it because it’s “serverless” and sounds modern. Fit beats fashion.
- Leaving RDS in a single AZ for anything you’d miss. Multi-AZ is the setting from the Cloud Architecture series that keeps a standby ready.
- No backups you’ve ever restored. Same lesson as everywhere else: untested is hopeful.
RDS vs DynamoDB: quick answers
When should I use DynamoDB instead of RDS?
When you already know exactly how your app will read its data (look up a user by ID, get a customer’s last 20 orders) and you need it to stay fast at very large or very spiky traffic. If you’re still working out which questions you’ll ask of your data, use RDS.
Is DynamoDB cheaper than RDS?
For small or bursty apps, usually yes: you pay for the reads and writes you make, and a small provisioned table can fit inside the always-free allowance. For steady, busy apps, RDS is often easier to predict. It depends on your traffic, so estimate both.
Can DynamoDB do joins?
No. A join is when a database combines rows from two tables in one question, such as customers with their orders. DynamoDB doesn’t do that, even though it offers a SQL-like syntax called PartiQL. You design the data around the lookups you need instead. If you keep wishing for joins, that’s a sign RDS fits better.
Does DynamoDB support transactions?
Yes, within limits. A single transaction can change up to 100 items, across tables in the same account and Region, and either every change happens or none does. RDS is still the easier fit for long, complex transactions that touch many tables.
Is Aurora the same as RDS?
Aurora is AWS’s own database engine, compatible with MySQL and PostgreSQL, and it runs inside RDS. Think of RDS as the managed service and Aurora as one of the engines you can pick in it. Its serverless option (Aurora Serverless v2) can pause itself when nobody is connected, which helps for a learning project that sits idle most of the day.
Can I switch from one to the other later?
Yes, but it’s real work: the data model is different, not just the storage. Moving off a relational database once your access patterns are known is easier than adding flexibility to DynamoDB afterwards, which is why RDS is the safer starting point.
That’s every AWS service this series set out to cover, from account setup to the two databases every real application eventually needs. From here, the Cloud Architecture series is where these individual services stop being separate tools and start becoming one designed system.
Next: Cloud Architecture Part 1: What Cloud Architecture Actually Means
← Back to the AWS Foundations series
Thanks for reading. I write a free, plain-English cloud lesson every week: subscribe to the newsletter. The full AWS Foundations series and free cloud tools live at unifiedpathmedia.com.

Top comments (0)