Questions: Distributed Snapshots and Consistent State Capture

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

In a distributed system, process P1 sends a $100 payment to P2 and then records its local state (balance: $900). P2 records its local state (balance: $500) before receiving the payment. The message is still in transit. What must a correct snapshot algorithm do?

ADiscard the snapshot — any snapshot where a sent message has not yet been received is inconsistent and must be retaken
BAssign the in-transit $100 to P1's recorded state, showing P1 with $1,000
CRecord the in-transit $100 as part of the channel state, so the snapshot captures $900 + $500 + $100 in-flight = consistent total
DRoll back P1's state to before the send, so both processes agree no transfer occurred
Question 2 Multiple Choice

In the Chandy-Lamport algorithm, when a process receives a marker on a channel for the first time, what does it do?

AIt immediately stops processing all messages until all other processes have sent their markers
BIt records its own local state (if it has not done so already) and begins recording all messages arriving on its other incoming channels until markers arrive on those channels too
CIt forwards the marker only to processes it has sent messages to recently, to minimize overhead
DIt requests a global coordinator to freeze the system and collect all channel states simultaneously
Question 3 True / False

A consistent distributed snapshot represents the exact global system state at a specific instant in wall-clock time.

TTrue
FFalse
Question 4 True / False

Distributed snapshots are useful not only for fault recovery (checkpointing) but also for monitoring live system properties like invariant checking and deadlock detection.

TTrue
FFalse
Question 5 Short Answer

What makes a distributed snapshot 'consistent,' and why is this consistency necessary for the snapshot to be useful for purposes like fault recovery or invariant checking?

Think about your answer, then reveal below.