Fundamentals
You model DynamoDB like a spreadsheet with columns, then discover there is no
schema beyond the key, no ALTER TABLE, and the primary key is the address on disk.
Every access pattern you sketch later either fits that address or fights it.
This section covers the typed-value model, how items group into collections under one partition key, and why consistency choices show up on every read API.
Attributes are optional per item, types matter at the API boundary, and a composite key sets the physical sort order of your data.
What this section teaches you to do
- Read any DynamoDB item and name each attribute's type without guessing from JSON.
- Explain why a
Queryreturns one item collection and what partition key + sort key control on disk. - Size an item before you denormalize and know when a 400 KB hard limit will reject the write.
- Pick strong vs eventual consistency for a read and predict what stale data costs in your UI.
Reading order
Work through the guides in this order. The composite primary key (step 7) comes before item collections (step 8), which group items under its partition key.
- When to use DynamoDB: the fit/no-fit decision before you commit storage and migration cost to a key-value design.
- Data types:
S,N,B, sets, lists, and maps; the type tags every API call must respect. - JSON marshalling: how plain JSON becomes typed DynamoDB attributes and where silent coercion bites.
- Item size limit: the 400 KB cap, what counts toward it, and patterns that blow past it when you pack children inline.
- Limits: the item, key, batch, transaction and index limits, with the live service's error for each probed one, and the quotas you can raise.
- Item-based actions: Get, Put, Update
and Delete by full primary key; why
PutItemreplaces the whole item andUpdateItemdoesn't. - Composite primary key: why the partition key + sort key pair must be unique, and how the sort key turns it into range reads.
- Item collections: all items sharing a
partition key; the unit a single
Querycan walk in sort order. - Consistency: strong vs eventual on the base table; what you can and cannot ask for on a GSI.
A composite key on VEH#V-7741 with sort keys META and TS#… lets one Query
return a vehicle's profile and its readings in time order.
Misunderstand item collections and you either Scan the table or fetch each row with
GetItem. Both scale poorly, and both show up on the bill.
Hands-on in DynoTable
Open a live table in DynoTable and inspect keys in the grid. The table's Overview shows the primary key and every secondary index, so you can see how items group before you write a query.
Paste a sample item into the free item size calculator to measure it against the 400 KB limit. Embedded children grow every write: past 1 KB, each extra KB costs another WCU, while reads round at 4 KB.
The visual filter builder adds hash and range key conditions with type-aware
operators, so you practice Query against a real collection instead of hand-writing
JSON. Free read-only access covers queries, PartiQL SELECT and exports.
Writes need a trial or a paid license. Download DynoTable and run these primitives against your own tables as you read.