All Questions
Cassandra hard

During a `nodetool repair`, Cassandra generates Merkle Trees to compare data ranges between replicas. What is the technical advantage of this 'Hash Tree' approach in a multi-terabyte cluster?

  1. A It eliminates the need for any network transfer by using quantum entanglement to sync data.
  2. B Efficiency: By comparing the root hashes of sub-ranges (leaf nodes), Cassandra can identify divergent data blocks without streaming the entire dataset, only transferring the specific 'diff' segments.
  3. C It sorts the SSTables alphabetically to improve the speed of full-table scans.
  4. D It converts all data into a Merkle-compatible binary format that is 100x more compressed than standard Zstd.

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

Get the app

Related questions