All questions
Showing of 42What are the main ways to serve a model, and when does batch win?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Three shapes cover nearly every case: batch scoring, online request-response, and streaming prediction. Batch runs on a schedule and writes predictions into a table or cache. Online serving computes a prediction inside a request, under a latency budget. Streaming scores events as they arrive on a queue and pushes results downstream.
Batch wins when the prediction does not depend on something the user just did. Churn scores, nightly recommendations, lead ranking, and credit pre-approvals all fit. You get cheap hardware, no tail-latency worry, and easy retries when a run fails. Reading a precomputed row is a key lookup, so the serving path stays trivial.
Batch loses the moment freshness matters. A score computed overnight is stale for a session that started at lunchtime. The usual cost of getting this wrong is a recommender that ignores everything the user did in the current session.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is model serving, and how does deployment differ from inference?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Serving is the running system that answers prediction requests. Inference is the single act of computing one prediction from one input. Deployment is the release event that puts a specific model version behind the serving system.
The distinction matters when something breaks. Inference is a math problem you can reproduce in a notebook. Serving is an availability problem with queues, timeouts, autoscaling, and a p99 latency number. Deployment is a change problem with rollback, approval, and a record of who shipped what.
Teams blur the three and then own the wrong thing. A model that scores well offline still needs capacity planning, warm-up, and a health check before it can carry traffic. A perfectly healthy service can also serve a stale model for months. That happens when nobody treated deployment as its own step with its own audit trail.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is model drift, and why does an accurate model get worse over time?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Model drift is the decay in a model's real-world performance after it ships. The weights never change. The world those weights were fitted to does change, so yesterday's good fit becomes today's mediocre one.
Three things move underneath a frozen model. User behaviour shifts with seasons, prices, and competitors. Upstream systems change, so a field that meant one thing now means another. The model also changes behaviour by acting on it, since users mostly see what it ranked highly.
So a launch-day accuracy of 92 percent is not a property of the model. It is a measurement of one moment. Treating it as permanent is how a fraud model quietly misses a scam pattern invented after training ended. Plan for decay from day one, and budget retraining as a running cost rather than a rescue project.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is experiment tracking, and what should you record for every training run?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Experiment tracking is the habit of recording every training run as a durable row, not a terminal log. Each run gets an id, and everything needed to explain its result hangs off that id.
Record at minimum:
- the git commit of the training code, including preprocessing
- the dataset version, or a snapshot of the query that built it
- every hyperparameter and the random seeds
- the environment: library versions and hardware
- metrics on a fixed evaluation set, plus the artifact and its hash
The payoff shows up weeks later. Someone asks why last month's model beat this week's, and the honest answer without tracking is a shrug. With it you diff two rows and find the changed learning rate or the extra week of data. It also ends the classic waste where a strong result cannot be reproduced because nobody recorded the branch.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a model registry, and why does every model need a version?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A model registry is the catalogue of trained models that are candidates for production or already in it. Each entry holds an immutable version, the artifact, its metrics, its stage, and a pointer back to the run that produced it.
Versions matter because a model is a moving binary with no compile-time contract. Two files named fraud_model.pkl can behave completely differently, and neither will complain. Without a version stamped into the serving logs, you cannot say which model produced a specific bad prediction.
The registry also gives deployment something stable to point at. The service asks for the production alias, not a file path on someone's laptop or a bucket key that got overwritten last week. That one layer of indirection turns rollback into a config change instead of a rebuild. It usually pays for itself during the first bad release.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What does reproducibility mean in MLOps, and why does it matter?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Reproducibility means rebuilding the same model artifact, or a statistically equivalent one, from a recorded starting point. It rests on three axes: the data, the code, and the environment. Miss any one and the rebuild drifts away from the original.
Data means the exact rows and values as they were then, not a table that has since been updated in place. Code means a commit hash, including the preprocessing that lives outside the training script. Environment means pinned library versions, because a minor bump in a numerical library can shift results.
It buys you three concrete things. Debugging a bad prediction needs the model that made it, not a lookalike. Regulated domains need proof of how a decision was produced. And any claim of improvement is empty if the baseline cannot be rerun. Bit-for-bit determinism on GPUs is expensive, so most teams settle for pinned inputs plus fixed seeds.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a feature store, and why do production ML systems need one?
What is training-serving skew, and why is it so easy to miss?
What do you monitor on a deployed model, and what should trigger an alert?
How do you detect data drift in production, and on which inputs?
What separates concept drift from data drift, and why does the distinction matter?
How does a feature store stop training-serving skew from creeping back in?
How do you make a training run reproducible six months later?
What do you weigh when choosing how to deploy a model into production?
Walk me through a production incident you owned on an ML system
Your model's accuracy has slid for three months - what do you do?
What should trigger a retrain - a schedule, a drift alarm, or a metric drop?
How do you automate retraining without letting a worse model reach users?
What is the difference between retraining a model and fine-tuning one?
How do you version datasets so an old training run can be rebuilt?
How does a model move from staging to production inside a registry?
What is model lineage, and what does it let you answer after an incident?
What is a shadow deployment, and when is the duplicated traffic worth it?
What is a canary rollout for a model, and how does blue-green differ?
How is A/B testing a model different from a canary rollout?
How do you roll back a model, and why is it harder than code?
What testing must a model pass before it is allowed into production?
How do you bring inference latency down in a real-time serving path?
How do you set and measure latency and availability SLOs for an inference service?
When does streaming prediction beat both batch jobs and request-response serving?
What should a prediction service return when the model is unavailable?
Walk through the path that carries a training run to a deployed model
Without ground-truth labels, how do you know the model is degrading?
How would you design a monitoring system covering many models in production?
Offline and online features disagree for the same request - how do you debug it?
How do latency and throughput trade off in a serving system under load?
Which fallbacks fire during a partial outage, and what does each degraded path return?
How do you tell concept drift apart from a broken feature pipeline?
How would you divide a latency budget across the parts of a serving path?
How does traffic tiering cut serving cost when capacity gets tight?
Which metrics should automatically halt a canary rollout, and at what thresholds?
Canary business metrics improve but p99 latency degrades - what do you do?
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
MLOps & Model Deployment cheatsheet
- 30-second mental model01
- Choose a serving shape02
- Reproducibility, versioning, registry03
- Features and skew04
- Monitoring05
- Retraining06
- Release mechanics07
- Latency, capacity, cost08
- Pitfalls that cost the most09
- + 3 more inside
36 of 42 MLOps & Model Deployment answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
- Full answers + code
- AI explanations, simpler or deeper
- 1,000 AI credits / month
- Cancel anytime
Change topic
Pick a different technology or stack. Your current topic stays put until you choose a new one.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.