# DynamoDB

* NoSQL, fully managed, on demand autoscale
* Supports document and key-value store models
* Free Tier
* DynamoDB won't let you write a bad query, which means you HAVE to have an index to do many queries
  * Query will be same speed at 100X scale unlike SQL

## Indexes

Primary Keys - determine which partition its stored in, can also have sort key that determines order its in

Secondary Keys -

## Creation

Create Tables, 3 Options

They will have items that are rows

Amazon gives you UI to see it


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://openai.gitbook.io/code-cheatsheets/deployment/aws/storage/dynamodb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
