Model Deployment & MLOps Basics MCQs for the NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

Model deployment is the step that turns a trained model into a working service, and MLOps (machine learning operations) is the set of practices that keeps it reliable afterwards: serving, versioning, monitoring and retraining. It is the 16th of 17 topics in the AI / Machine Learning and Data Analytics area, which carries 10% of the NSCT according to HEC's Areas of Competencies.

Questions here are rarely about tool syntax. They describe a production situation and ask you to name the problem or pick the right strategy.

Serving

Serving means exposing a trained model so other systems can send inputs and receive predictions. There are two main patterns:

Online (real-time) inference Batch (offline) inference
When it runs Per request, on demand On a schedule, over many records
Key metric Latency (ms per request) Throughput and total job time
Example Fraud check during a card payment Overnight churn scores for every customer

A model is usually packaged with its code and libraries in a Docker container and served behind a REST API. Formats such as ONNX let a model trained in one framework run in another runtime.

Two numbers come up often. Throughput is requests handled per second. Little's law links the two: requests in flight = arrival rate x latency, so 400 requests/s at 50 ms means 400 x 0.05 = 20 requests in progress at once.

Exam angle: if the stem mentions a user waiting or a strict time limit, the answer is online inference; if it mentions "nightly" or "all customers", it is batch.

Deployment strategies

Releasing a new model version safely is its own skill.

Strategy What users see Main benefit
Blue-green All traffic switches from old to new at once Instant rollback by switching back
Canary A small share (say 5%) gets the new model first Limits damage while you watch metrics
Shadow Only the old model; the new one's outputs are logged Real-traffic test with zero user risk
A/B test Users split between versions Measures business impact, such as conversions

A model registry (for example in MLflow) stores each version with its metrics, data version and stage, which is what makes a quick rollback possible.

Exam angle: when wrong predictions could harm people, shadow deployment is the only option that tests on live traffic without exposing anyone.

Monitoring

Once live, a model is watched on three levels: system health (latency, errors), data (input and prediction distributions) and model quality (accuracy once labels arrive). Labels often arrive late, so a loan model's real outcome may take a year. Input and prediction distributions are your early warning.

Latency is reported with percentiles, not just the mean. In the 20 latencies on our quiz, two slow requests (90 ms and 250 ms) pull the mean to 29.95 ms while the median is 14.5 ms.

Exam angle: if a question says labels are not available yet, rule out accuracy, recall and confusion matrices.

Drift

Drift means the production world no longer matches the training data. Know three kinds apart:

Term What changes Example
Data drift (covariate shift) P(X), the inputs More young users than in training
Concept drift P(y given X), the input-to-target rule Same houses now sell for 15% less after rate rises
Training-serving skew Not the world, but your feature code Serving passes raw age; training used scaled age

A common drift score is the Population Stability Index (PSI): the sum over bins of (actual - expected) x ln(actual / expected). If four bins move from 25% each to 10%, 20%, 30% and 40%, PSI = 0.228. Practitioners often read below 0.1 as stable, 0.1 to 0.25 as moderate and above 0.25 as significant, but these cut-offs are industry convention, not a textbook rule.

Exam angle: drift is a warning, not proof of harm. If measured accuracy holds, investigate before rolling back.

Pipelines

An ML pipeline automates the steps from data to deployed model: ingest, validate data, transform features, train, evaluate, register, deploy. MLOps adds continuous training (CT) to DevOps's CI/CD, so the model is retrained when drift or performance crosses a threshold, and promoted only if it passes evaluation. A feature store keeps one feature definition for training and serving, which prevents skew. Reproducing a model needs the code commit, data version, hyperparameters and environment.

Exam angle: any ordering that deploys before evaluating is wrong.

Common traps

Worked examples

1. Understanding. Which deployment strategy sends a copy of live requests to a new model but never returns its predictions to users? Answer: shadow deployment. Canary and A/B tests return the new model's output to some users, and blue-green switches everyone over.

2. Application. A batch job must score 900,000 records at 1,500 records per second. How long does it take? Answer: 10 minutes. 900,000 / 1,500 = 600 seconds, and 600 / 60 = 10 minutes.

3. Analysis. A credit model's offline AUC is 0.98, but in production it performs barely better than chance. One feature is "account closed within 6 months of the decision". What went wrong? Answer: target leakage. The feature uses future information that does not exist at prediction time, so it inflates offline scores and is empty or wrong in production. Drift would cause gradual decline, not instant failure.

Practise

The quiz below has 100 questions on this topic, filterable by tier and difficulty.

Practise: 100 questions

