Questions: Chandy-Lamport Snapshot Algorithm

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Process A initiates a snapshot, records its state, and sends markers. Before receiving A's marker, Process B sends a $50 transfer to A. A later receives this $50 message before B's marker arrives on that channel. How should A handle this $50 message?

AIgnore it — A has already recorded its state, so messages arriving afterward are excluded from the snapshot
BRecord it as part of A's channel state — it is an in-flight message that was in transit at snapshot time
CDiscard it — only the initiating process records in-flight messages
DInclude it in the snapshot unconditionally, regardless of when it was sent
Question 2 Multiple Choice

Why does the Chandy-Lamport algorithm require FIFO (first-in-first-out) communication channels?

ATo ensure that the initiating process sends markers before any regular messages during the snapshot
BTo guarantee that all messages sent before a marker on a given channel arrive at the receiver before that marker does
CTo prevent any process from recording its state more than once during a single snapshot
DTo ensure that marker messages travel faster than regular application messages
Question 3 True / False

The Chandy-Lamport snapshot captures the global state of a distributed system at a single physical instant in time.

TTrue
FFalse
Question 4 True / False

When a process receives a marker message for the first time, it immediately records its own local state before forwarding markers to its neighbors.

TTrue
FFalse
Question 5 Short Answer

What does 'consistent cut' mean in the Chandy-Lamport algorithm, and why is consistency sufficient for verifying global invariants even without physical simultaneity?

Think about your answer, then reveal below.