OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/Data Modeling

32. Versioned Settings with Rollback

Medium

Named settings documents where every change is a numbered version: read any version, diff two of them, roll back, and catch concurrent edits.

40 minute budget0.0% acceptanceversioning · diff · optimistic-concurrency

Requirements

  1. 01Write a named settings document (a JSON object); every write creates a new numbered version, starting at 1.
  2. 02Read the latest version, list the versions, or read any one version by number.
  3. 03Diff two versions of a document and roll a document back to an earlier version.
  4. 04A write may say which version it was based on, so concurrent edits are detected.
  5. 05400 for invalid input, 404 for an unknown document or version.

What the hidden tests check

  • Everything the interviewer tells you is checked.
  • Version numbers and the version list are checked after every write, rollback and rejected write.

4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.

Sign in to start

Attempts, files and transcripts are saved to your account so the grader can review how you worked.

Sign inCreate an account
OpenBook

Practice for interviews where you build a feature with an AI assistant.

Early preview. Problems, grading and the interviewer are still changing.

Practice

  • Problems
  • Tracks
  • How it works
  • Pricing

Legal

  • Terms
  • Privacy
© 2026 OpenBook.