Versus · Productivity
DynamoDB vs DocumentDB: pricing, scaling and when to pick each
- Last checked
- 4 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- Amazon DynamoDB if you want a serverless key-value and document database that scales without servers to manage and you can design around key lookups: in US East on-demand it costs $0.625 per million writes, $0.125 per million reads and $0.25 per GB-month of storage, per AWS's worked examples.
- Amazon DocumentDB if your app already speaks MongoDB: AWS says it is compatible with MongoDB 3.6, 4.0, 5.0 and 8.0 drivers and tools, and it is priced by instance hour (a db.r5.large is $0.277 an hour on Standard) plus storage and I/O.
Compared here
- 01Amazon DynamoDB
- 02Amazon DocumentDB
Short answer
Pick DynamoDB if you want a serverless key-value and document database that scales without servers to manage and you can design around key lookups: in US East on-demand it costs $0.625 per million writes, $0.125 per million reads and $0.25 per GB-month of storage, per AWS's worked examples. Pick DocumentDB if your app already speaks MongoDB: AWS says it is compatible with MongoDB 3.6, 4.0, 5.0 and 8.0 drivers and tools, and it is priced by instance hour (a db.r5.large is $0.277 an hour on Standard) plus storage and I/O.
Short version: DynamoDB is built for predictable access patterns at huge scale. DocumentDB is built for MongoDB-style queries without running MongoDB yourself. Below: pricing for both, how queries and scaling differ, the free tiers and a decision guide.
Sponsored links. We may earn a commission; it never changes the pick.
At a glance
| DynamoDB | DocumentDB | |
|---|---|---|
| Model | Serverless key-value and document | MongoDB-compatible document database |
| Pricing basis | On-demand request units, or provisioned capacity | Instance hours, storage, I/O; serverless DCU-hours |
| Writes and reads | $0.625 per million writes, $0.125 per million reads (on-demand, US East) | I/O $0.20 per million on Standard; none on I/O-Optimized |
| Storage | $0.25 per GB-month (Standard) | $0.10 per GB-month Standard; $0.30 I/O-Optimized |
| Compute | None to manage; pay per request | db.r5.large $0.277 an hour Standard, $0.3047 I/O-Optimized |
| Serverless option | Yes by design | $0.0822 per DCU-hour Standard; minimum 0.5 DCU |
| Free tier or trial | 25 GB of storage monthly; 25 WCUs and RCUs apply to provisioned capacity | One month trial: 750 hours db.t3.medium, 30 million I/Os, 5 GB storage, 5 GB backup |
| MongoDB compatibility | No | Drivers and tools for MongoDB 3.6, 4.0, 5.0 and 8.0 |
| Transactions | ACID, 100 actions per transaction | ACID across documents and collections (MongoDB 4.0 API and later) |
| Backups | Point-in-time recovery, 1 to 35 days | Restore to any second, up to 35 days retention |
First, the money talk. The one button here goes to AWS through a vectaai.com/go link, which can carry an affiliate tag if a program applies. Money does not set the verdict. Display ads may show up around the text.
Second, we have not run a load test on either database. We read four AWS pages on 5 December 2026. DynamoDB's price table did not load for us, so its figures come from AWS's own worked examples for US East (N. Virginia). Prices change by Region, so check yours.
The core difference
DynamoDB is AWS's own design: a serverless database where you say what table and key you want and AWS does the rest. There are no servers to size. You pay per request or you provision capacity.
DocumentDB is a managed database that speaks MongoDB's protocol. You pick instance sizes, add replicas and pay for storage and I/O. It is aimed at teams that already have MongoDB-style code and want AWS to run the infrastructure.
So the first question is not price. It is: does your code speak MongoDB, and does your data model fit key-based access?
DynamoDB pricing, from AWS's worked examples
For on-demand capacity in US East (N. Virginia):
- Writes: $0.625 per million write request units.
- Reads: $0.125 per million read request units.
- Storage (DynamoDB Standard): $0.25 per GB-month beyond the free allowance.
- Free: 25 GB of data storage monthly. The free 25 WCUs and RCUs apply to provisioned capacity, not on-demand.
Because you pay per request, a small or spiky workload can cost very little. But a chatty app that reads and writes constantly can add up fast. A million writes is $0.625 and a billion writes is $625. That is our arithmetic on the list rate.
DocumentDB pricing
AWS's DocumentDB page, with examples for US East (N. Virginia):
- Instances: db.r5.large on demand at $0.277 an hour on Standard, or $0.3047 on I/O-Optimized. Billed per second with a 10-minute minimum.
- Storage: $0.10 per GB-month on Standard, $0.30 on I/O-Optimized.
- I/O: $0.20 per million on Standard; none on I/O-Optimized.
- Backups: free up to 100% of cluster data storage, then as low as $0.02 per GB-month.
- Serverless: $0.0822 per DCU-hour on Standard, $0.0905 on I/O-Optimized, minimum 0.5 DCU in 0.5 increments.
- Elastic clusters: $0.132 per vCPU-hour and $0.30 per GB-month for storage.
- Free trial: one month for new users covering 750 hours of db.t3.medium, 30 million I/Os, 5 GB storage and 5 GB backup. Not available in GovCloud or China (Ningxia).
One db.r5.large for a full month of 730 hours is about $202 on Standard, before storage, I/O and any replicas. A production setup normally has more than one instance, so multiply.
How the two scale
DynamoDB scales without you sizing anything. Global tables give active-active replication across Regions with a stated 99.999% availability and single-digit millisecond read and write performance for local access.
DocumentDB scales in steps. Storage grows in 10 GiB increments to a maximum of 4 PiB. You can create up to 15 read replicas, with replica lag often in single-digit milliseconds because replicas share storage. Global clusters support up to 10 secondary Regions, with up to 16 replicas in each. Compute scaling typically takes a few minutes, and serverless adjusts capacity to match demand. Elastic clusters are designed for millions of reads and writes per second.
Queries and data model
This is where the choice usually gets made.
- DynamoDB: you design around access patterns. Secondary indexes let you query on attributes other than the primary key without a full table scan. Transactions support 100 actions each. The model rewards planning and punishes surprise queries.
- DocumentDB: you query documents the MongoDB way, with indexes, aggregation and multi-document transactions on the 4.0 API and later. It also lists native vector search, with indexes built in parallel on version 8.0.
If your team knows MongoDB, DocumentDB is the easier start. If your access patterns are few and well known, DynamoDB is cheaper and simpler to run.
Backups, security and compliance
Both offer point-in-time restore with retention up to 35 days. DynamoDB's on-demand backups are kept until you delete them and do not consume provisioned capacity. DocumentDB's cluster snapshots are also kept until you delete them. DocumentDB lists encryption at rest through AWS KMS, TLS in transit by default, and PCI DSS, SOC, ISO, HITRUST CSF compliance and HIPAA eligibility. DynamoDB lists encryption at rest and in transit by default and zero-downtime maintenance.
Which one for which project
Pick DynamoDB if:
- You want no servers to manage.
- You know your access patterns.
- Your traffic is spiky or unpredictable.
- You are building on AWS Lambda or other AWS services.
Pick DocumentDB if:
- You already use MongoDB drivers.
- You need flexible document queries and aggregation.
- You want to migrate an existing MongoDB app without a rewrite.
Pick neither yet if you are building a small app: a single managed Postgres or a hosted MongoDB can be simpler to start. Our AI tools hub covers other build helpers.
A rough cost sketch for a small app
Imagine an app that does 10 million writes and 50 million reads in a month and stores 20 GB. On DynamoDB on-demand in US East, using the example rates, that is 10 x $0.625 = $6.25 for writes, 50 x $0.125 = $6.25 for reads, and storage within the 25 GB allowance, so about $12.50. On DocumentDB, one db.r5.large at $0.277 an hour is about $202 for the month, plus storage at $0.10 per GB and I/O, and most setups add a replica. At this size, DynamoDB is clearly cheaper, if your data fits its model.
Now flip it: a database that is busy all day and gets queried in complicated ways might cost less on a steady DocumentDB instance than in per-request fees, and the queries are easier to write. These sums are ours, from list rates, not quotes, and they ignore data transfer.
Traps
- DocumentDB compatibility is not the same as MongoDB. Test every feature you use.
- DynamoDB on-demand bills per request, which can surprise you under a bug that loops.
- Both need a budget alert on your AWS account from day one.
- Cross-Region traffic and backups can add costs beyond the headline rates.
What we could not verify
- DynamoDB's pricing table and rates for Regions other than US East.
- DynamoDB's item size limit: not stated on the page we read.
- Real performance, latency and cost for your workload: we ran no tests.
- Exactly which MongoDB features DocumentDB lacks: not listed on the pages we read.
Questions people ask
What is the difference between DynamoDB and DocumentDB?
DynamoDB is AWS's own serverless database, priced per request and designed for key-based access at scale. DocumentDB is a MongoDB-compatible service, priced mostly by instance hours, storage and I/O. If your code already uses a MongoDB driver, DocumentDB is the easier move. If you design for key lookups, DynamoDB suits you.
Is DocumentDB the same as MongoDB?
No. AWS says DocumentDB is compatible with MongoDB 3.6, 4.0, 5.0 and 8.0 drivers and tools, which is not the same as running MongoDB. Compatibility has gaps, so test your exact queries, indexes and drivers against a trial cluster before you migrate anything real.
Which is cheaper, DynamoDB or DocumentDB?
It depends on traffic. DynamoDB on-demand charges by request, so a quiet app costs little. DocumentDB charges for instance hours even when idle, a db.r5.large being $0.277 an hour, or about $202 a month at 730 hours by our arithmetic. A steady heavy load can flip the comparison, so model your own traffic.
Does DynamoDB have a free tier?
AWS's page lists 25 GB of data storage as a monthly benefit and says the 25 write and 25 read capacity units apply to provisioned capacity, not on-demand. Check the live page for current terms, since free tier rules differ for new accounts and Regions.
Can DocumentDB scale to large data?
AWS says storage grows in 10 GiB increments up to a maximum of 4 PiB, with up to 15 read replicas, and elastic clusters are designed for millions of reads and writes per second. Compute scaling typically completes in a few minutes. DynamoDB scales by design with no server sizing.
Do both support transactions?
Yes. DynamoDB lists native server-side ACID transactions with up to 100 actions per transaction. DocumentDB lists ACID transactions across multiple documents, statements, collections and databases for the MongoDB 4.0 API and later. Check each limit against your use case, and test performance under your real load.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- Amazon DynamoDB on-demand pricing, checked 5 Dec 2026
- Amazon DynamoDB features, checked 5 Dec 2026
- Amazon DocumentDB pricing, checked 5 Dec 2026
- Amazon DocumentDB features, checked 5 Dec 2026