All Questions
Cassandra medium

A Read request with `Consistency Level: QUORUM` reaches the Coordinator. It receives an 'old' version of a row from Node A and a 'newer' version (higher timestamp) from Node B. What occurs next?

  1. A The Coordinator returns an error to the client and triggers a node replacement for Node A.
  2. B Read Repair: The Coordinator returns the 'new' version to the client and immediately (or asynchronously) sends a write to Node A to bring it up to date.
  3. C The Coordinator averages the values of the two rows and returns the result.
  4. D The query fails because consistency could not be established without Node C.

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

Get the app

Related questions