Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Multi-Version Configuration Service

Design a configuration registry with immutable versions, an explicit current version, and safe rollback.

Problem statement

The interview report asks for a multi-version configuration system. For this exercise, assume authorized clients manage named configuration records whose values are validated structured documents of a candidate-chosen bounded size.

A client can create an immutable version, read an exact version or the current version, list version history, and explicitly select an existing version as current. Every accepted version has a stable identity and immutable content, and every read identifies the version it returned.

Version creation and current-version selection use stable operation identities. Selecting a current version includes the expected current version so a stale writer receives an explicit conflict instead of silently overwriting a newer choice.

Rollback selects an earlier accepted version as current rather than modifying or recreating it.

Before sizing the design, state and defend assumptions for configuration count, version frequency, payload size, read and write mix, latency, availability, and history retention because the report supplies no numeric targets.

Secrets, executable code, binary artifacts, schema-authoring UX, client push distribution, offline synchronization, override layers, feature-flag evaluation, application deployment, and resource orchestration are outside scope.

What to build

  1. An authorized client can validate and create one immutable version of a named configuration with a stable result when the request is retried.
  2. An authorized client can read an exact version, read the resolved current version, and inspect the version history without a version changing meaning.
  3. An authorized client can conditionally select an existing version as current and receives an explicit conflict when its expected current version is stale.
  4. An authorized client can roll back by conditionally selecting a prior accepted version while preserving the complete immutable history and audit trail.

At scale

  • The source provides no numeric workload, payload-size, latency, availability, geography, or retention target; the candidate must state and defend these assumptions before sizing the design.
  • For this exercise, assume configuration values are validated structured documents with a bounded size chosen by the candidate; secrets, executable code, and binary artifacts are excluded.
  • For this exercise, assume every accepted version is immutable, mutation retries are idempotent, and a stale expected-current value never silently replaces a newer current-version decision.