INTERVIEW PREP
Interview questions
570 questions from real DevOps, SRE, platform engineering and MLOps interviews, with the answer an interviewer wants to hear. Try answering out loud first, then open the model answer.
Showing 211–225 of 229 questions
211.You must cut inference cost by 30 percent without hurting users. What do you try?SeniorAI Infrastructure & GPUs
Load test and look for idle capacity. Try prefix caching, a tighter max model length, quantization with a quality check, a smaller model for easy requests through the gateway, better batching, and scaling on queue length with right-sized reserved capacity. Verify quality and latency after each change.
212.What is MLOps?BeginnerMLOps
Applying DevOps practices to machine learning: version control for code, data and models, automated training and testing pipelines, reliable deployment of models, and monitoring them in production so they keep working as data changes.
213.How is MLOps different from DevOps?BeginnerMLOps
Software only changes when code changes; an ML model can get worse when the data changes. So MLOps also versions data and models, tracks experiments, validates model quality before release and monitors for drift, not just uptime.
214.What is a model registry?BeginnerMLOps
A central store of trained model versions with their metadata (metrics, training data, code version) and stages like staging and production. MLflow Model Registry, SageMaker Model Registry and Vertex AI Model Registry are examples.
215.What is experiment tracking?BeginnerMLOps
Recording each training run's parameters, code version, data version and metrics so results can be compared and reproduced. MLflow, Weights & Biases and Neptune are common tools.
216.What is the difference between batch and online (real-time) inference?BeginnerMLOps
Batch inference scores many records on a schedule and writes results to storage, for example nightly recommendations. Online inference answers single requests through an API with low latency, for example fraud checks at checkout.
217.What is data drift and concept drift?MidMLOps
Data drift: the input data changes from what the model was trained on (new user types, a changed sensor). Concept drift: the relationship between inputs and the right answer changes (fraud patterns evolve). Both lower accuracy; detect them by comparing live data and outcomes with training baselines.
218.How do you version data?MidMLOps
Use tools like DVC or lakeFS, or store immutable dataset snapshots in object storage with IDs recorded alongside each model. The goal is that every model can be traced to the exact data and code that produced it.
219.What is a feature store?MidMLOps
A system that stores and serves ML features consistently for training (historical, offline) and inference (fresh, online), so the same feature logic is used in both. Feast, Tecton and cloud feature stores are examples; it prevents training-serving skew.
220.How do you deploy a model safely?MidMLOps
Package it in a container with a pinned environment, serve it with a tool like KServe, Seldon, BentoML, Triton or a managed endpoint, then roll out with shadow traffic or canary releases, comparing latency, errors and model metrics before sending all traffic.
221.What should a CI/CD pipeline for ML include?MidMLOps
Code tests and linting, data validation (schema, ranges, nulls), training or retraining, model evaluation against a baseline and fairness checks, registering the model, and automated deployment to staging then production with approval and rollback.
222.What is training-serving skew?MidMLOps
When the model sees different data at serving time than in training, often because features were computed differently in two code paths. Fix it with shared feature code or a feature store, and log live features to compare with training data.
223.What is Kubeflow?MidMLOps
An open-source toolkit for ML on Kubernetes: Kubeflow Pipelines for workflows, notebooks, Katib for hyperparameter tuning, training operators for distributed jobs, and KServe for model serving.
224.How do you monitor a model in production?SeniorMLOps
Track service metrics (latency, errors, throughput, GPU use), data quality and drift of inputs, prediction distributions, and real accuracy once true labels arrive. Alert on big shifts and connect monitoring to a retraining or rollback process.
225.How do you make ML training reproducible?SeniorMLOps
Pin code (Git commit), environment (container image with exact library versions), data (versioned snapshot), random seeds and hardware settings, and log all of it with the run. Note that some GPU operations aren't fully deterministic, so record tolerances.