Interactive quiz loading. The first 10 questions are shown below.

  1. In MLOps, what does 'model serving' mean?

    1. Making a trained model available to receive inputs and return predictions, for example behind a REST API
    2. Training the model again on the newest data
    3. Storing the raw training data in a data lake
    4. Searching for the best hyperparameters before training
    Show answer

    Answer: A. Making a trained model available to receive inputs and return predictions, for example behind a REST API

    Serving is the deployment step that exposes a trained model so other systems can send it inputs and get predictions back, usually through an API endpoint or a batch job. Retraining, data storage and tuning happen before serving.

  2. Which of these is an example of batch (offline) inference?

    1. Scoring every customer for churn risk overnight and writing the scores to a table
    2. Checking a card payment for fraud while the customer waits at the till
    3. Replying to a user's message in a chatbot
    4. Choosing product recommendations as a web page loads
    Show answer

    Answer: A. Scoring every customer for churn risk overnight and writing the scores to a table

    Batch inference scores many records on a schedule and stores the results for later use, so per-request latency does not matter. The other three need an answer within milliseconds for one request at a time, which is online (real-time) inference.

  3. What is data drift (also called covariate shift)?

    1. The relationship between inputs and the target P(y|X) changes over time
    2. The distribution of the input features P(X) changes, while the input-to-target relationship P(y|X) stays the same
    3. The model's weights change slowly while it is being served
    4. Some training labels were entered incorrectly
    Show answer

    Answer: B. The distribution of the input features P(X) changes, while the input-to-target relationship P(y|X) stays the same

    Data drift or covariate shift means production inputs look different from the training inputs, for example younger users than before, while the rule linking inputs to outcomes is unchanged. A change in P(y|X) is concept drift, a separate idea.

  4. Which statement defines concept drift?

    1. The number of prediction requests per second rises
    2. The mapping from inputs to the target changes, so the same input now has a different correct output
    3. The input features follow a different distribution but the mapping to the target is unchanged
    4. Feature values are computed differently at serving time than during training
    Show answer

    Answer: B. The mapping from inputs to the target changes, so the same input now has a different correct output

    Concept drift is a change in P(y|X): the world's rule changes, so identical inputs deserve different outputs (for example, fraud patterns change after a new scam appears). A shifted input distribution is data drift, and different feature code is training-serving skew.

  5. What is the main job of a model registry?

    1. Hold the raw images and text used for training
    2. Compute features in real time for online requests
    3. Show live CPU and GPU usage of the training cluster
    4. Store versioned models with metadata such as metrics, data version and stage (staging or production)
    Show answer

    Answer: D. Store versioned models with metadata such as metrics, data version and stage (staging or production)

    A model registry (for example in MLflow) is a catalogue of model versions. Each entry records the artefact, its lineage and metrics, and its lifecycle stage, so teams can promote, compare and roll back models. Feature computation belongs to a feature store.

  6. Which tool is commonly used to package a model, its code and its dependencies into a portable image that runs the same way on any server?

    1. Git
    2. Jupyter Notebook
    3. Docker
    4. pandas
    Show answer

    Answer: C. Docker

    Docker builds a container image that bundles the model, the serving code, the Python version and the libraries, so 'it works on my machine' problems disappear. Git versions code, Jupyter is an interactive notebook and pandas is a data library.

  7. What is a canary deployment of a new model version?

    1. Running two full environments and switching all traffic from old to new at once
    2. Sending a copy of live traffic to the new version without returning its predictions to users
    3. Sending a small share of live traffic to the new version first and widening it only if metrics stay healthy
    4. Deleting the old version as soon as the new one is uploaded
    Show answer

    Answer: C. Sending a small share of live traffic to the new version first and widening it only if metrics stay healthy

    A canary release exposes, say, 5% of users to the new model and watches errors, latency and business metrics before increasing the share. Switching everything at once between two environments is blue-green; copying traffic silently is shadow deployment.

  8. In a shadow deployment, what happens to the new model's predictions?

    1. They replace the live model's output for 10% of users
    2. They are returned to every user immediately
    3. They are logged and compared with the live model, but users only ever see the live model's output
    4. They are discarded without being stored
    Show answer

    Answer: C. They are logged and compared with the live model, but users only ever see the live model's output

    The shadow model receives a copy of real production requests and its outputs are recorded for comparison, so you can test it on real traffic with no risk to users. Serving its output to a slice of users would be a canary or A/B test.

  9. What is training-serving skew?

    1. A mismatch between how data is processed during training and how it is processed when the model is serving
    2. The gap between training accuracy and test accuracy
    3. A change in user behaviour after the model is launched
    4. The delay between a prediction and the arrival of its true label
    Show answer

    Answer: A. A mismatch between how data is processed during training and how it is processed when the model is serving

    Training-serving skew happens when the serving path transforms features differently from the training path, for example a different scaler, missing default values or a re-written feature in another language. The model then sees inputs it was never trained on.

  10. In MLOps, what does continuous training (CT) add to CI/CD?

    1. Running unit tests every time code is pushed
    2. Automatic retraining of the model on fresh data through a pipeline, followed by validation
    3. Deploying code changes to production automatically
    4. Keeping GPUs running all the time so training never stops
    Show answer

    Answer: B. Automatic retraining of the model on fresh data through a pipeline, followed by validation

    CI (integration) and CD (delivery) come from DevOps and deal with code. ML systems also go stale as data changes, so MLOps adds continuous training: a pipeline that retrains on new data, evaluates the result and registers it for deployment.

FAQs

What is the difference between data drift and concept drift?

Data drift (covariate shift) means the distribution of inputs changes, for example a new customer segment arrives, while the rule linking inputs to outcomes stays the same. Concept drift means that rule itself changes, so identical inputs now deserve a different answer, as when fraudsters change tactics. Data drift can be spotted without labels; concept drift usually needs labels to confirm.

Is MLOps the same as DevOps?

No. MLOps borrows DevOps practices such as automation, CI/CD and monitoring, then adds what ML needs: data and model versioning, data validation, experiment tracking, continuous training and drift monitoring. In ML, behaviour depends on data as well as code, so a system with unchanged code can still degrade as the data changes.

Do I need to know specific tools like MLflow or Kubernetes?

Know what each class of tool does rather than its commands: Docker packages a model, Kubernetes runs and scales containers, MLflow tracks experiments and hosts a registry, DVC versions data, and a feature store serves consistent features. Questions are far more likely to test the concept a tool solves than its syntax.

Next step

Continue to the next official topic, AI Ethics, Security & Privacy MCQs, go back to the AI & ML MCQs hub, or test yourself across all areas in an NSCT mock test.