Learn DynamoDB

Learn DynamoDB

Learn DynamoDB the right way — a structured curriculum from the fundamentals through data modeling, indexes, expressions, PartiQL, tooling, and internals.

DynamoDB fundamentals — data types, item collections, and the composite primary key. The base mechanics everything else in the curriculum builds on.

0 of 9 readQuiz
When to Use DynamoDB (and When Not To)
When to use DynamoDB and when not to. The access-pattern, scale and cost signals that favor it over a relational database, and its wrong-fit workloads.
Beginner9 min read
DynamoDB Data Types: Every Type, with Examples
DynamoDB's ten data types — scalars (S, N, B, BOOL, NULL), documents (M, L) and sets (SS, NS, BS), how they look in DynamoDB-JSON, and which can be a key.
Beginner6 min read
DynamoDB JSON & Marshalling
DynamoDB JSON and marshalling — why every value is wrapped in a type tag, how the format differs from plain JSON, and how to convert between the two.
Beginner6 min read
The DynamoDB Item Size Limit (400 KB)
The DynamoDB 400 KB item size limit — what counts toward it, how attribute names and nesting add up, and how to model around unbounded item growth.
Beginner5 min read
DynamoDB Item-Based Actions
DynamoDB item-based actions — GetItem, PutItem, UpdateItem and DeleteItem each address one item by its full primary key, and differ from Query and Scan.
Beginner7 min read
DynamoDB Item Collections
What a DynamoDB item collection is — every item sharing a partition key — why it's the unit of efficient Query reads, and the limits to watch out for.
Beginner8 min read
DynamoDB Composite Primary Key: Partition + Sort Key Explained
A DynamoDB composite primary key is a partition key plus a sort key — it groups related items together and unlocks range queries a simple key can't do.
Beginner7 min read
DynamoDB Strongly vs Eventually Consistent Reads
DynamoDB strongly consistent vs eventually consistent reads — what each guarantees, the 2× RCU cost of ConsistentRead, and why a GSI is eventual-only.
Intermediate7 min read
Knowledge checkTake the quiz
Check what you’ve learned in this section.

DynamoDB data modeling — single-table design, modeling from access patterns, the type attribute, denormalization, and when one table is the wrong call.

0 of 7 readQuiz

Modeling relationships in DynamoDB — one-to-many, many-to-many, the adjacency list pattern, composite sort keys, and reference counts, all without joins.

0 of 6 readQuiz

Querying and sorting DynamoDB — Query vs Scan, pagination, filter expressions, why Scan is slow, parallel scans, and sort-key strategies including zero-padding.

0 of 10 readQuiz
DynamoDB Query vs Scan: Which to Use, and Why (w/ Examples)
Query vs Scan in DynamoDB — Query reads one item collection and bills matched items, Scan reads the whole table before any FilterExpression runs.
Beginner7 min read
DynamoDB Pagination: LastEvaluatedKey Explained (w/ Examples)
How DynamoDB pagination works — loop on LastEvaluatedKey and ExclusiveStartKey, why Limit is not a page size, and how to expose a stateless cursor.
Beginner7 min read
DynamoDB Filtering Strategies
DynamoDB filtering strategies compared — partition key, sort key, sparse indexes, and FilterExpression — and which one actually cuts your read bill.
Intermediate8 min read
Why a DynamoDB Scan Is Slow and Expensive
Why a DynamoDB Scan is slow and expensive, what it actually bills you for, and how to turn a reflexive Scan into a keyed Query that costs a fraction.
Beginner6 min read
DynamoDB Parallel Scans
How DynamoDB parallel scans split a full-table read across workers with Segment and TotalSegments, when they help, and the throughput footgun to avoid.
Advanced7 min read
DynamoDB Sort Key Strategies: 3 Patterns and When to Use Each
DynamoDB sort key strategies for range reads — design a sort key whose byte order matches your read order, so one Query serves many access patterns.
Intermediate8 min read
How to Query DynamoDB in Descending Order
Query DynamoDB in descending order with ScanIndexForward=false — newest-first results, why sorting happens on the sort key, and why reverse reads are free.
Beginner7 min read
Sorting DynamoDB on a Changing Attribute
Sorting DynamoDB on a changing attribute — why a key attribute is immutable, the delete-and-recreate pattern, and moving it to a GSI sort key instead.
Intermediate7 min read
Zero-Padding Sort Keys in DynamoDB
Why "10" sorts before "2" in a DynamoDB string sort key, and how fixed-width zero-padding makes lexicographic byte order match numeric order.
Intermediate5 min read
Knowledge checkTake the quiz
Check what you’ve learned in this section.

What a global secondary index really costs in DynamoDB: measured GSI write amplification, a GSI vs LSI vs filter decision table, and the limits that bind.

0 of 7 readQuiz

DynamoDB expressions — condition, update, key condition, and projection expressions, plus expression attribute names and values and when you must use them.

