The Consistency Model

Eventually Consistent vs. Strongly Consistent Reads

DynamoDB exposes exactly two read modes on the base table (and Local Secondary Indexes):

Eventually consistent (default) Strongly consistent
Cost 0.5 RCU per 4 KB read 1 RCU per 4 KB read (2×)
Which replica answers Any replica in the group — may be a follower that hasn't yet applied the latest log entry Always the current leader — the one replica guaranteed to reflect every acknowledged write
Staleness window Bounded by intra-group replication lag — typically single-digit milliseconds, occasionally more under load or during failover None — the leader by definition has applied every write it has acknowledged
Availability during leader failover Higher — followers keep serving reads even while a new leader is being elected Lower — briefly unavailable (returns an error/retries) during the failover window, since there's no leader to ask

A Worked Cost Example

Concrete numbers make the 2× trade-off tangible: reading a 12 KB item.

Eventually consistent:
  12 KB / 4 KB = 3 (round up) → 3 × 0.5 RCU = 1.5 RCU

Strongly consistent:
  12 KB / 4 KB = 3 (round up) → 3 × 1 RCU  = 3 RCU

Transactional read (TransactGetItems) of the same item:
  3 × 1 RCU × 2 (transaction multiplier) = 6 RCU

At high read volume, this is not a rounding error — a read-heavy service defaulting to strongly consistent reads "just to be safe" everywhere is paying double its RCU bill for freshness guarantees that most access patterns (a public product catalog page, a social media feed) don't actually need. The right default for most access patterns is eventually consistent, with strong consistency reserved deliberately for the specific reads where staleness would be a correctness bug, not just a UX nit — e.g., reading back a value immediately after writing it to enforce a business invariant (an inventory check-then-decrement, a rate-limit counter check).

Mechanically: How This Differs From Cassandra's QUORUM Read

This is one of the sharpest interview questions in this space, and the answer is entirely about how consistency is achieved, not just whether it is:

Cassandra QUORUM read (leaderless):

Coordinator receives read request
   │
   ├──► Query replica 1 ──► returns (value_A, timestamp_A)
   ├──► Query replica 2 ──► returns (value_B, timestamp_B)
   │        (queries floor(N/2)+1 replicas — a quorum, not all)
   ▼
Coordinator compares timestamps, returns the NEWEST value to the client
   │
   └──► If value_A ≠ value_B: trigger asynchronous READ REPAIR
        (write the newest value back to the stale replica —
         does NOT block the client's response)

Consistency here is computed per request, by comparing multiple independent answers and picking the winner by timestamp. It works because of the math: if W (write quorum) + R (read quorum) > N (replication factor), at least one replica in any read quorum must have seen the most recent write. But it requires every read to pay the cost of querying multiple replicas and comparing them, and if a client reads with a smaller quorum than R+W>N guarantees, staleness is possible with no comparison happening to catch it.

DynamoDB strongly consistent read (leader-based):

Request Router asks MemDS: "who is the leader for this partition, right now?"
   │
   ▼
Route directly to the leader
   │
   ▼
Leader returns its local state — which, by construction of the write path
in Section 2, already reflects every write it has ever acknowledged
   │
   ▼
Return to client. No comparison. No repair. Nothing to reconcile.

Consistency here is structural, not computed — there is one designated source of truth, and a strongly consistent read simply always asks it. There's no possibility of two replicas disagreeing about "the answer" because only one replica's answer is ever consulted for a strong read. The trade DynamoDB makes for this simplicity is the leader-election machinery of the Storage Engine and Replication part (Multi-Paxos, failover windows) — Cassandra avoids that entire subsystem by never electing a leader in the first place, at the cost of needing read-repair and careful quorum math on every request.

What a Global Secondary Index Does NOT Guarantee

A Global Secondary Index (GSI) lets you query a table by an attribute other than its primary key. Mechanically, a GSI is entirely separate partition infrastructure — its own set of partitions, its own replication groups, physically distinct from the base table's. When you write to the base table, that write is applied synchronously to the base table's replication group — and then asynchronously propagated to update the corresponding GSI partitions.

This has one unambiguous consequence, stated directly by AWS: strongly consistent reads from a GSI are not supported. All GSI reads are eventually consistent — there is no option to pay 2× RCU for a strong GSI read, because there is no leader relationship between the GSI's partitions and the base table's partitions for a read to consult. This is not a missing feature that might someday be added — it is a structural consequence of the GSI being a physically separate replication topology.

Contrast with a Local Secondary Index (LSI): an LSI shares the same partition (same partition key, alternate sort key) and therefore the same replication group as the base table item. Because an LSI's data lives in the same leader-controlled replication group, LSI reads do support strong consistency — you can pay the 2× RCU cost and get a guaranteed-fresh answer, exactly like the base table.

Base table LSI GSI
Shares base table's replication group? — Yes No — separate partitions entirely
Eventually consistent read available? Yes Yes Yes (only option)
Strongly consistent read available? Yes Yes No — not offered, structurally impossible as designed
Update propagation from base table write N/A (is the source) Synchronous (same group) Asynchronous (cross-partition propagation)

DAX Adds a Fourth Staleness Tier

The What Is DynamoDB part introduced DAX's caching behavior; here's the precise interaction with this part's consistency model. DynamoDB itself offers exactly two staleness bounds: unbounded-but-typically-milliseconds (eventual) and zero (strong). DAX's item cache sits in front of both — a read routed through DAX that hits the cache returns the cached value regardless of which consistency level the underlying request specified, unless the request explicitly asked for strong consistency, in which case DAX bypasses its cache entirely and passes the request straight through to DynamoDB. This means "eventually consistent read via DAX" has a staleness bound set by the cache TTL (default 5 minutes), not by DynamoDB's own intra-partition replication lag (milliseconds) — a two-to-three-orders-of-magnitude difference that catches teams who reason about DAX staleness using DynamoDB's own eventual-consistency numbers.

Transactions: TransactWriteItems

For all-or-nothing atomicity across up to 100 items (4 MB) within a single region, DynamoDB offers TransactWriteItems/TransactGetItems, implemented as a two-phase-commit-style protocol across the relevant partitions' leaders, at 2× the WCU/RCU cost of the equivalent non-transactional operation. This gives ACID guarantees strictly bounded to one region — it composes with the strong-consistency story of the Storage Engine and Replication part and this part within a region, but (as Global Tables covers) does not extend across a Global Table's regions under the default replication mode.

Mechanically, the two-phase protocol works in two rounds against every partition leader involved: a prepare round validates every item's condition expressions (uniqueness constraints, optimistic-lock version checks) and places a transient lock on each item; only if every leader confirms its item passed validation does a commit round instruct all leaders to apply the writes and release the locks. If any single item fails its condition check, the whole transaction is aborted and no leader applies anything — the abort is all-or-nothing, matching the commit. The transient per-item lock during the prepare phase is also why two transactions racing to touch the same item will see one succeed and one receive a TransactionCanceledException for a conflict, rather than both silently proceeding — a real (if narrow and short-lived) form of pessimistic concurrency control layered on top of an otherwise optimistic system.