FreeExam
A closed notebook, a blank card, and a pencil on a wooden desk.

Distributed systems engineer

Free interview questions with answers and explanations

5 topics · 505 questions

Reason about replicated state, concurrency, failure boundaries, and recovering a coherent service.

Mid level

Sample questions with answers

Try these original Distributed systems practice questions, then read the worked explanations. Open a topic for the full question bank.

Replication, consistency, and recovery

A catalog promises linearizable reads of each item. A price update completes before another client starts reading that item. Which result is permitted, assuming no later write?

  1. The updated price
  2. A random price from the last hour
  3. The previous price from any replica
  4. Either price until a scheduled repair

Answer: The updated price

Explanation: Linearizability respects completed operations in real time. Without a later write, a subsequent read cannot return the older item value.

Distributed systems engineer: Clocks Ordering and Causality

Process P sends m before its later local event p2. Process Q receives m before its local event q2. No other edges are known. Which relation is established by the message path?

  1. The send of m precedes q2 causally.
  2. The receive of m precedes its send.
  3. q2 necessarily precedes p2.
  4. p2 necessarily precedes q2.

Answer: The send of m precedes q2 causally.

Explanation: A send precedes its matching receive, and local order extends that relation to q2. The supplied graph does not order p2 against q2.

Distributed systems engineer: Consensus and Quorum Reasoning

A consensus service for one slot promises that no two chosen values differ. Which history violates that safety requirement?

  1. One chosen value is learned by clients at different times.
  2. No value is chosen during a long partition.
  3. One group chooses X and another chooses Y for that same slot.
  4. The same chosen value is returned twice.

Answer: One group chooses X and another chooses Y for that same slot.

Explanation: Agreement concerns the value chosen for the same decision instance. Lack of progress is a separate issue, while duplicate knowledge of one value need not violate agreement.