What is DynamoDB? It’s the serverless NoSQL database on Amazon Web Services.
You create a table, write items into it by key, and read them back in single-digit milliseconds, without picking a server, an instance size or a version to patch.
Picture a coat check at a huge concert hall. You hand over a ticket and get your coat back in seconds, whether ten people or ten thousand are queuing. DynamoDB works the same way: the ticket is the key.
Need joins and ad-hoc SQL instead? That’s Amazon RDS territory.
Last checked against the AWS docs and pricing pages on November 21, 2026.
| Amazon DynamoDB at a glance | The short version |
|---|---|
| Type | Key-value and document NoSQL database, fully managed |
| Launched | 2012 |
| Speed | Single-digit millisecond reads and writes by key |
| Billing | On-demand (per request) or provisioned (per hour of capacity) |
| Largest item | 400 KB |
| Free tier | 25 GB storage plus 25 read and 25 write capacity units a month |
| Best for | Sessions, carts, profiles, game state, IoT events, serverless back ends |
This post contains affiliate links. As an Amazon Associate, Stepstocloud.com earns from qualifying purchases.
Studying for an AWS exam? DynamoDB questions show up all over the Solutions Architect Associate test, and the Sybex AWS Certified Solutions Architect Study Guide covers it alongside the rest of the exam.

How does DynamoDB store data?
Three words cover most of it: tables, items and attributes. A table holds items. An item is one record, like one order or one user. Attributes are the fields inside that item.
Unlike a SQL table, items in the same table don’t need the same fields. One order can carry a gift message and another can skip it. The only thing every item must have is the primary key.
What are the partition key and sort key?
The partition key decides where an item physically lives. DynamoDB hashes it and drops the item onto one of many storage partitions behind the scenes. A good partition key, like a customer ID, spreads traffic evenly.
The optional sort key orders items that share a partition key. Pair customerId with orderDate and you can ask for “every order from customer C-1001 in November” in one fast call.
Why does this matter so much? Each partition has its own throughput ceiling, covered in the limits section below. Pile every request onto one key and you hit it while the rest of the table sits idle.

What are secondary indexes?
Sometimes you need to look items up by something other than the key, say every order with status “shipped”. A global secondary index (GSI) is a second copy of the data keyed the way you need it.
DynamoDB keeps it in sync for you.
A local secondary index keeps the same partition key but swaps in a different sort key. It has to be created along with the table, which catches a lot of people out.
What does “serverless” mean for DynamoDB?
There is no instance to choose, no storage volume to grow and no maintenance window to book. AWS spreads your data across partitions, copies it to several Availability Zones and adds partitions as the table grows.
It also scales down. With on-demand billing, a table with no traffic costs only its storage, which is why it pairs so well with AWS Lambda functions. DynamoDB Streams can even trigger a Lambda function every time an item changes.
What is DynamoDB used for?
It shines wherever you know the key you’ll read by and the traffic is large or spiky. Common DynamoDB use cases:
- Shopping carts and checkout state for online stores
- Login sessions and user profiles, with TTL deleting old sessions for free
- Game state, player inventories and leaderboards
- IoT device readings and event logs written thousands of times a second
- Metadata for files stored in Amazon S3, such as owner, tags and upload time
- Back ends for serverless APIs built on API Gateway and Lambda
Amazon is its own biggest customer. In the DynamoDB paper presented at USENIX ATC 2022, AWS engineers report that Amazon’s systems peaked at 89.2 million requests per second during Prime Day 2021.
If reads are the bottleneck, DynamoDB Accelerator (DAX) puts an in-memory cache in front of the table and drops read times to microseconds.
When is DynamoDB the wrong choice?
This is the part most explainers skip. DynamoDB trades flexible querying for speed at scale, so it fits badly when:
- You don’t know your access patterns yet and need to ask new questions of the data every week.
- Reports need joins across many entities, like finance or analytics dashboards.
- Single records are big. AWS caps every DynamoDB item at 400 KB, so images and PDFs belong in S3 with a pointer in the table.
- You need a full-text search box. Pair it with OpenSearch instead of forcing scans.
A Scan reads the whole table and bills you for every item it touches. If your design leans on scans, that’s the sign you wanted a relational database.
How much does DynamoDB cost?
You pay for reads, writes and storage, plus any extras you switch on (backups, global tables, streams). There are two ways to pay for reads and writes.
On-demand bills per request and scales instantly. AWS now recommends it for most workloads. Provisioned bills per hour for a set number of read and write capacity units, with auto scaling as an option. It’s cheaper for steady, predictable traffic.