0 of 6 readQuiz

DynamoDB writes and operations — atomic counters, enforcing uniqueness across attributes, zero-downtime migrations, and diagnosing hot partitions.

0 of 8 readQuiz
DynamoDB Batch Operations
DynamoDB batch operations — BatchGetItem reads 100 items per call, BatchWriteItem writes 25, why a batch is not a transaction, and how to retry leftovers.
Intermediate7 min read
How to Delete Multiple Items in DynamoDB
How to delete multiple items in DynamoDB — BatchWriteItem, TransactWriteItems, PartiQL batches and TTL — plus why there is no DELETE ... WHERE statement.
Beginner7 min read
DynamoDB ReturnValues: Get the Old or New Item
DynamoDB ReturnValues hands back the old or new item from PutItem, UpdateItem or DeleteItem without a second read — the five options and when each helps.
Intermediate5 min read
DynamoDB Atomic Counters: How ADD Works, and When It Doesn't
How DynamoDB atomic counters work with an ADD update expression, why they aren't idempotent, and when to reach for a conditional update instead.
Intermediate5 min read
DynamoDB Uniqueness on Multiple Attributes
How to enforce a unique constraint on multiple DynamoDB attributes — unique email AND username — with marker items and a condition-guarded TransactWriteItems.
Advanced6 min read
DynamoDB Migrations Without Downtime
DynamoDB migrations without downtime — how to add a new entity type and access pattern to a live table using lazy backfill, online GSIs, and dual-writes.
Advanced6 min read
DynamoDB Hot Partitions: How to Find and Fix Them
A DynamoDB hot partition is when one partition key absorbs a disproportionate share of traffic and throttles — how to spot it and design it out.
Intermediate8 min read
Knowledge checkTake the quiz
Check what you’ve learned in this section.

PartiQL and SQL on DynamoDB — what PartiQL is, what it cannot do, and how the DynoTable Workbench runs JOIN, GROUP BY and aggregates within DynamoDB's rules.

0 of 7 readQuiz

DynamoDB tooling — DynamoDB Local, LocalStack, the best GUI clients, viewing and editing data, copying tables, CSV export and MCP servers.

0 of 14 read
How to Run DynamoDB Local with Docker — Complete Guide
Run DynamoDB Local with Docker for offline development and tests — start the container, point the SDK at the local endpoint, and create a table.
Beginner5 min read
How to Connect to DynamoDB Local and LocalStack
How to connect a GUI to DynamoDB Local and LocalStack — endpoint, fake creds, common errors. Browse and query local tables visually with DynoTable.
Intermediate7 min read
The Best DynamoDB GUI Clients in 2026
DynamoDB GUI clients compared hands-on for 2026 — NoSQL Workbench, Dynobase, Dynomate, DbVisualizer, DocKit, dynamodb-admin, DynoTable — with dated, verified pricing.
Beginner14 min read
DynamoDB Books Worth Reading in 2026
The two DynamoDB books worth your money in 2026, what each one costs, and exactly which DynamoDB features each was published too early to cover.
Beginner6 min read
How to View, Browse and Edit DynamoDB Data
How to browse, filter and edit DynamoDB data, and which API operation each action runs — Scan, Query, GetItem, PutItem, UpdateItem, DeleteItem.
Beginner7 min read
Copy a DynamoDB Table to Another Account/Region
Copy a DynamoDB table to another account or region — export the data, then restore with scan plus write, S3 export/import, AWS Backup, or global tables.
Beginner8 min read
How to Export a DynamoDB Table to CSV (4 Ways)
How to export a DynamoDB table to CSV — a filtered one-click export in DynoTable, an AWS CLI scan with jq, the managed S3 export, or a script.
Beginner12 min read
Generate TypeScript Types from DynamoDB
DynamoDB stores no item schema, so DescribeTable cannot give you types. Hand-write an interface, use a schema-first library, or infer from real items.
Intermediate6 min read
How to Query DynamoDB with AI (Natural Language)
How to query DynamoDB in plain language. The API has no natural-language endpoint, so compare LLM-drafted PartiQL, MCP agents and schema-aware tools.
Beginner6 min read
DynamoDB MCP server: Claude Code, Cursor, Codex
Give an AI agent live access to your DynamoDB tables over MCP — the options for Claude Code, Cursor and Codex, and how to avoid handing over your AWS keys.
Intermediate7 min read
DynamoDB MCP for Claude Code
Connect Claude Code to DynamoDB over MCP — the exact claude mcp add command, which scope to register it at, and how to keep your AWS keys out of the agent.
Intermediate8 min read
DynamoDB MCP for Cursor
Connect Cursor to DynamoDB over MCP — the .cursor/mcp.json config, project vs global scope, enabling the server, and how to keep AWS keys out of your repo.
Intermediate7 min read
DynamoDB MCP for Codex
Connect OpenAI Codex to DynamoDB over MCP — the ~/.codex/config.toml entry, the mcp_servers snake_case trap, transport choice, and startup timeouts.
Intermediate6 min read
ExtendDB: Run the DynamoDB API on Your Database
ExtendDB is an open-source AWS adapter that serves the DynamoDB API from a database you run, such as PostgreSQL. Your AWS SDKs work unchanged.
Intermediate7 min read

