Questions: Raft Consensus Algorithm

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A Raft cluster has 5 nodes. The current leader and one follower become partitioned from the other three nodes. What happens in the partition containing three nodes?

AThe three nodes wait indefinitely for the leader to return, since they do not know it has failed
BThe three nodes elect a new leader from among themselves and continue processing client requests
CThe three nodes cannot elect a leader because they lack full information about the last committed log entry
DThe system halts entirely to avoid split-brain: no partition can proceed without all 5 nodes
Question 2 Multiple Choice

In Raft, what mechanism guarantees that a committed log entry will never be lost, even after multiple leader failures?

ACommitted entries are immediately written to durable storage on all nodes before the leader acknowledges them
BThe leader keeps a backup copy of all committed entries and transfers them to new leaders upon election
CA candidate can only win an election if its log is at least as up-to-date as a majority of nodes, and committed entries are by definition on a majority of logs
DFollowers reject any leader whose log does not contain all previously committed entries
Question 3 True / False

In Raft, a candidate can only win an election if its log is at least as up-to-date as the logs of a majority of nodes in the cluster.

TTrue
FFalse
Question 4 True / False

In Raft, any node can accept client write requests and replicate them to the rest of the cluster.

TTrue
FFalse
Question 5 Short Answer

Why do Raft nodes use randomized election timeouts instead of a single fixed timeout value shared by all nodes?

Think about your answer, then reveal below.