DynamoDB Interview Questions
Check out 30 of the most common DynamoDB interview questions and take an AI-powered practice interview
What is DynamoDB and what problems does it solve?
What's the difference between a partition key and a sort key?
What is the document model in DynamoDB?
What are the data types DynamoDB supports?
How do you create a basic DynamoDB table?
What's the difference between Query and Scan?
What's the difference between eventually-consistent and strongly-consistent reads?
What are RCUs and WCUs?
What's the difference between on-demand and provisioned billing modes?
How do you write and read a single item?
What is DynamoDB vs MongoDB — when would you pick one over the other?
What is TTL in DynamoDB?
What is single-table design and why is it the recommended DynamoDB pattern?
What's the difference between an LSI and a GSI?
How do you avoid hot partitions in DynamoDB?
What are DynamoDB Streams and how do you process them with Lambda?
What is DAX and when should you use it?
How do you implement transactions in DynamoDB?
How do you handle pagination in DynamoDB?
What is the BatchGetItem and BatchWriteItem API?
How does auto-scaling work in provisioned mode?
What is adaptive capacity?
How do you query by attributes that aren't part of the key?
How do you do an atomic counter in DynamoDB?
What is PartiQL in DynamoDB?
How do you design a single-table schema for a complex app — walk through Twitter as an example.
How do Global Tables provide multi-region replication, and what are the trade-offs?
How would you migrate a write-heavy 100 TB MongoDB collection to DynamoDB without downtime?
How do you implement leader election / distributed locks on DynamoDB?
Walk through how you'd design a high-throughput event-tracking system on DynamoDB.
Frequently Asked Questions
Is DynamoDB worth learning in 2026 if I already know MongoDB?
Yes, if you work or want to work on AWS. They overlap on document modelling but the mental model is different — DynamoDB forces you to design access patterns up front, which is uncomfortable coming from MongoDB but is a transferable skill (it's basically applied data-modelling discipline). Many serverless-first Indian startups specifically ask for DynamoDB experience, and it commands a small premium over generic NoSQL on the salary axis.
How much does a DynamoDB-experienced engineer earn in India?
₹8-26 LPA in 2026 for backend engineers with DynamoDB as a meaningful part of their stack. Companies hiring: Amazon (obviously), Razorpay, CRED, Zerodha's high-throughput teams, Postman, Lyft India, and most serverless-first early-stage startups. Specialised areas (Lambda + DynamoDB at scale, single-table design experts) pay at the upper end.
Should I always use single-table design?
Not always. Single-table design pays off when (a) you have multiple related entities that you fetch together in the same access patterns, and (b) you can invest the upfront design time. For very small apps, isolated microservices owning one entity each, or quick prototypes, multi-table is fine and easier to reason about. Many real production systems are pragmatic — a 'mostly single-table' design with a few specialised tables for things that don't fit (analytics rollups, lookup tables).
How does DynamoDB compare to Cassandra or ScyllaDB?
All three are partitioned NoSQL stores with similar access patterns (key-based, secondary indexes, no joins). DynamoDB wins on operations — zero ops, autoscaling, fully managed. Cassandra and ScyllaDB win on flexibility — they run anywhere, no vendor lock-in, and Scylla in particular often outperforms DynamoDB on per-node throughput. Pick DynamoDB when you're on AWS and want to ship fast. Pick Cassandra/Scylla when you need multi-cloud or have a team that wants to own the database operationally.
When should I NOT use DynamoDB?
When you need rich ad-hoc queries (use Postgres or MongoDB), when your access patterns will change unpredictably and you can't refactor easily (use a relational DB), when you need complex aggregations on every request (use OLAP — Redshift, BigQuery, ClickHouse), when items routinely exceed 400 KB (use S3 + DynamoDB as a metadata index), or when you're not on AWS and don't want to be (DynamoDB is AWS-only — there's no self-hosted version beyond DynamoDB Local for dev).
Introduction
DynamoDB is AWS's fully-managed NoSQL database, designed for predictable single-digit-millisecond latency at any scale. It powers Amazon.com itself, and by 2026 has become the default datastore for serverless Indian startups — anywhere you see Lambda + API Gateway, DynamoDB is usually nearby.
Interviews for DynamoDB-heavy roles in India today focus on three things: single-table design (the philosophy that separates a DynamoDB expert from a beginner), partition-key strategy (avoiding hot partitions), and capacity mode tradeoffs (on-demand vs provisioned with auto-scaling). Razorpay, CRED, and many serverless-first startups specifically test single-table modelling on the whiteboard.
This guide covers the 30 most-asked DynamoDB questions in 2026, grouped by difficulty. Each answer includes the underlying concept, common gotchas, and a code example where it adds clarity.