Servisphere
Amazon DynamoDB icon (AWS Architecture Icons)

Amazon DynamoDB

Ultra-fast NoSQL key-value

A serverless NoSQL database with key-based queries at millisecond latency at any scale; pay per request or for capacity.

  • Cost$ Low
  • Difficulty●●●●●
  • Costs money when idle?A little
  • Serverless
  • In examsCLF · SAA · DVA · SOA

Scope: Regional

Open DynamoDB on the map →
Think of it asLike a numbered filing cabinet: know the number and you pull it out instantly, but you can't freely rummage around.

Where does DynamoDB fit?

See the full map →

A real example, step by step

  1. A mobile game needs to store scores and profiles for a few million players, read and written all day long.
  2. You create a DynamoDB table with playerId as the key and choose on-demand mode, so you don't have to guess the traffic.
  3. Every time a player saves a score, the game writes an item; reading it back by playerId takes a few milliseconds no matter how many players there are.
  4. Per-level leaderboards use a global secondary index to query in a different way.
  5. DynamoDB Streams invokes Lambda on every new score to send “you've just been overtaken” notifications.

▶ Watch the “Serverless web” scenario on the map

When to use it

✓ Use it when

Access patterns known in advance, need massive scale: shopping carts, sessions, IoT, games.

✗ Avoid it when

You need JOINs, ad-hoc queries, complex reporting → RDS/Aurora.

Common uses

  • Shopping carts, sessions, user profiles
  • Game leaderboards, IoT, ad-tech needing millisecond latency
  • Serverless backends with Lambda
  • Storing state, deduplication locks (idempotency)

DynamoDB, RDS or ElastiCache?

DynamoDBRDSElastiCache
Data modelKey-value / documentRelational tables (SQL)In-memory cache
ScalingScales almost without limitBy instance size + replicasBy nodes or serverless
QueriesBy key and indexesAny SQL, with JOINsBy key
DurabilityDurable, stored across AZsDurable, with backupsFor speed; not a replacement for a database

What does it cost?

Example10 million reads + 2 million writes + 5 GB/month ≈ $1.25 + $1.25 + $1.25 ≈ $4/month (on-demand).
  • Pricing model: On-demand: per read/write request (~$0.125/1 million read units, ~$0.625/1 million write units after the November 2024 price cut). Or Provisioned per RCU/WCU-hour. Storage ~$0.25/GB-month.
  • Free tier: Always Free: 25 GB of storage + 25 WCU and 25 RCU (provisioned mode).
⚠️ Cost traps

Scanning the whole table instead of using Query; each GSI adds write costs; large items consume many units; enabling Streams, PITR, Global Tables when not needed.

Reference prices for us-east-1, updated October 14, 2026; they may have changed. Always check the AWS pricing page. Official AWS pricing page ↗

💡 Exam tip

“Key-value”, “millisecond latency at any scale”, “serverless” → DynamoDB. Microsecond reads → DAX. Automatically delete expired data → TTL. Writes from several regions → global tables.

Try real exam questions

AWS certification exams are in English, so the questions are shown as they appear on the exam.

1An application running in a private subnet accesses an Amazon DynamoDB table. The data cannot leave the AWS network to meet security requirements. How should this requirement be met?

  1. AConfigure a network ACL on DynamoDB to limit traffic to the private subnet.
  2. BEnable DynamoDB encryption at rest using an AWS Key Management Service (AWS KMS) key.
  3. CAdd a NAT gateway and configure the route table on the private subnet.
  4. DCreate a gateway VPC endpoint for DynamoDB and configure the endpoint policy.
Show answer

Correct answer: D

A gateway VPC endpoint for DynamoDB keeps traffic on the AWS network, never over the internet. A NAT gateway still goes out to the internet; encryption at rest has nothing to do with the network path.

2A recently created startup built a three-tier web application. The front end has static content. The application layer is based on microservices. User data is stored as JSON documents that need to be accessed with low latency. The company expects regular traffic to be low during the first year, with peaks in traffic when it publicizes new features every month. The startup team needs to minimize operational overhead costs. What should a solutions architect recommend to accomplish this?

  1. AUse Amazon S3 static website hosting to store and serve the front end. Use AWS Elastic Beanstalk for the application layer. Use Amazon DynamoDB to store user data.
  2. BUse Amazon S3 static website hosting to store and serve the front end. Use Amazon Elastic Kubernetes Service (Amazon EKS) for the application layer. Use Amazon DynamoDB to store user data.
  3. CUse Amazon S3 static website hosting to store and serve the front end. Use Amazon API Gateway and AWS Lambda functions for the application layer. Use Amazon DynamoDB to store user data.
  4. DUse Amazon S3 static website hosting to store and serve the front end. Use Amazon API Gateway and AWS Lambda functions for the application layer. Use Amazon RDS with read replicas to store user data.
Show answer

Correct answer: C

S3 for the static front end, API Gateway + Lambda for processing, DynamoDB for JSON data: all serverless, pay per use and scaling automatically for the monthly peaks. EKS or Elastic Beanstalk still leave servers to operate.

Practice 700+ more questions on Servisphere →

Frequently asked questions

What is the difference between on-demand and provisioned capacity?

On-demand charges per read and write with no need to predict traffic, which suits unpredictable workloads. Provisioned reserves a number of reads and writes per second (optionally with auto scaling) and is cheaper when traffic is steady.

How should I design keys in DynamoDB?

Choose a partition key with many distinct, evenly spread values so traffic doesn't pile onto one partition. Use sort keys and secondary indexes (GSI, LSI) for different query patterns. List the queries you need before designing the table.

What do AWS exams ask about DynamoDB?

Choosing on-demand or provisioned, GSIs and LSIs, DAX for microsecond reads, DynamoDB Streams to trigger Lambda, TTL to expire old items, global tables for multiple regions, and strongly consistent versus eventually consistent reads.

Related services

Open DynamoDB on the map →