MLOps interview questions: pipelines, deployment, monitoring and drift

Reviewed by Mark Dickie · Last updated

5 questions on this page you can answer and see marked on the spot. Go to the first one

MLOps is the set of practices that takes a machine learning model from a notebook to a reliable production service and keeps it healthy there. Interviewers expect you to explain how data, code, and models are versioned together, how training and deployment are automated, and how you detect a model going stale after release. Be ready to describe one real pipeline end to end and name where it broke.

What does an MLOps interview test?

Questions tend to cluster around a few areas. Each one maps to a tool or failure mode you should be able to discuss from experience.

AreaWhat to be able to explain
Experiment trackingLogging params, metrics, and artifacts with MLflow or Weights & Biases so a run can be reproduced
Data and model versioningDVC or lakeFS for datasets, a model registry with staging and production stages
Feature storesFeast-style offline and online stores, and how they prevent training-serving skew
ServingBatch vs real-time endpoints, canary and shadow deployments, KServe or Seldon
MonitoringData drift vs concept drift, PSI or KS tests, delayed ground-truth labels
OrchestrationKubeflow Pipelines, Airflow, or Argo for retraining DAGs with retries and caching

How should I prepare for MLOps interview questions?

Work through these steps in order, since later ones depend on earlier ones.

  1. Train a small model and log every run to MLflow, then register the best one.
  2. Put the training code in a CI job that runs tests on data schema and model metrics before promotion.
  3. Package the model in a Docker container and serve it behind a REST endpoint.
  4. Roll out a new version as a canary and write down the rollback condition.
  5. Simulate drift by shifting an input feature, then trigger an alert and a retraining run.

Then take the quiz below and review each answer you miss against the pipeline you built.

Key facts

  • Tarmac has 124 MLOps interview questions on this topic, 10 of them on this page, at difficulty 2–4 of 5.
  • Tarmac tracked 628 job postings asking for MLOps in November 2026.
  • Roles asking for MLOps advertise a median base salary of £95,000, across 113 job postings as of November 2026.
  • Tarmac last reviewed these MLOps interview questions on 5 December 2026.

At a glance

Questions10 shown · 124 in the bank
Difficulty2–4 of 5
FormatsMultiple choice, True / false, Flashcard, Multiple answer, Ordering, Code output, Design exercise, Fill in the blank, Find the bug, Short answer

What you'll review

  1. model versioning registries
  2. experiment tracking tools
  3. pipeline automation
  4. reproducibility
  5. online streaming inference
  6. feature stores
  7. model monitoring

Practice questions

Try one before you open the answer. Pick an option and press Check; it's marked on the spot.

What problem does a model registry solve in an ML system?#

Options

Show answer

A model registry provides a versioned, centralized record of trained model artifacts along with their metadata, such as training data version, metrics, and lineage, plus a lifecycle stage like staging, production, or archived. That lets a specific model version be promoted, rolled back, or audited independently of the code that produced it, which a source-control repository tracking code alone cannot answer. It is distinct from source control, does not regenerate weights from hyperparameters, and has no inherent role in inference latency.

Why:

Training code, training data, and a trained model artifact are three different things that drift independently — the same code run twice on different data snapshots produces different weights — so 'which model is actually running in production, and can we prove what produced it' is a real operational question a Git commit alone can't answer. A model registry answers it by treating a trained artifact as its own versioned, first-class object: each registered version carries metadata (metrics, the data/code it came from, who registered it) and a lifecycle stage, so promoting a specific version to production, rolling back to a previous one, or auditing what was serving traffic on a given date are all registry operations rather than ad hoc file management. It does not regenerate weights from hyperparameters alone (b — training is not deterministic enough, and doing so would defeat the point of tracking the actual artifact), it's distinct from source control, which tracks code rather than trained artifacts, and it has no inherent role in inference latency or runtime compilation (d, which is what a serving/optimization layer does).

Experiment tracking tools (e.g. MLflow Tracking, Weights & Biases) log parameters, metrics, and artifacts for each training run so different runs can be compared and a given result traced back to what produced it.#

Options

Show answer

True. Experiment tracking tools log the hyperparameters, resulting metrics, and artifacts for each training run under a trackable run identifier, which lets a team compare many runs to find the best-performing configuration and trace any specific result back to the exact configuration and code that produced it.

Why:

True. An experiment-tracking tool's core job is capturing, per run, the hyperparameters used, the resulting metrics (loss curves, accuracy, whatever the team measures), and artifacts (the trained model file, plots, sometimes the environment/dependency spec) — all tied to a single trackable run identifier. That record is what lets a team compare dozens or hundreds of runs to find the best-performing configuration, and, just as importantly, trace any specific result — 'why did this run's accuracy jump' — back to the exact configuration and code that produced it, which is otherwise nearly impossible to reconstruct after the fact from memory or scattered notebook cells.

