Quizzes · Storage · Level 0
DynamoDB
A fully managed NoSQL database you use through AWS API calls.
Think of it as: A giant labelled locker wall where you fetch lockers by their exact key.
What to know for Level 0
- Every read and write is a signed HTTPS API call (
GetItem, PutItem, Query) to a public endpoint, approved by IAM. No connections, no passwords, no security groups. - Items are found by their key, so you design tables around how you'll read them. There are no joins. It's ideal for lookups by id at any scale.
- No servers to size or patch: you manage tables, keys and who may access them.
- In on-demand mode you pay per read and write request, plus the data you store. With no traffic there are no request charges.
What to know for Level 1
- On-demand capacity: pay per request, no planning, good for new or spiky traffic. Provisioned capacity: set reads and writes per second in advance, cheaper when traffic is steady.
What to know for Level 2
- On-demand capacity charges per request and handles any traffic with no planning: best for new or spiky tables. Provisioned capacity (with auto scaling) is cheaper for steady, predictable traffic.
- A global secondary index (GSI) lets you query by a different key, and can be added at any time. A local secondary index (LSI) keeps the same partition key with a different sort key, and must be created with the table.
- DynamoDB Streams records every item change for 24 hours; a Lambda function can react to each one, for example to update a search index.
- Time to Live deletes items after a timestamp you set, at no cost: ideal for sessions and temporary data.
- Reads are eventually consistent by default (cheaper, may be a moment stale); you can ask for strongly consistent reads when you need the latest write.
What to know for Level 3
- Point-in-time recovery (PITR) lets you restore a table to any second in the last 35 days. A restore always creates a new table; on-demand backups are kept until you delete them.
- Global tables keep a replica of a table in each Region you choose. Every replica takes reads and writes, changes reach the others usually within a second, and if two Regions change the same item at once, the last write wins.
More detail
There’s no server and no connection to open. Every read and write (GetItem, PutItem, Query…) is an HTTPS call to a public AWS endpoint, and IAM approves each one. Items are found by their key, so you design tables around how you’ll read them.
Quiz yourself on DynamoDB →Study flash cards
← All quizzes