All Questions
Dynamodb medium

In a Global Tables configuration (Multi-Region), how does DynamoDB resolve a scenario where the same attribute is updated in both US-East and EU-West within the same millisecond?

  1. A Global Locking: The first region to start the write locks the item globally until it is replicated to all regions.
  2. B Last-Writer-Wins (LWW): It uses the timestamp of the write request to decide the winner; if timestamps are equal, a deterministic tie-breaker (like region name) is used.
  3. C Hybrid Merge: It attempts to combine both JSON documents into a single version.
  4. D Manual Resolution: Both versions are saved, and the application must resolve them manually (similar to Git).

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

Get the app

Related questions