What is continuous training (CT) in MLOps?#

Show answer

Continuous training is automatically retraining and redeploying a model in response to a trigger — a schedule (e.g. weekly), a detected data or concept drift signal, or the arrival of a defined volume of new labeled data — rather than only ever retraining when a person manually decides to kick off a new training run. It is the step beyond a purely manual, level-0 ML process (Google's own MLOps maturity model names this distinction explicitly): CT requires the whole pipeline — data validation, training, evaluation against a promotion gate, and deployment — to already be automated end to end, since a human is no longer the trigger deciding whether and when it runs.

Why:

Continuous training is what keeps a model from silently going stale between whenever someone happens to remember to retrain it: a model's real-world accuracy naturally decays as the world it's making predictions about drifts away from its training data, and CT closes that gap automatically instead of relying on someone noticing a metrics dashboard has degraded. It's also a good marker of MLOps maturity in an interview context — a team that can only retrain manually is meaningfully less mature than one with an automated CT pipeline gated by real evaluation checks, not just a cron job blindly redeploying whatever the latest training run produces.

For a training run to be genuinely reproducible — able to regenerate the same model given the same inputs — which of these must be versioned or fixed? Select all that apply.#

Options

Pick every one that applies.

Show answer

Genuine reproducibility requires pinning the exact training data snapshot, since a live query result changes over time; the training code and its dependency versions, since a library upgrade can silently change numerical behavior; random seeds for any stochastic step, since unseeded randomness produces a different result on every run; and the exact hyperparameters and configuration for that run, tracked alongside its resulting metrics and artifact. The physical cloud region a training job ran in has no bearing on the resulting weights and is not a reproducibility concern.

Why:

Reproducibility means being able to regenerate the same model from the same recorded inputs, which requires pinning every input that can legitimately vary between runs: the data snapshot — 'today's orders table' is a moving target unless a specific version/timestamp is captured, typically via a data versioning tool or a timestamped extract; the code and its dependencies, since even a patch-version bump in a numerical library can shift results; random seeds, since unseeded stochastic steps mean the exact same code and data still produce a different model each run; and the hyperparameters/config for that specific run, tracked via an experiment-tracking tool so the run that produced a given metric/artifact can be traced back to exactly what configuration produced it. The physical cloud region a training job happened to execute in has no bearing on the resulting weights — model training is deterministic (or seeded-stochastic) computation, not something tied to a datacenter's geography, so pinning region has nothing to do with reproducibility.

Order the stages of a mature CI/CD-for-ML pipeline, from a code change to a model actively serving production traffic and being watched for drift.#

Put these in order

Show answer

A mature CI/CD-for-ML pipeline runs from a committed code or configuration change, through data validation checking the training data before training proceeds, through training the candidate model, through evaluating it against a metrics threshold or the currently-deployed model, through registering a candidate that clears the gate in the model registry, through a staged rollout such as a canary release, to monitoring the deployed model in production for performance and drift. Each stage depends on the one before it: evaluation needs a trained candidate to evaluate, registration should only happen for a candidate that cleared evaluation, and monitoring can only observe a model that is already live, feeding back into the next retraining trigger.

Why:

Each stage depends on the one before it having already happened: training on unvalidated data risks training a model on a silent data quality regression, so validation has to gate training rather than follow it. Evaluation only makes sense once a candidate model actually exists to evaluate, and registering a model as a tracked, versioned artifact should only happen for a candidate that has actually cleared the evaluation gate — registering everything regardless of quality would make the registry meaningless as a promotion record. Deployment naturally follows registration, since only a registered version should ever reach production, and staged rollout specifically precedes full monitoring at scale, limiting exposure before trusting the model with all traffic. Production monitoring is the last stage precisely because it can only observe a model that's already live, and it closes the loop by feeding back into the next training trigger — which is what makes this a pipeline rather than a one-shot process.

An online-streaming inference gateway collects incoming prediction requests into micro-batches and flushes them to the model server once a batch-size threshold is met. Any leftover requests remaining in the buffer at shutdown are flushed explicitly. Trace the following pipeline and determine the exact stdout output.#

class MicroBatcher:
    def __init__(self, batch_size):
        self.batch_size = batch_size
        self.buffer = []
        self.flush_count = 0

    def submit(self, request_id):
        self.buffer.append(request_id)
        if len(self.buffer) >= self.batch_size:
            self.flush()

    def flush(self):
        self.flush_count += 1
        self.buffer = self.buffer[self.batch_size:]

batcher = MicroBatcher(3)
for rid in range(1, 8):
    batcher.submit(rid)
batcher.flush()
print(f"remaining={batcher.buffer},flushes={batcher.flush_count}")
Show answer
remaining=[],flushes=3
Why:

Requests 1–7 are submitted one at a time. After submitting 3 the buffer reaches size 3, triggering flush #1 and clearing the buffer (buffer[3:] is empty). After submitting 6 the buffer reaches size 3 again, triggering flush #2 and clearing it. Request 7 leaves the buffer at [7]. The explicit final flush() is flush #3, clearing the buffer to []. The final state is remaining=[], flushes=3.

You are designing a real-time fraud-detection system for an online payments platform. Each transaction event arrives on a Kafka topic at a peak rate of 50 000 events/sec. A trained gradient-boosted model must score each event and return a fraud probability to the downstream decision service within 100 ms (p99) of the event being published. The model depends on both static features (merchant category, user account age) and dynamic features (rolling 60-second transaction count per user, velocity features derived from the event stream itself).#

Show answer

I would build the pipeline in three layers: ingestion and feature computation, online feature storage, and model serving.

Ingestion & feature computation: A Kafka cluster receives raw transaction events on a topic partitioned by user_id for locality. A Flink job consumes the stream and computes dynamic features — rolling 60-second transaction counts, sum of amounts in the last 5 minutes, and inter-arrival time — keyed by user_id using Flink's keyed windows and process functions. Flink provides exactly-once processing with checkpointing to a durable backend, so job restarts do not double-count aggregates. The Flink job writes each computed feature vector to an online feature store immediately after the window closes.

Online feature store: Redis (cluster mode) serves as the online feature store, storing per-user feature keys with TTLs that match the feature window. Static features (merchant category, account age) are pre-loaded from the offline warehouse (e.g. BigQuery) into Redis as a separate key namespace. At inference time, the serving layer issues a pipelined Redis MGET to fetch both static and dynamic features for the user in under 1-2 ms. An offline feature store (e.g. Feast or a warehouse table) mirrors the same feature definitions for nightly training, ensuring training-serving consistency through a shared feature spec.

Model serving: A horizontally-scaled inference service (e.g. NVIDIA Triton or a Python microservice using ONNX Runtime) runs behind a load balancer. Each instance pre-loads the current model artifact from the model registry at startup. When a request arrives, the service fetches features from Redis, applies the same feature transforms used in training (shared library or containerized transform code), runs the GBM forward pass, and returns the fraud probability. With feature lookup at ~2 ms and inference at ~5-10 ms, the 100 ms p99 budget comfortably accommodates network and queueing overhead. Instances auto-scale on CPU/memory and request-queue depth.

Model rollout: When the nightly training pipeline produces a new artifact, it is pushed to the model registry with a version tag. A canary deployment routes 5% of traffic to the new model version while the rest stays on the incumbent. Prometheus metrics track per-version latency and prediction distributions. If the canary's p99 latency or fraud-rate diverges beyond a threshold over a 30-minute window, traffic is automatically rolled back to 100% on the incumbent.

Monitoring: The serving layer emits per-request latency histograms to Prometheus, with alerts at p99 > 80 ms (a pre-threshold buffer below the 100 ms SLO). A separate drift-monitoring job consumes a sampled subset of the Kafka stream, computes Population Stability Index (PSI) on key features against the training baseline, and alerts when PSI exceeds 0.2. Prediction distribution is tracked similarly; a sudden shift in the fraud-probability histogram triggers investigation. All metrics flow into dashboards (Grafana) with PagerDuty alerts for SLO violations.

Why:

This design exercise tests the candidate's ability to architect a complete online streaming inference pipeline. The rubric covers the five critical dimensions: stream processing for dynamic features, low-latency feature storage, model serving with a latency budget, training-serving consistency, and production monitoring. A strong answer must concretely name technologies and explain the trade-offs, not just list buzzwords.

In the MLflow Tracking API (MLflow 2.x), to record one numeric value (such as accuracy or loss) under a string key for the currently active run, you call mlflow._____(key, value). Unlike log_param, which stores a configuration value that cannot be changed to a different value within the same run, this function takes a single numeric value argument and can be called repeatedly with the same key, with an optional step argument to record a time-series.#

Show answer

In the MLflow Tracking API (MLflow 2.x), to record one numeric value (such as accuracy or loss) under a string key for the currently active run, you call mlflow.**log_metric**(key, value). Unlike log_param, which stores a configuration value that cannot be changed to a different value within the same run, this function takes a single numeric value argument and can be called repeatedly with the same key, with an optional step argument to record a time-series.

Why:

mlflow.log_metric(key, value) records a single numeric value under a key for the active run, which is exactly the job described. The function accepts an optional step argument, and if the caller passes steps, each value is recorded at that point in the series; if omitted, the step defaults to 0. mlflow.log_param() is different: it stores a configuration value under a key, and logging the same key again with a different value in the same run raises an error (re-logging an identical value is allowed). The plural log_metrics takes a dictionary of many metrics at once rather than a single value argument, so the prompt's wording points only to the singular function.

A fraud model performs well offline but its live precision is noticeably worse than the offline evaluation predicted. The avg_txn_amount_7d feature is computed two different ways — once in the nightly training pipeline, once in the real-time serving path. Which line introduces the training-serving skew?#

1| # --- training pipeline (batch SQL, runs nightly) ---
2| # avg_txn_amount_7d = AVG(amount) over the trailing 7 full calendar days,
3| # excluding the current in-progress day
4|
5| # --- serving path (online feature computation, Python) ---
6| def avg_txn_amount_7d(user_id: str) -> float:
7|     txns = get_recent_transactions(user_id, days=7)
8|     return sum(t.amount for t in txns) / len(txns)

Options

Show answer

Line 7 — get_recent_transactions(user_id, days=7) in the serving path includes transactions from the current, still-in-progress day, while the training definition explicitly excludes it; the two pipelines compute a feature with the same name over two different windows, so the model sees a systematically different feature distribution at serving time than it was trained on

Why:

The two implementations agree on the feature's name and rough intent but not on its actual definition: training's avg_txn_amount_7d is a full 7-day window ending yesterday, while serving's version, via get_recent_transactions(user_id, days=7), includes whatever partial data exists for today too. That means the model is being served a feature value computed over a systematically different, and continuously shifting (it changes shape depending on what time of day serving happens), window than what it learned the relationship for during training — exactly the training-serving skew a feature store's shared, single feature definition exists to prevent. This is a subtler and more common real bug than a naming mismatch: both sides agree it's called 'avg_txn_amount_7d', so nothing about the pipeline flags an obvious inconsistency, and it only shows up as a mysterious offline/online performance gap, exactly as described. Dividing by len(txns) rather than a hardcoded 7 is actually correct — a true average, in either implementation, has to divide by however many transactions actually occurred in the window, not by a constant that would be wrong whenever fewer than 7 days of data exist. The function's name has no bearing on what value it computes. And skew is very much not limited to name mismatches — two implementations agreeing on a name but disagreeing on the underlying logic, exactly like this, is one of the most common real-world causes.

Ground-truth labels for your model's predictions arrive two weeks after the prediction is made. What should you monitor in production before those labels ever arrive, and why does each thing you name catch a problem accuracy alone would miss until it's already old news?#

Show answer

Before labels arrive, monitor the statistical distribution of the model's input features against the training-time distribution, using something like population stability index or a KS-test per feature, to catch data drift the moment the live input population starts to diverge from what the model was trained on — this can be checked on every request, with zero lag. Monitor the distribution of the model's own output predictions (the rate of positive predictions, the score distribution) as a proxy signal: a sudden shift there, even with no labels yet, is a strong early indicator that something changed either in the input population or in how the model is responding to it. Monitor serving health metrics — latency, error rate, feature-computation failures or nulls — since a broken feature pipeline degrades quality just as much as drift but is often a simpler, faster-to-fix infrastructure problem. And where available, monitor any proxy or leading-indicator business metric that correlates with eventual ground truth but resolves sooner, such as a customer support contact rate for a churn model. Each of these is valuable specifically because none of them wait on the label: by the time two-week-delayed accuracy shows a drop, the model has already been serving degraded predictions for two weeks with no visibility into it.

Why:

The core insight this tests is that 'wait for accuracy to drop' is not a monitoring strategy when labels are delayed — it's a strategy for finding out about a problem after it's already caused weeks of silent damage. The genuinely useful signals are the ones that don't need a label at all: input feature distribution (catches data drift), the model's own prediction distribution (a cheap, always-available leading indicator), and operational health metrics, plus any proxy metric that correlates with the eventual label but resolves faster. A strong answer names multiple signals and, crucially, explains why each one doesn't have the same lag problem accuracy does — that's the part that separates understanding the mechanism from reciting a list of monitoring buzzwords.

Related interview questions

Job market

See mlops salaries and hiring demand from live job postings.

The other 114 questions

This page shows 10 and marks what you pick. That's as far as a page can go. A free account opens the other 114 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.

Start with this topic

Free · the whole bank · 100 answers per 30 days, each marked with written feedback

Interview booked? Practise the job ad instead

What moved, monthly

One email a month when the bulletin comes out: what moved in the markets we track, and the new question topics we published. Confirm your address to join. Unsubscribe any time.