Interview Q&A · questions with model answers

DynamoDB Interview Questions

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked What is DynamoDB, and what workloads is it a good fit for?

    DynamoDB is AWS's fully managed, serverless key-value and document database. It delivers consistent single-digit-millisecond latency at almost any scale, with no servers, patching or capacity…

  2. Most asked What is a hot partition, and how do you avoid one?

    A hot partition receives far more traffic than others, usually because many requests share one partition key value (a celebrity user, today's date as key, a global counter). It throttles even when…

  3. Most asked What are DynamoDB Streams, and how are they used?

    DynamoDB Streams is an ordered, time-ordered log of item-level changes (new image, old image, or both) retained for 24 hours. Lambda functions or other consumers read it to react to changes: update…

  4. Most asked What is single-table design, and what are its pros and cons?

    Single-table design stores several entity types in one table with generic key attributes (PK, SK, GSI1PK, ...) so related items live in the same item collection and can be fetched together in one…

  5. Most asked What read consistency options does DynamoDB offer?

    Eventually consistent reads (the default) may not reflect a write from the last moment but cost half as much; strongly consistent reads (ConsistentRead: true) return the latest committed write in…

  6. Most asked What are global tables, and what consistency do they provide?

    Global tables replicate a table across AWS Regions with every replica accepting reads and writes (multi-active). By default replication is asynchronous, typically within a second or so, and…

  7. What is a sparse index, and why is it useful?

    A GSI only contains items that have its key attributes. If only some items have the attribute (for example OPEN_SINCE set only on open orders), the index contains just those items, so querying it is…

  8. What is the DynamoDB item size limit, and how do you store large data?

    An item can be at most 400 KB, including attribute names. Store large payloads (documents, images, long histories) in S3 and keep a pointer plus metadata in DynamoDB, or split them into several items.

  9. What delivery guarantees do DynamoDB Streams give a Lambda consumer?

    Each change appears in the stream exactly once and in order per item, but Lambda processes batches at least once: a failed or timed-out batch is retried, so records can be processed more than once.…

  10. What is write sharding, and how do you read sharded data back?

    Write sharding spreads writes for a hot logical key over several partition keys by adding a suffix (DATE#2026-10-17.3). Random suffixes give the best distribution but reads must query every shard…

  11. What is an overloaded GSI?

    A GSI with generic key attribute names (GSI1PK, GSI1SK) that different entity types populate with different meanings, so one index serves several access patterns: orders by status, users by email,…

  12. What is PartiQL support in DynamoDB, and does it make DynamoDB a SQL database?

    DynamoDB supports PartiQL, a SQL-compatible syntax for SELECT, INSERT, UPDATE and DELETE on items. It does not add joins or change the performance model: a SELECT without a key condition becomes a…

Was this page helpful?

Report a mistake