MLOps and Model Deployment Interview Questions for Data Science
33 MLOps and Model Deployment questions with answers for data science roles — 4 easy, 16 medium, 13 hard.
About MLOps and Model Deployment
MLOps questions check whether your models can survive in production: serving with APIs, Docker, batch versus real-time inference, experiment tracking, CI/CD, monitoring drift, retraining and safe rollouts. Mid and senior candidates are expected to have shipped models. Even freshers gain an edge by showing they understand reproducibility and deploying a simple model API.
What is the difference between batch and real-time inference?
Show answer
What is an Airflow DAG?
Show answer
What is a model registry and why do teams use one?
Show answer
How do you detect and treat concept drift?
Show answer
What is experiment tracking and why use a tool like MLflow?
Show answer
Write a FastAPI endpoint that serves predictions from a saved scikit-learn model.
Show answer
Write a Dockerfile for a Python model API.
Show answer
What does CI/CD mean for machine learning projects?
Show answer
What is the difference between saving a model with pickle, joblib and ONNX?
Show answer
Your model performance degrades every few months. Would you retrain on a fixed schedule or based on triggers?
Show answer
How do you make a machine learning experiment reproducible?
Show answer
What should you log for a production prediction service?
Show answer
Your deployed model gives different predictions than the same model in your notebook. Why?
Show answer
Write pytest unit tests for a feature function that computes days since last purchase.
Show answer
Tell me about a time you deployed a model under a tight deadline.
Show answer
Tell me about a time you disagreed with a stakeholder about which metric to optimise.
Show answer
Soon after a new model version went live, customer complaints spiked. How do you roll back safely and learn from it?
Show answer
Write Python code that validates prediction requests with Pydantic before passing them to a model.
Show answer
Tell me about a time you automated a manual step in a machine learning workflow.
Show answer
How do you evaluate and explain a model to business stakeholders?
Show answer
How would you build a churn prediction model end to end?
Show answer
How do you deploy and monitor a machine learning model?
Show answer
Design an end-to-end churn prediction system.
Show answer
Write Python code to compute the Population Stability Index for a feature to detect drift.
Show answer
What is a feature store and what problems does it solve?
Show answer
What are shadow, canary and A/B deployments for models?
Show answer
Your model API meets average latency but p99 latency is 900 ms against a 200 ms target. What do you do?
Show answer
Your fraud model's true labels arrive 30 days late. How do you monitor it in production?
Show answer
How would you design an ML platform for a team of 20 data scientists?
Show answer
Describe a production incident with a model and how you handled it.
Show answer
How does Kubernetes help in serving machine learning models?
Show answer
Your GPU model-serving bill has doubled while traffic grew only 20 percent. How do you bring cost down?
Show answer
Frequently asked questions
How important is MLOps and Model Deployment in Data Science interviews?
MLOps questions check whether your models can survive in production: serving with APIs, Docker, batch versus real-time inference, experiment tracking, CI/CD, monitoring drift, retraining and safe rollouts. Mid and senior candidates are expected to have shipped models. Even freshers gain an edge by showing they understand reproducibility and deploying a simple model API.
How should I use the MLOps and Model Deployment sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.