Last Updated: November 21, 2025
Amazon DynamoDB
Managed NoSQL database service
Core Concepts
| Item | Description |
|---|---|
Table
|
Collection of items |
Item
|
Single record (row) |
Attribute
|
Field in an item |
Partition Key
|
Required primary key component |
Sort Key
|
Optional primary key component |
GSI
|
Global Secondary Index |
LSI
|
Local Secondary Index |
Common Operations
| Item | Description |
|---|---|
PutItem
|
Create or replace item |
GetItem
|
Retrieve single item |
Query
|
Search by partition key |
Scan
|
Read all items (expensive) |
UpdateItem
|
Modify existing item |
DeleteItem
|
Remove item |
Best Practices
- Use composite keys for flexible querying
- Leverage GSIs for additional access patterns
- Use batch operations to reduce costs
- Enable point-in-time recovery for production
💡 Pro Tips
Quick Reference
Use single-table design for related entities