All Questions
Zookeeper medium

During the recovery of a ZooKeeper node, how does the system interact with Transaction Logs and Snapshots to rebuild its in-memory state?

  1. A It ignores the log and only loads the latest Snapshot, as snapshots are guaranteed to be fully atomic and consistent.
  2. B It loads the most recent 'Fuzzy Snapshot' and then replays all Transaction Log entries recorded *after* that snapshot point to reach consistency.
  3. C It performs a global checksum validation against the leader node and discards all local disk-persisted state.
  4. D It loads the entire transaction log into a secondary buffer and performs a reverse-diff comparison against the OS filesystem metadata.

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

Get the app

Related questions