Differences between monitoring a traditional REST API and a production ML model

Awareness that ML fails via data decay, not code bugs.
Contrast latency/errors with ML signals like data drift and training-serving skew against baselines, noting ground truth delays.
What's really being asked
This question probes whether you recognize that machine learning systems are fundamentally probabilistic and data-dependent, meaning they can fail silently when input distributions shift even if infrastructure metrics look perfectly healthy. Interviewers want to see that you distinguish between operational health and model health, and that you understand the statistical nature of ML monitoring compared to deterministic software checks.
The full answer
Four distinctions in order. First, deterministic versus probabilistic behavior. Traditional REST APIs execute explicit code rules, so monitoring focuses on latency, throughput, error rates, and uptime. Machine learning models produce outputs learned from training data, so identical infrastructure metrics do not guarantee correct predictions. Second, data-centric signals. You should name specific ML monitoring signals such as data drift, prediction drift, data quality degradation, feature attribution drift, and training-serving skew. Third, baseline comparison methodology. Explain that ML monitoring relies on statistical tests or distance scores comparing production inference distributions against reference baselines like training or validation data, rather than simple threshold checks on CPU or memory. Fourth, ground truth latency. In traditional services, a five hundred error is immediate and obvious. In ML, true model performance often requires ground truth labels that arrive days or weeks later, creating a delayed feedback loop that standard API dashboards cannot expose.
The mistakes people make
The biggest red flag is answering with only standard SRE metrics like request latency and availability while completely ignoring data distributions. Another weak pattern is mentioning drift vaguely without explaining what distributions are being compared or why statistical tests are needed. Equating model staleness with a standard software bug is also incorrect; models degrade gradually as the world changes, not because of a single bad deploy.
What usually comes next
Expect the interviewer to ask how you would detect data drift without ground truth labels, or how you would handle a scenario where infrastructure metrics are green but business metrics are dropping. They may also probe whether you have implemented automated retraining pipelines triggered by drift thresholds, or how you would monitor a model deployed on edge devices with limited telemetry. Be ready to discuss which statistical tests you would use for continuous versus categorical features.
A concrete example
Suppose you deploy a fraud detection model. A traditional monitoring dashboard shows ninety nine point nine percent uptime and two hundred millisecond p99 latency. However, over two weeks, a new merchant category grows from one percent to forty percent of transaction volume. The model was never trained on this category, so input feature distributions shift significantly. Without ML-specific monitoring like data drift alerts comparing production features to the training baseline, this silent degradation goes unnoticed until chargeback rates spike three weeks later when ground truth labels finally arrive.
Interview question
A fraud detection model has 99.9% uptime and 200ms latency, but its catch rate drops sharply. Which monitoring approach would most likely reveal the root cause?
- a.Running unit tests on the model inference code to find a recent bug
- b.Checking the API gateway logs for unreported 500 errors
- c.Increasing the frequency of CPU and memory threshold alerts
- d.Comparing production transaction features to training distributions for data driftCorrect
Why? this is the answer
Healthy infrastructure with degrading predictions signals data drift, which is uncovered by statistically comparing production inputs to training baselines. Checking API logs for 500 errors is tempting because traditional REST APIs fail through explicit errors, but ML models degrade silently when input distributions shift even while returning successful responses.
Just read this? Test yourself on what you have been reading.
Read the original → learn.microsoft.com
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on mlops — each one lists the topics its interview covers.
See open roles