DynamoDB operations and cost — transactions, Streams, TTL, on-demand vs provisioned capacity, global tables and backup/PITR, taught on one running SaaS.

0 of 11 readQuiz
DynamoDB Cost Model: Why SQL Can Hide the Bill
Why SQL over DynamoDB can hide the bill — how joins, arbitrary WHERE filters and aggregates compile to Scans, and the RCU math behind Query vs Scan.
Intermediate4 min read
DynamoDB Transactions: The Complete Guide (w/ Examples)
DynamoDB transactions with TransactWriteItems — up to 100 all-or-nothing actions, a 4 MB limit, double write capacity, and how conflicts cancel.
Advanced6 min read
DynamoDB Streams: The Complete Guide (w/ Examples)
DynamoDB Streams — the 24-hour change-data-capture log, the four StreamViewType options, per-item ordered records, and triggering Lambda on item changes.
Advanced6 min read
DynamoDB TTL: The Complete Guide to Expiring Items
DynamoDB TTL auto-deletes items once a Unix-epoch timestamp attribute passes, typically within a few days, and those deletes cost no write capacity.
Intermediate4 min read
DynamoDB On-Demand vs Provisioned Capacity
DynamoDB On-Demand vs Provisioned capacity — pay-per-request against reserved throughput, when each is cheaper, and how traffic shape picks the mode.
Intermediate6 min read
How to Set Up DynamoDB Auto Scaling
Set up DynamoDB auto scaling on provisioned capacity — console and CLI steps, picking target utilization and min/max, and the limits that still throttle.
Intermediate8 min read
DynamoDB Throttling and How to Fix It
Why DynamoDB throttles — the four documented causes, per-partition limits of 3,000 read and 1,000 write units per second, and the fix for each.
Intermediate8 min read
DynamoDB Table Size and Item Count
Get a DynamoDB table size and item count from the free DescribeTable estimate, which lags up to six hours, or an exact count with Scan Select COUNT.
Beginner5 min read
DynamoDB Global Tables: Multi-Region Replication Explained
DynamoDB Global Tables — multi-region active-active replication, last-writer-wins conflicts, the MREC and MRSC consistency modes, and the 99.999% SLA.
Advanced6 min read
DynamoDB Backup and Point-in-Time Recovery: The Complete Guide
DynamoDB backup and point-in-time recovery — on-demand snapshots vs continuous PITR, the 1-to-35-day window, and the settings a restore doesn't bring back.
Intermediate7 min read
Knowledge checkTake the quiz
Check what you’ve learned in this section.

DynamoDB internals — how partition keys, adaptive capacity, GSI storage, physical partitions and request routing work, tracing back to the Dynamo paper.

0 of 8 readQuiz
How DynamoDB Partition Keys Work
How DynamoDB partition keys work — the hash that maps a key to a physical partition, why your key choice decides throughput, and how to dodge hot partitions.
Intermediate7 min read
DynamoDB Adaptive Capacity: What It Does and What It Cannot
DynamoDB adaptive capacity and burst capacity — how they absorb spikes and boost a hot partition automatically, and the partition ceiling neither can beat.
Advanced6 min read
How a DynamoDB GSI Is Stored Internally
How a DynamoDB GSI is stored — its own partition space, asynchronous replication from the base table, projected attributes only, and isolated capacity.
Advanced8 min read
DynamoDB physical partitions
How DynamoDB physical partitions work — the 10 GB, 3000 RCU and 1000 WCU ceilings, how partitions split, and why a hot key throttles with capacity to spare.
Advanced7 min read
How DynamoDB storage internals work
How DynamoDB storage internals work — partition hashing, the per-partition B-tree for sort-key ranges, and quorum replication across three AZs explained.
Advanced7 min read
How DynamoDB Request Routing Works
How DynamoDB request routing works — the request router hashes your partition key to find the right storage node, and why that fixes per-key latency.
Advanced7 min read
From the Dynamo Paper to DynamoDB
From the 2007 Amazon Dynamo paper to DynamoDB — what the original consistent-hashing, quorum design introduced, and what AWS kept versus quietly replaced.
Advanced6 min read
Knowledge checkTake the quiz
Check what you’ve learned in this section.

More DynamoDB resources

Ready to put this into practice?

Browse, query, and model your own DynamoDB tables — DynoTable’s SQL Workbench and AI agent run on your AWS. Free 30-day trial, no credit card — then the Free plan with no time limit.