Skip to main content

06. Amazon DynamoDB

Amazon DynamoDB is a fully managed, serverless NoSQL database service that provides fast and predictable performance with seamless scalability. It is designed for applications that require single-digit millisecond latency at any scale.


⚙️ Features

  • Fully managed and serverless no servers to manage
  • NoSQL database supporting key-value and document models
  • Automatically scales with demand
  • High availability with replication across 3 Availability Zones (AZs)
  • Handles millions of requests per second, trillions of rows, and hundreds of terabytes of data
  • Fast and consistent performance with single-digit millisecond latency
  • Integrated with AWS IAM for security, authorization, and administration
  • Cost-effective with on-demand, provisioned, and auto-scaling capacity modes
  • Supports Standard and Infrequent Access (IA) table classes for cost optimization
ComponentDescription
TableContainer for items (like a collection or table)
ItemA single record in a table (similar to a row)
AttributeA field within an item (similar to a column)
Primary KeyUniquely identifies each item. Can be:
• Partition key (single key)
• Partition + Sort key (composite key)
Data ModelFlexible – you can add attributes without schema changes

⚙️ Performance & Scaling

  • Serverless – No need to manage infrastructure.
  • Automatic Scaling – Adjusts read/write capacity based on traffic.
  • High Availability – Data replicated across 3 AZs in a region.
  • Durability – Designed for 99.999% availability.

⚡ DynamoDB Accelerator (DAX)

DAX (DynamoDB Accelerator) is a fully managed in-memory cache for DynamoDB.

FeatureDescription
PurposeImprove read performance by caching frequently accessed data
PerformanceUp to 10x faster – from milliseconds to microseconds
IntegrationFully integrated with DynamoDB (not general-purpose like ElastiCache)
Use CaseIdeal for low-latency, high-read workloads

📌 If the cache is missed, DAX automatically retrieves data from DynamoDB.


🌍 DynamoDB Global Tables

Global Tables enable multi-region, multi-master replication of DynamoDB data.

FeatureDescription
PurposeProvide low-latency data access across regions
ReplicationTwo-way replication between up to 10 AWS Regions
AccessRead/Write in any region (Active-Active)
BenefitGlobal high availability and disaster recovery

Example:

  • Table in us-east-1 (N. Virginia)
  • Global replica in eu-west-3 (Paris)
  • Both regions can read/write data with automatic synchronization.

🧠 Exam Tips

KeywordMeaning / Association
Serverless DatabaseDynamoDB
Low LatencySingle-digit millisecond latency
Caching for DynamoDBDAX
Global Multi-Region ReplicationGlobal Tables
NoSQL / Key-Value Data ModelDynamoDB