Questions: View Change and Leader Failover Protocols

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In a distributed system using a view change protocol, the old leader committed operation C in log slot 7 and received majority acknowledgments — but crashed before broadcasting the commit notice to all replicas. A new leader is elected. What must the new leader do before accepting any new client requests?

AStart with an empty log and rebuild state from client re-requests to avoid inheriting potentially corrupt state
BCollect log state from a quorum of replicas to reconstruct what was committed (and in-progress) during the previous view, then bring all replicas to a consistent state
CTrust its own local log as definitive, since it was elected leader by a majority
DAsk each client to re-submit their requests so the new leader can decide which ones to commit
Question 2 Multiple Choice

What is 'split-brain' in the context of view change protocols, and why is it the critical safety failure the protocol must prevent?

AA situation where two nodes simultaneously believe they are the active leader for the same view, potentially issuing conflicting commands and corrupting the replicated log
BA network partition that splits replicas into two groups that cannot communicate with each other
CA scenario where the leader's log splits into two conflicting branches during rapid writes
DA race condition where two clients submit conflicting commands at the same time
Question 3 True / False

A replica that holds the longest log among most candidates is typically the safest choice for the new leader, since its log is most up-to-date and no committed operations can be missing.

TTrue
FFalse
Question 4 True / False

View numbers in view change protocols are monotonically increasing, meaning the system always transitions to a higher-numbered view and can never revert to a previous leader.

TTrue
FFalse
Question 5 Short Answer

Why is ensuring the new leader learns all previously committed operations the hardest challenge in a view change, and how does collecting state from a quorum address it?

Think about your answer, then reveal below.