MLOps Engineer interview questions
100 real questions with model answers and explanations for Junior candidates.
See a MLOps Engineer resume example →Practice with flashcards
Spaced repetition · Hunter Pass
Questions
MLOps is the discipline of reliably building, deploying, and operating machine learning systems.
- It combines machine learning practices with software engineering and operations.
- It turns experiments into repeatable pipelines and deployable model artifacts.
- It adds versioning, automation, testing, monitoring, and ownership across the model lifecycle.
Why interviewers ask this: The interviewer checks whether you see MLOps as the operation of complete ML systems rather than only model deployment.
The ML lifecycle moves from defining a problem and preparing data to training, deployment, and ongoing operation.
- Data is collected, validated, transformed, and split for training and evaluation.
- Candidate models are trained, evaluated against acceptance criteria, and packaged.
- An approved model is deployed for batch or online inference.
- Production performance and data are monitored to decide when investigation or retraining is needed.
Why interviewers ask this: A strong answer connects model development to the production and feedback stages that MLOps must support.
MLOps applies DevOps principles while accounting for data, experiments, and models as additional changing parts.
- DevOps usually centers on source code, application builds, releases, and infrastructure.
- MLOps must also version datasets, features, parameters, metrics, and model artifacts.
- ML behavior depends on both code and data, so tests must cover data quality and model quality.
- MLOps often includes continuous training in addition to continuous integration and delivery.
Why interviewers ask this: The interviewer wants the shared automation principles and the ML-specific concerns stated clearly.
Source code alone cannot identify an ML result because data, configuration, dependencies, and training inputs also affect it.
- The same code can produce a different model when the dataset or feature definitions change.
- Hyperparameters and random seeds can alter training outcomes without a code change.
- Library and runtime versions can change preprocessing or numerical behavior.
- A reproducible model version should link all of these inputs to its output artifact.
Why interviewers ask this: This tests whether the candidate understands that an ML model has more provenance inputs than a conventional software build.
Continuous integration for ML automatically validates each proposed change before it is merged.
- It runs code checks such as formatting, unit tests, and integration tests.
- It can validate schemas, missing values, ranges, and other data contracts.
- It may execute a small training test to confirm that the pipeline completes and produces expected outputs.
- It gives the team fast feedback without requiring a full production training run.
Why interviewers ask this: The interviewer checks that CI covers code and ML pipeline inputs without confusing it with full retraining or deployment.
Continuous delivery prepares a validated model release so it can be deployed through a controlled, repeatable process.
- The pipeline packages the model with the required serving code and dependencies.
- Automated checks confirm model quality, compatibility, and required metadata.
- An approved artifact is promoted between environments rather than rebuilt differently each time.
- Production release may remain a manual approval even when every preceding step is automated.
Why interviewers ask this: A strong answer distinguishes a deployable model release from automatically sending every trained model to production.
Continuous training is an automated process that retrains and evaluates a model when a defined trigger occurs.
- A trigger can be a schedule, newly available labeled data, or a monitored quality signal.
- The pipeline repeats data preparation, training, evaluation, and model registration.
- A new candidate must pass acceptance checks before it can replace the current model.
- Continuous training creates candidates automatically but does not require automatic production promotion.
Why interviewers ask this: The interviewer evaluates whether the candidate separates automated retraining from uncontrolled model replacement.
CI validates changes, CT produces qualified model candidates, and CD packages and promotes approved releases.
- CI protects the shared codebase and pipeline definitions before changes are merged.
- CT reruns the training workflow against a defined data and configuration version.
- CD moves the exact validated artifact through staging and production controls.
- Together they provide traceability from a change or data trigger to a deployed model version.
Why interviewers ask this: This checks whether the candidate can assign a distinct purpose to each automation loop.
Source control should contain the text-based definitions needed to review and rebuild the ML workflow.
- Store training, evaluation, preprocessing, and serving code.
- Store pipeline definitions, tests, environment manifests, and small configuration files.
- Store schema definitions and references or manifests that identify external datasets and artifacts.
- Keep large datasets, model binaries, credentials, and generated outputs in dedicated systems rather than Git.
Why interviewers ask this: The interviewer checks whether the candidate knows the boundary between reviewable source files and large or sensitive assets.
Versioned configuration makes changes to training behavior explicit without hiding them inside source code.
- Configurations can record hyperparameters, feature selections, data locations, and resource settings.
- A run should retain the resolved values actually used, including defaults and overrides.
- Reviewing configuration diffs makes experimental changes easier to understand.
- Linking a configuration version to each run helps recreate and compare results.
Why interviewers ask this: A strong answer treats configuration as a first-class input to training rather than an undocumented local setting.
Reproducibility means being able to rerun a recorded process under the same defined conditions and obtain a consistent result.
- The run must identify code, data, configuration, dependencies, and execution environment.
- Random seeds and deterministic options should be recorded where the framework supports them.
- The resulting metrics may match within an accepted tolerance rather than bit for bit.
- Reproducibility supports verification, comparison, auditing, and reliable model updates.
Why interviewers ask this: The interviewer wants a practical definition based on controlled inputs and acceptable output consistency.
A random seed controls some randomness but cannot by itself make every part of training deterministic.
- Data loader workers and parallel execution can consume random operations in different orders.
- Some GPU kernels and numerical libraries use nondeterministic algorithms.
- Hardware, drivers, and library versions can change floating-point results.
- Reproducibility also requires pinned inputs, environment details, and deterministic settings where available.
Why interviewers ask this: This tests whether the candidate understands both the value and the limits of random seeds.
Experiment tracking records the inputs, outputs, and context of model development runs in a searchable system.
- Inputs include code revision, dataset version, parameters, and environment information.
- Outputs include metrics, plots, logs, checkpoints, and final model artifacts.
- Runs can be grouped and compared to understand which changes affected results.
- Tools such as MLflow and Weights & Biases provide tracking interfaces and APIs.
Why interviewers ask this: The interviewer checks whether tracking is described as structured run history rather than a list of final scores.
MLflow Tracking organizes related work into experiments whose individual executions are runs.
- Parameters are input settings such as learning rate or batch size and are normally fixed for a run.
- Metrics are numeric results such as loss or accuracy and may be logged repeatedly over steps.
- Artifacts are output files such as plots, reports, checkpoints, and serialized models.
- Each run receives an identifier that links these records and its execution metadata.
Why interviewers ask this: A strong answer uses MLflow's core tracking entities accurately and explains how they relate.
Weights & Biases is used to track, compare, and visualize machine learning experiments and related artifacts.
- Its SDK logs parameters, metrics, system measurements, tables, and media from training code.
- Dashboards help compare runs and inspect learning curves or resource use.
- Artifacts can version datasets and models while recording links between them.
- Shared projects and reports make experiment results visible to the team.
Why interviewers ask this: The interviewer checks for practical knowledge of W&B as a collaboration and tracking tool rather than a training framework.
A training run should log enough information to compare the result and trace how it was produced.
- Record the code revision, dataset version, feature or preprocessing version, and resolved configuration.
- Record hyperparameters, random seeds, dependency versions, hardware, and runtime details.
- Record training and validation metrics over time, plus final evaluation metrics.
- Save relevant logs, plots, checkpoints, and the final model artifact with a run identifier.
Why interviewers ask this: The interviewer evaluates whether the candidate captures both model results and the provenance needed to explain them.
A model registry is a catalog that versions trained models and manages information needed for their controlled use.
- It links each model version to its artifact, source run, metrics, and metadata.
- Teams can record validation status, ownership, intended use, and deployment references.
- Aliases or stages can identify versions approved for testing or production.
- Registries such as MLflow Model Registry separate model promotion from model training.
Why interviewers ask this: The interviewer checks whether the candidate understands a registry as a governance and lifecycle layer rather than simple file storage.
An alias or stage gives deployment systems a controlled logical reference to an approved model version.
- A name such as champion or production can point to one immutable version at a time.
- Promotion changes the reference without editing and rebuilding serving code.
- The registry records which version held the reference and when it changed.
- Rollback can repoint the alias to a previously approved version.
Why interviewers ask this: A strong answer connects logical references to safer promotion, traceability, and rollback.
Metadata is structured information that describes ML assets, executions, and the relationships among them.
- Run metadata can include timestamps, owner, code revision, parameters, and environment.
- Dataset and model metadata can include versions, schemas, evaluation results, and intended use.
- Relationships form lineage from source data through a training run to a registered model and deployment.
- Metadata makes assets searchable, comparable, auditable, and reproducible.
Why interviewers ask this: The interviewer checks whether the candidate can distinguish descriptive provenance from the data and model files themselves.
Artifact management stores, versions, and retrieves files produced or consumed by ML workflows.
- Artifacts can include datasets, feature snapshots, checkpoints, models, evaluation reports, and plots.
- Large files usually live in object storage while tracking systems keep their identifiers and metadata.
- Immutable versions and checksums help prove that a retrieved artifact is the expected one.
- Access controls, retention rules, and links to runs support secure and traceable reuse.
Why interviewers ask this: A strong answer covers reliable storage and identity as well as the connection between artifacts and their producing runs.
Locked questions
- 21
Why are containers useful in MLOps?
containersmlops-practice - 22
What is the difference between a Docker image and a container?
dockercontainers - 23
What does a Dockerfile define?
docker - 24
What are a container image tag and an image registry?
containersregistries - 25
How does dependency isolation improve reproducibility in ML projects?
reproducibilitydependencies - 26
What does workflow orchestration mean in MLOps?
mlops-practiceorchestration - 27
What is Apache Airflow commonly used for in an ML pipeline?
airflowci-cdpipelines - 28
How do Airflow and Kubeflow Pipelines differ at a basic level?
airflowci-cdkubeflow - 29
How does Argo Workflows differ from Airflow and Kubeflow Pipelines?
airflowci-cdkubeflow - 30
What is a DAG in a workflow orchestrator?
orchestration - 31
What is the relationship between a workflow, a task, and a task dependency?
schedulingdependencies - 32
What do retries mean in an orchestrated ML workflow?
orchestration - 33
What is a feature store and why is it used?
mlopsfeature-store - 34
What is Feast at a basic level?
feature-store - 35
What is the difference between offline and online feature storage?
- 36
What does data versioning mean in an ML project?
versioning - 37
What does model versioning mean?
versioning - 38
What is lineage in an ML system?
system-designlineage - 39
What does training-serving consistency mean?
consistencymodel-serving - 40
What is the difference between batch and online model inference?
batch - 41
What is streaming inference?
streaming - 42
What is NVIDIA Triton Inference Server used for?
serving-tools - 43
What role can FastAPI play in model serving?
frameworksmodel-servingmlops - 44
What is BentoML used for?
serving-tools - 45
What is vLLM at a basic level?
serving-tools - 46
What should basic production model monitoring cover?
mlopsmonitoring - 47
What is data drift?
mlopsiacdrift - 48
How do concept drift and prediction drift differ?
mlopsiacdrift - 49
What is train-serve skew?
train-serve-skew - 50
How do Prometheus and Evidently differ in basic ML monitoring?
monitoring - 51
An Airflow training task stays queued while other tasks run; what would you check first?
airflowdata-structures - 52
An Argo training step is terminated with OOMKilled; how would you respond?
resource-managementargo - 53
A training pipeline fails after a source column changes from integer to string; what would you do?
pipelinesschemaci-cd - 54
A daily Airflow training run starts before its latest data partition arrives; how would you prevent incomplete training data?
airflowpartitioningtest-data - 55
Validation accuracy suddenly jumps after a feature pipeline change; how would you investigate possible data leakage?
leakagevalidationci-cd - 56
Two runs of the same training commit and dataset produce different metrics; what would you check?
monitoring - 57
How would you make a retried training task safe when it writes features and model artifacts?
artifacts - 58
Training finishes, but uploading the model artifact fails; should the pipeline mark the run successful?
ci-cdartifactspipelines - 59
A GPU training job is much slower in Airflow than in the notebook; how would you locate the bottleneck?
airflowtrackinggpu - 60
You need to deploy a first model version from MLflow to a test environment; what sequence would you use?
deploymentexperiment-trackingtest-environments - 61
How would you expose a small scikit-learn model through FastAPI for its first internal deployment?
frameworksdeployment - 62
Triton starts, but your model is unavailable; what would you inspect?
serving-tools - 63
Your new inference pod is running but receives traffic before its model has loaded; how would you fix this?
- 64
Offline evaluation passes, but the deployed model returns obviously wrong predictions; what would you compare first?
deployment - 65
Error rate rises immediately after a first model rollout; what would you do?
- 66
A retried batch inference job creates duplicate predictions; how would you correct the pipeline?
pipelinesbatchci-cd - 67
An Airflow task needs object-storage credentials for training data; how would you provide them?
airflow - 68
A training pod remains pending because no node can satisfy its request; how would you troubleshoot it?
- 69
You must backfill seven days of an Airflow feature pipeline; how would you avoid harming current runs?
airflowci-cdbackfill - 70
An Argo preprocessing step succeeds, but the training step cannot find its output; how would you debug the handoff?
argo - 71
Online predictions use stale Feast features while offline training data is current; what would you investigate?
feature-store - 72
Training loss becomes NaN after several batches; how would you debug the run?
batch - 73
A Docker image serves predictions locally but crashes in Kubernetes; how would you narrow down the difference?
dockerkubernetes - 74
An inference pod uses more memory over several hours and eventually restarts; how would you investigate?
consistencymemory - 75
What would you include when handing a new training pipeline to the on-call rotation?
pipelineson-callci-cd - 76
A new model passes offline checks, but you need to deploy it safely to an inference service; what rollout would you use?
deployment - 77
A data scientist wants to evaluate a new model on production requests without affecting users; how would you set this up?
decision-making - 78
A release job builds the inference image but cannot push it to the container registry because permission is denied; how would you debug it?
containersregistries - 79
Inference p95 latency doubles after a model update while the request rate stays flat; how would you investigate?
latency - 80
A GPU inference service has a growing request queue but only 25 percent GPU utilization; what practical checks would you make?
gpudata-structures - 81
An inference endpoint intermittently returns errors when reading online features from Feast; how would you troubleshoot it?
feature-storeendpoints - 82
You are asked to add basic production monitoring for a new online model; what would you implement first?
monitoring - 83
A drift alert fires every morning because traffic mix changes by region; how would you make the alert useful?
alertingiacdrift - 84
Production labels arrive four weeks late, but the team wants early warning that model quality may be degrading; what would you monitor?
monitoring - 85
EvidentlyAI reports a strong shift in two important features after a partner changes its data feed; what would you do next?
- 86
A prediction-distribution alert fires at the same time as higher latency and errors; how would you distinguish drift from a service incident?
alertingiaclatency - 87
A model packaging test passes on your laptop but fails in CI because the model file cannot be loaded; how would you troubleshoot it?
debugging - 88
An ML pipeline test fails randomly because it calls an external feature service; how would you make CI reliable?
pipelinesci-cd - 89
A deployment job promoted the wrong MLflow model version to production; what would you change after restoring service?
deploymentexperiment-tracking - 90
A teammate cannot reproduce the model artifact built by the training pipeline; what evidence would you collect?
ci-cdartifactsdebugging - 91
A scheduled retraining DAG failed halfway through after an hour of compute; how would you recover it safely?
retraining - 92
You receive an on-call alert that inference p99 latency is above the service objective; what are your first actions?
on-calllatencyalerting - 93
During an inference incident, a data scientist asks for a detailed root cause while the service is still degraded; how would you respond?
incidents - 94
A deployment is followed by a small error-rate increase, but you do not yet know whether the release caused it; would you roll back?
deploymentrollback - 95
What would you contribute to a postmortem after a bad model rollout?
incidents - 96
A data scientist gives you a model file and asks for a production deployment by tomorrow; what information do you request before proceeding?
deployment - 97
A data scientist says a drift alert is harmless and wants it disabled; how would you handle the disagreement?
alertingiacconflict - 98
A data engineer plans to rename and change the type of a feature used by training and serving; how would you coordinate the change?
model-serving - 99
An engineer asks you to bypass model validation because a product deadline is close; what would you do?
estimationvalidation - 100
Users report bad predictions, but the platform metrics are green and the data scientist cannot reproduce the issue; how would you coordinate the investigation?
debuggingmonitoring