The interview problem

Practice prompt

Move millions of files between stores while failures and source changes occur. Define what a successful copy means.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume the source can expose stable versions or a snapshot. Enumerate a manifest containing path, object version, size and integrity metadata. Copy by manifest identity, checkpoint verified objects and retry incomplete entries. Preserve path semantics and explicitly handle links, permissions and empty directories. Publish the destination root only after verification if atomic visibility is required; otherwise expose migration progress separately.

2. Trace the design or derivation

Freeze manifest
  → copy exact versions
  → verify objects
  → checkpoint
  → publish destination

A checkpoint should reference the verified destination version, not merely say that a path was attempted. Before resuming, confirm destination entries still match that evidence. Separately account for permissions and ownership: matching file bytes does not prove that the migrated tree is usable or appropriately restricted.

3. Calculate the example

A manifest has 1 million files averaging 20 KB, totaling 20 GB of payload. At 500 successful object operations/s, even zero-cost data transfer needs about 2,000 seconds for one operation per file; listing and verification can add more operations.

4. Failure cases and trade-offs

Copying a live path twice can capture different versions. Metadata-heavy workloads are limited by operations rather than bytes. A snapshot gives a clear boundary but may cost storage; live copying needs a reconciliation pass and an explicit consistency promise. A checksum mismatch is not a successful retry.

5. Validation, follow-ups and self-review

Interrupt copying, mutate source files and test path collisions. Follow-up: how do deletions during migration propagate? Self-review: define snapshot boundary, resumability and complete-manifest verification.

Sources and related practice

Technical reference: docs.aws.amazon.com — Object copy operations and version/metadata considerations; manifest workflow is original.

Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Design a file-storage service; Transfer a deployment when customer ownership changes.

Continue your preparation

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