All Questions
Dynamodb hard

A system writes to DynamoDB through a DAX cluster. If an application immediately reads the same item directly from the DynamoDB API (not through DAX), what is the technical consistency risk?

  1. A The item will be missing because DAX writes are asynchronous.
  2. B Reading stale data: While DAX is a write-through cache (it updates the DB synchronously), the DB's internal replication to the 3-node storage quorum is asynchronous. A direct read without `ConsistentRead=true` might hit a replica that hasn't received the write yet.
  3. C The write will fail because DAX locks the backend table during flush.
  4. D Direct DB reads are prohibited when a DAX cluster is attached to a VPC.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions