Serverless - DynamoDB Flashcards
What type of database is DynamoDB?
DynamoDB is a fully managed, highly available, NoSQL database that supports transactional operations.
What are key characteristics of DynamoDB?
Cloud-native, distributed architecture
Single-digit millisecond performance
Data replication across multiple AZs
Infinite scalability for millions of requests per second
When should you choose On-Demand Mode over Provisioned Mode for DynamoDB?
Unpredictable workloads with sudden spikes.
Low-usage workloads, e.g., a few transactions per day.
When is DynamoDB a better choice than RDS or Aurora?
When the schema evolves rapidly or the application requires high scalability and low latency.
What is DynamoDB Accelerator (DAX)?
DAX is a fully-managed, in-memory cache for DynamoDB, providing microsecond latency for cached data.
What is DynamoDB Streams?
DynamoDB Streams provides a log of create, update, and delete operations on a table, retained for 24 hours. It integrates well with Lambda for triggers.
When should you use Kinesis Data Streams over DynamoDB Streams?
Use Kinesis Data Streams for:
Up to 1-year retention
Higher consumer limits
Advanced processing (e.g., with Firehose, Analytics, or Glue ETL).