The interview problem

Practice prompt

A replicated object store rarely reads cold objects. Design periodic integrity scrubbing that detects corruption without overwhelming foreground traffic or repairing from an untrusted copy.

Original practice, not a reported company interview. All worked numbers are illustrative. Interview date: not applicable. Written October 3, 2026.

1. Scope and assumptions

Checksums detect mismatches; they do not by themselves identify the authoritative content. Assume immutable object versions and checksums established on ingestion. Separate metadata consistency scans from reading and validating stored bytes.

2. Architecture and decisions

Scrub schedule → rate-limited read → version and checksum validation → quarantine → verified repair → audit

Schedule by object age, last verified time and risk, with bounded I/O budgets per device and failure domain. Compare bytes against the expected checksum for the exact version. On mismatch, quarantine the suspect replica and locate another independently verified copy. Repair only after validating source identity and checksum; preserve evidence when all copies disagree.

Checkpoint progress so restarts do not repeatedly scan only the first objects. Randomize some work to avoid synchronized load spikes. A successful scan updates a verification timestamp, not the object’s business modification time. Track backlog age and coverage rather than merely the number of scan jobs completed.

3. Work through the example

Reading a 100 TB decimal dataset once every 30 days needs an average 100,000,000 MB / 2,592,000 seconds, about 38.58 MB/s of aggregate read bandwidth. Replicas, retries and metadata overhead add work. If only half the day is available for scrubbing, the active-window rate doubles to about 77.16 MB/s.

4. Failure cases and trade-offs

A corrupt checksum stored beside corrupt data can create false confidence without protected metadata. Repairing from an unchecked replica can spread corruption. Full scans cost more I/O than metadata checks but cover different failure modes. Aggressive throttling protects latency while allowing an unacceptable detection window to grow.

5. Validation and acceptance

Inject bit flips into cold objects, mismatched versions and unavailable repair sources. Verify detection, quarantine and recovery without serving the damaged copy. Measure oldest-unverified age and foreground latency under scrub load.

6. Follow-ups and self-review

What if every replica agrees on the wrong bytes? Reward independent integrity evidence, version binding, bounded repair and coverage-based scheduling.

Sources and related practice

Ceph documents scrub and deep-scrub controls; the scheduler and capacity example are original practice.

Read the primary technical reference

Reference retrieved October 3, 2026. Retrieval date is not an interview or source publication date. The reference supports the named concept; scenario, architecture, examples and rubric are original.

Continue with Erasure-Coded Storage Design: Capacity and Repair; Locate replica differences with Merkle trees.

Continue your preparation

Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.