Questions: Hybrid Logical Clocks

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Node A sends a message to Node B. A's HLC physical part is 500ms; B's current HLC physical part before receiving the message is 300ms; B's wall clock reads 450ms. After receiving the message, what is B's new HLC physical part?

A300ms — B keeps its own physical part to avoid jumping forward
B450ms — B always uses its local wall clock for the physical part
C500ms — B takes the maximum of its current physical part, A's physical part, and its wall clock
D400ms — B averages A's physical part and its own wall clock to prevent large jumps
Question 2 Multiple Choice

A distributed systems engineer needs to determine definitively whether two events A and B are concurrent (neither caused the other). Should they use HLC timestamps or vector clocks?

AHLC, because comparing the physical part first and the logical part second directly encodes concurrency information
BHLC, because its two-component structure is mathematically equivalent to a vector clock for detecting concurrency
CVector clocks, because HLC can only tell you that A happened before B or that the order is undetermined — it cannot confirm that two events are explicitly concurrent
DEither works identically; HLC is simply a more compact encoding of the same causal information as vector clocks
Question 3 True / False

HLC timestamps are fixed-size (two numbers) regardless of how many nodes are in the distributed system, whereas vector clock size grows linearly with the number of nodes.

TTrue
FFalse
Question 4 True / False

Because the physical component of an HLC timestamp reflects the node's wall-clock time, you can use HLC timestamps to determine the exact wall-clock moment when any given event occurred, to within NTP precision.

TTrue
FFalse
Question 5 Short Answer

Explain why the 'max' rule in HLC update — taking the maximum of the receiver's current physical part, the sender's physical part, and the local wall clock — is essential for both the Lamport causal ordering property and the bounded skew from real time.

Think about your answer, then reveal below.