MLOps: Monitoring, Retraining, and Lifecycle Management Questions
Operating machine learning systems reliably over time. Covers model and data monitoring, drift and degradation detection, feedback loops, retraining and model-freshness strategy, versioning and model registries, and pipeline and workflow orchestration. Focuses on keeping deployed models healthy and reproducible across their lifecycle.
Write a rollback runbook for a bad model deployment covering detection, decision, execution, verification, communication, and post-incident steps, assuming instantaneous traffic switching between versions tracked in a model registry. Compare three concrete rollback mechanisms (instant traffic switch, redeploy-previous-artifact, feature-flag kill switch) and their trade-offs in complexity, downtime, and ability to diagnose the root cause afterward, and include the stakeholder-communication and legal-coordination steps for a high-impact incident.
Define SLI, SLO, and SLA in the context of ML systems. Propose a set of SLIs and SLO thresholds for an online recommendation model, covering inference latency (p95), availability, a prediction-quality KPI (for example CTR uplift), and feature freshness, and describe how you'd implement alerting and escalation on SLO breach.
Explain the differences between A/B testing, canary deployments, shadow deployments, blue-green deployments, and phased rollouts for releasing a new model version. For each, describe how traffic is routed, what you monitor during the rollout, and rollback complexity. For a model that affects revenue, which would you pick first and why, and how does the role of feature flags and database/schema migrations (for feature computation) change your answer?
Tell me about a time you were on-call for a production ML model that degraded in quality. Describe the situation, what you did to detect and mitigate it, the result, and what process changes you implemented afterward.
Implement a Python function dedupe_alerts(alerts: list[dict]) -> list[dict] that groups alerts sharing the same root-cause signature within a sliding 10-minute window. Each alert dict includes timestamp, metric_name, model_id, feature_name, and severity. Explain your chosen grouping key and the algorithm's time complexity.
Unlock Full Question Bank
Get access to all 27 MLOps: Monitoring, Retraining, and Lifecycle Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.