AWS publishes these DynamoDB on-demand rates for the US East Regions:
| What you pay for | Standard table class | Standard-IA table class |
|---|---|---|
| Writes (1 WRU = one write up to 1 KB) | $0.625 per million | $0.78 per million |
| Reads (1 RRU = one strongly consistent read up to 4 KB) | $0.125 per million | $0.155 per million |
| Storage | $0.25 per GB-month | $0.10 per GB-month |

A worked monthly bill
Take a small app in us-east-1 on on-demand mode: 5 million writes of items under 1 KB, 20 million strongly consistent reads of items under 4 KB, and 10 GB stored.
- Writes: 5 x $0.625 = $3.13
- Reads: 20 x $0.125 = $2.50
- Storage: 10 GB x $0.25 = $2.50
That’s about $8.13 a month at list price. The free tier’s 25 GB of storage covers the 10 GB here, which brings it to roughly $5.63. Switch the reads to eventually consistent and the read line halves again.
Two cost traps to watch: items over 1 KB cost one write unit per started kilobyte, and every global secondary index bills its own writes.
Prices vary by Region, so check London or Canada Central on the same page if you deploy there.
How do you use DynamoDB?
The quickest way to get a feel for it is the AWS CLI.
If it isn’t on your machine yet, follow our guide to installing the AWS CLI on Mac and Windows, then sign in with an IAM user or SSO profile, not the root account.
Create an on-demand table keyed by customer and order date:
aws dynamodb create-table \
--table-name Orders \
--attribute-definitions AttributeName=customerId,AttributeType=S AttributeName=orderDate,AttributeType=S \
--key-schema AttributeName=customerId,KeyType=HASH AttributeName=orderDate,KeyType=RANGE \
--billing-mode PAY_PER_REQUEST \
--region us-east-1HASH is the partition key and RANGE is the sort key. Wait a few seconds for the table status to read ACTIVE, then write an item:
aws dynamodb put-item \
--table-name Orders \
--item '{"customerId":{"S":"C-1001"},"orderDate":{"S":"2026-11-21"},"total":{"N":"42.50"},"status":{"S":"shipped"}}'Now pull back every order for that customer with a query, which reads only one partition:
aws dynamodb query \
--table-name Orders \
--key-condition-expression "customerId = :c" \
--expression-attribute-values '{":c":{"S":"C-1001"}}'On Windows PowerShell, the single-quoted JSON often breaks. Save it to a file and pass --item file://item.json instead. When you’re done, remove the test table:
aws dynamodb delete-table --table-name OrdersPrefer a GUI? In the console, go to DynamoDB > Tables > Create table, enter the same two keys and pick “On-demand” under table settings. “Explore items” then lets you add and query items by hand.
What limits should you know about?
The table below pulls from the DynamoDB service quotas AWS publishes. The ones that shape your design are the item size and the index counts.
One more ceiling lives in the AWS guide on partition key design: each partition delivers up to 3,000 read units and 1,000 write units per second. A “hot” key can slow down while the table total looks fine.
| Limit | Default | Can you raise it? |
|---|---|---|
| Item size | 400 KB | No |
| Tables per Region | 2,500 | Yes, ask AWS |
| Global secondary indexes per table | 20 | Yes, via AWS Support |
| Local secondary indexes per table | 5 | No |
| Partition key value length | 1 to 2,048 bytes | No |
| BatchGetItem | 100 items or 16 MB | No |
| Point-in-time recovery window | 1 to 35 days | You choose |

DynamoDB vs RDS vs MongoDB: which fits?
This question comes up in nearly every design review. The short rule: pick DynamoDB when you know your access patterns and need scale with no servers, and RDS when the data is relational and the questions keep changing.

