InterviewStack.io LogoInterviewStack.io

End-to-End ML System Design Questions

End-to-end design of machine learning systems, covering data collection and validation, feature engineering and feature stores, model training and evaluation, deployment and serving architectures, monitoring and incident management, retraining pipelines, data governance, scalability, security, and MLOps practices.

MediumTechnical
25 practiced
Design a retraining pipeline that triggers automatically on evidence of concept drift or label distribution change. Describe drift-detection signals you would monitor, how to define retraining windows, validation gating, human-in-the-loop checks, and safe deployment practices (shadowing, canaries, rollback).
MediumTechnical
25 practiced
Compare methods to handle severe class imbalance for rare-event detection (e.g., fraud): oversampling (SMOTE), undersampling, class weighting, focal loss, anomaly detection, and threshold tuning. For each, explain when it is appropriate and how to evaluate using precision-recall and business cost metrics.
MediumTechnical
30 practiced
Write an SQL query (standard SQL) to generate labels for supervised training using a cutoff time approach. Given tables: events(user_id, occurred_at, action) and purchases(user_id, purchase_time), produce a label table of users indicating whether they purchased within 7 days after a given cutoff_date without using any data after that cutoff to avoid lookahead bias.
HardTechnical
30 practiced
Implement a model rollout manager in Python (pseudo-implementation) that supports blue-green and canary deployments with weighted traffic routing, automatic rollback when production SLOs are violated, warmup strategies (gradual weight ramp), and metric aggregation and significance testing to decide promotion or rollback.
MediumSystem Design
49 practiced
Design a monitoring and alerting system for production ML that covers data quality, feature drift, model performance, resource metrics, and business KPIs. Specify which metrics you would collect, how to define SLOs and alert thresholds, and how to reduce alert fatigue while enabling timely incident response.

Unlock Full Question Bank

Get access to hundreds of End-to-End ML System Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.