ML SYSTEM DESIGN (DEEP DIVES) · INTERVIEW QUESTION
Design an MLOps platform covering deploy, monitor, govern across 500 production models.
🔴 advanced · Safety / MLOps
Hint: Experiment tracking, registry, deploy patterns, drift monitoring, eval gates, governance and audit.
Answer
1. Problem Formulation
"Build the MLOps platform that lets product teams deploy, monitor, and govern models safely." This is the boring-but-decisive infrastructure layer.
Clarifying questions:
- Scope? Cover the full lifecycle: experiment tracking, model registry, deployment, monitoring, incident response, governance. Out of scope: training infra (separate platform) and feature platform (separate platform — though tightly integrated).
- Users? ML engineers across product teams, plus risk/compliance officers who need audit trails.
- Scale? ~500 models in production, ~50 deploys per day across teams.
- Regulatory context? Some models touch regulated decisions (lending, content moderation) — need explainability, bias audits, and decision logs.
Why this matters as a system: the failure mode of having no MLOps is that every team rolls their own deployment, monitoring is ad hoc, and models silently rot in production. The platform's value is standardization with escape hatches for teams that need them.
2. Metrics
Platform health:
- Deploy success rate and mean deploy time.
- Mean time to detect (MTTD) a model issue.
- Mean time to rollback (MTTR).
- % of production models with monitoring, alerts, and on-call configured.
- % of production models with an A/B test gate at deploy.
Per-model health (what the platform measures on behalf of every model):
- Prediction distribution drift (PSI / KL divergence vs training).
- Feature distribution drift per feature.
- Performance metrics where ground truth is available (delayed labels common).
- Latency, error rate, throughput.
- Fairness metrics across protected segments (where applicable).
This is the opening of a longer walkthrough. Read the full answer in the topic explorer, free.
Likely follow-up: How do you handle drift detection when ground-truth labels arrive weeks later?
Related questions
- Design a YouTube-scale video recommendation system serving billions of users.
- Design a production RAG system for an enterprise knowledge assistant (10TB docs, 50k employees, ACL-aware).
- Design a real-time payment fraud detection system (10k+ TPS, 100ms decision budget, delayed labels).
- Design X (Twitter) home timeline ranking — including in-network and out-of-network candidate sources.
- Design an ads CTR prediction and auction system for a major web property (100k QPS, 50ms budget).