0 day streak
Anonymous · shared experience20 Apr 2026 · 5 views

Rubrik: Backup dependency graph with recovery chains and retention-based expiry

Interview question #Rubrik Low-level design

Problem. Model a backup system in which backups depend on one another (for example, an incremental backup relies on an earlier one). Every backup carries an end time and a retention period.

APIs to implement

  • add_dependency: record that one backup depends on another.
  • find_recovery_chain: for a given backup, return the chain of backups needed to restore it.
  • expire_backups: remove backups whose retention has run out.

How the round was structured. Two stages. First, a correct single-threaded implementation. Then, the same component made thread-safe for concurrent callers.

Outcome noted by the candidate. They finished the single-threaded part but ran out of time before the concurrency stage, and the result came back as a weak yes. The interviewer was described as supportive and willing to steer.

What mattered. Getting the graph modelling and the three operations right quickly enough to leave time for the thread-safety discussion; the concurrency part is where the round is decided. The same loop also had a debugging round on a multithreaded program, so expect concurrency to be a theme across rounds.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.