AWS Certified Cloud Practitioner / Databases & Analytics

DynamoDB Overview

πŸ—ƒοΈ Amazon DynamoDB

Unlike RDS, DynamoDB is a NoSQL database β€” no related tables, just a flexible model built for:

  • Massive scale

  • High performance

  • And extremely low latency

πŸ’‘ Simple definition

A fully managed, serverless NoSQL database with high availability, automatic scaling, and single-digit millisecond performance β€” even at millions of requests.


🌟 A Flagship AWS Service

Built for apps needing:

  • πŸš€ Massive scalability

  • ⚑ Extremely fast performance

  • 🌍 High availability

  • πŸ“ˆ Automatic scaling

Powers large-scale apps that keep performing well as data and traffic explode.

  • 🎯 Exam tip

    "NoSQL database" β†’ DynamoDB


🌍 Built for High Availability

Every table is automatically replicated across three Availability Zones in the Region β€” no configuration needed.

One AZ goes down, your data's still there.


πŸš€ What Makes It Different

With RDS or ElastiCache, you pick an instance size (db.t3.micro, etc). With DynamoDB:

  • βœ… No provisioning

  • βœ… No instance sizing

  • βœ… No infrastructure management

πŸ’‘ Serverless doesn't mean no servers β€” it means AWS manages them so you never touch them.

Handles millions of requests/second, trillions of items, hundreds of TB β€” scales automatically as demand grows.

Single-digit millisecond latency β€” ideal for e-commerce, gaming, mobile, and high-traffic apps that need instant responses.

🎯 Exam tip: "Serverless," "single-digit ms latency," "massive scalability," "NoSQL" β†’ DynamoDB


πŸ” Security

Integrates directly with IAM β€” control who can access tables, what actions they can take, and authentication/authorization.

πŸ’° Cost Optimisation

  • Automatic scaling based on demand

  • Pay for capacity used

  • Two table classes: Standard (frequent access) and Standard-IA (infrequent access, lower storage cost)


πŸ“Š How Data is Stored

DynamoDB stores items (not rows) with a Primary Key and attributes.

  • Primary Key β€” a Partition Key alone, or Partition Key + Sort Key β€” uniquely identifies each item

  • Attributes β€” the data fields for that item

πŸ”‘ Partition Key

🏷️ Sort Key

πŸ‘€ Name

πŸ“§ Email

🌍 Country

101

Customer

John

john@email.com

Kenya

102

Customer

Sarah

sarah@email.com

Canada

Unlike relational tables, different items can have different attributes β€” much more flexible.


🧠 Why Is DynamoDB So Popular?

Developers choose DynamoDB because it combines several powerful features in a single service:

  • βœ… Fully managed

  • βœ… Serverless

  • βœ… Highly available

  • βœ… Automatically scalable

  • βœ… Extremely fast

These capabilities make DynamoDB an excellent choice for modern cloud-native applications.


⚑ Amazon DynamoDB Accelerator (DAX)

DynamoDB is fast β€” but some apps need even faster access to hot data.

πŸ’‘ DAX is a fully managed, in-memory cache built specifically for DynamoDB β€” sits in front of your tables for high-speed reads.

πŸ—οΈ How It Works

1️⃣ App requests data β†’ 2️⃣ DAX checks memory β†’ 3️⃣ HIT: return instantly β†’ 4️⃣ MISS: fetch from DynamoDB, cache it for next time.

πŸš€ Performance

  • Without DAX: single-digit millisecond latency

  • With DAX: microsecond latency β€” up to 10Γ— faster reads

πŸ”’ Fully Managed

AWS handles provisioning, maintenance, scaling, availability, and security.


πŸ€” DAX vs ElastiCache

⚑ DAX

πŸš€ ElastiCache

Built specifically for DynamoDB

Works with many databases/apps

Fully integrated with DynamoDB

General-purpose caching

Optimized for DynamoDB workloads

Caches data from multiple sources

Boosts DynamoDB read performance

Boosts performance broadly

πŸ’‘ ElastiCache can cache DynamoDB data too, but DAX is purpose-built for it and integrates seamlessly.


🎯 Exam Tips

  • ⚑ DynamoDB = fully managed, serverless NoSQL database

  • 🌍 Auto-replicated across 3 AZs for high availability

  • πŸš€ Scales to millions of requests/sec and trillions of items

  • ⚑ Single-digit millisecond latency

  • πŸ”‘ Data stored as items with a Primary Key + attributes

  • πŸ“ˆ Auto-scaling + IAM integration for security

  • ⚑ DAX = in-memory cache built for DynamoDB, up to 10Γ— faster, microsecond latency

  • πŸ’‘ "Serverless NoSQL database" β†’ DynamoDB. "Caching for DynamoDB" β†’ DAX.