| DynamoDB | Amazon RDS | MongoDB (Atlas) | |
|---|---|---|---|
| Data model | Key-value and document | Relational tables | Document |
| Query language | API calls, plus PartiQL | Full SQL | MongoDB query language |
| Joins | No | Yes | Limited ($lookup) |
| Servers to size | None | Instance class and storage | Cluster tier |
| Scales to zero cost | Yes (on-demand, storage only) | No | Only on serverless tiers |
| Runs outside AWS | No | Engines do (MySQL, PostgreSQL) | Yes, any cloud |
For a cache in front of any of these, Amazon ElastiCache is the usual choice.
Note that DynamoDB tables live in one Region unless you add global tables, which helps when UK GDPR or Canada’s PIPEDA push you to keep data in eu-west-2 or ca-central-1.
Is DynamoDB on the AWS certification exams?
Yes, heavily. Expect scenario questions on choosing partition keys, on-demand vs provisioned, GSIs vs LSIs, DAX, TTL and global tables, especially on the Developer and Solutions Architect Associate exams.
If you learn best from a book with practice questions, the Sybex Solutions Architect study guide walks through these database trade-offs. Look for the edition that matches the exam code on the AWS certification page before you buy.

AWS Solutions Architect study guide (Sybex)
Covers DynamoDB alongside RDS, caching and the rest of the Associate exam, with practice questions and an online test bank.
Check price on AmazonFrequently asked questions
Is DynamoDB SQL or NoSQL?
DynamoDB is a NoSQL database. It stores key-value and document data and you read it through API calls such as GetItem and Query. It also accepts PartiQL, a SQL-compatible syntax, but that doesn’t add joins or turn it into a relational database.
What is the difference between DynamoDB and RDS?
Amazon RDS runs relational engines like MySQL and PostgreSQL on instances you size, with full SQL and joins. DynamoDB has no instances, scales automatically and reads by key in milliseconds, but you must design tables around your access patterns. Pick RDS for reporting and changing queries, DynamoDB for known patterns at scale.
Is DynamoDB better than MongoDB?
Neither wins outright. DynamoDB is fully serverless, deeply tied into AWS and bills per request. MongoDB offers a richer query language and runs on any cloud or on premises. If you’re all-in on AWS and know your access patterns, DynamoDB is less to run; if you need flexible queries or portability, MongoDB fits better.
Is DynamoDB free to use?
Partly. The DynamoDB free tier gives each payer account 25 GB of storage plus 25 read and 25 write capacity units a month per Region, which AWS says is enough for about 200 million requests a month on provisioned mode. Usage beyond that is billed at normal rates.
Is DynamoDB hard to learn?
The basics take an afternoon: create a table, put an item, query by key. The hard part is data modeling, because you design keys and indexes around the questions your app will ask, which feels backwards if you come from SQL. Start with one table and one access pattern, then add indexes.
What is the maximum item size in DynamoDB?
An item can be up to 400 KB, including attribute names and values. For anything larger, such as images, documents or long logs, store the file in Amazon S3 and keep the S3 object key plus a few searchable attributes in the DynamoDB item.
Conclusion
DynamoDB is AWS’s answer to “I need a database that never needs a server and never slows down.” It pays off when you design the keys around how the app reads data.
- It’s a serverless key-value and document database with single-digit millisecond reads by key.
- The partition key is the most important design choice; spread traffic across many values.
- On-demand costs $0.625 per million writes and $0.125 per million reads in US East; idle tables cost only storage.
- Items max out at 400 KB, and scans are slow and costly, so store files in S3.
- Choose RDS instead when you need joins, reporting or questions you can’t predict yet.
Recommended reading
- What is AWS Step Functions?
- What is Amazon EventBridge?
- What is Amazon SQS?
- How much does AWS cost?
- AWS Regions and Availability Zones explained

I am an Amazon Web Services Professional, having more than 11 years of experience in AWS and other technologies. Extensively working in various AWS tools like S3, Lambda, API, Kinesis, Load Balancers, EKS, ECS, and many more. Working as a Solution Architect and Technology Lead for Architecting and implementing the same for different clients. He provides expert solutions around the world and especially in countries like the United States, Canada, United Kingdom, Australia, New Zealand, etc. Check out the complete profile on About us.
3 thoughts on “What Is DynamoDB? How Amazon’s Serverless NoSQL Database Works”