Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Predictive File Storage-Tier Placement

Design an ML-backed control plane that predicts file access and safely places files in hot or archive storage to reduce cost without breaking retrieval.

Problem statement

For this exercise, assume a file-storage platform must choose between one low-latency hot tier and one slower archive tier for every user file. Every accepted or materially changed file receives an initial placement decision, and active files are rescored once per day.

A versioned model predicts whether a file will be accessed during the next 30 days; a policy combines that calibrated probability with storage, retrieval, and migration costs while honoring the file's retrieval-latency class. Point-in-time training data comes from versioned file metadata and access events.

A missing, stale, incompatible, or failed prediction keeps the file hot. A tier transition must never make a file unreadable, and concurrent retrievals must resolve to one verified copy while migration is in progress.

Design evidence ingestion, labeling, training and evaluation, model publication, batch scoring, policy decisions, safe migrations, retrieval routing, failure recovery, and observability.

File synchronization, sharing, encryption-key management, physical media procurement, and vendor-specific storage internals are outside scope.

What to build

  1. The platform records versioned file metadata and access evidence with event and availability times so training and scoring inputs are reproducible.
  2. ML owners can build point-in-time labels, evaluate a model by cohort, and publish or roll back an immutable version that produces calibrated 30-day access probabilities.
  3. The policy selects hot or archive placement from one model version, one cost-policy version, and the file's retrieval class, and stores an explainable retry-safe decision.
  4. Workers move a file idempotently, verify the destination before retiring the source, and route concurrent retrievals to a readable verified copy.
  5. Operators can observe cost, retrieval, migration, calibration, and drift outcomes, while invalid predictions or unhealthy control-plane dependencies retain hot placement.

At scale

  • For this exercise, assume one billion retained files and ten million file creates or material metadata changes per day.
  • For this exercise, ingest one hundred million access events per day and finish the daily scoring run within six hours.
  • For this exercise, optimize expected storage, retrieval, and migration cost over a 30-day horizon while preserving the declared retrieval-latency class.
  • For this exercise, accepted placement state and readable file bytes must survive a single-zone failure within one home region.