Deployment, MLOps and Model MonitoringIntroductionA predictive model creates value only when it operates reliably in the environment where decisions are made. A model that performs well in a notebook may fail after deployment because the data format changes, a scoring service becomes unavailable, customer behaviour shifts, or predictions are not connected to business action. Deployment is therefore not the final technical step in analytics; it is the transition from an experimental artifact to an operational information system. This chapter examines how predictive models are packaged, released, served, monitored, governed and improved. It focuses on reproducible pipelines, batch and real-time scoring, application programming interfaces (APIs), cloud platforms, model registries, and monitoring of performance, drift, reliability, security and business outcomes. The discussion is intended for business analytics students who must understand both the technical architecture and the organizational consequences of production models. Learning ObjectivesBy the end of this chapter, you should be able to: - Explain the role of deployment and MLOps in the model lifecycle.
- Design a reproducible machine-learning pipeline with versioned data, code and models.
- Select between batch, real-time and hybrid scoring architectures.
- Describe how APIs, containers, cloud services and model registries support deployment.
- Define and interpret monitoring metrics for model quality, data drift, reliability, security and business impact.
- Propose a governance and response process for model incidents and retraining.
1. From Model Development to Model OperationsDuring development, analysts normally work with a fixed dataset, controlled software environment and manually inspected results. Production systems are different. They receive new data continuously, interact with other applications, must meet service-level expectations and may influence customers, employees or financial decisions. The model lifecycle can be represented as a continuing sequence: problem definition → data acquisition → preparation → training → validation → registration → deployment → monitoring → review or retraining The sequence is not strictly linear. Monitoring can reveal a data-quality problem, an unfair outcome or a decline in business value. The organization may then revise the features, decision threshold, model, business process or original objective. MLOps is the set of practices, tools and organizational processes used to develop, deploy and operate machine-learning systems reliably. It combines software engineering, data engineering, machine learning, cloud operations, security and governance. MLOps is broader than simply putting a model behind an API. A useful distinction is: - Model code specifies the algorithm.
- Pipeline code specifies how data are transformed and how the model is trained and evaluated.
- Serving code specifies how predictions are requested and returned.
- Infrastructure code specifies the computing, networking, storage and permissions required to run the system.
- Governance documentation records intended use, assumptions, risks, approvals and monitoring responsibilities.
A production model is consequently a system, not merely a file containing coefficients or tree structures. 2. Reproducibility and the Production PipelineA result is reproducible when another authorized analyst can recreate it using the same approved inputs, code, configuration and environment. Reproducibility is essential for debugging, audit, comparison of model versions and responsible decision-making. A robust pipeline usually contains the following stages: - Ingestion: retrieve data from operational databases, files, event streams or external services.
- Validation: check schema, data types, permitted ranges, missingness, duplicates and freshness.
- Transformation: clean and encode variables using transformations defined during development.
- Feature construction: create model inputs, preferably through reusable feature logic.
- Training or inference: train a model or generate predictions from a registered model.
- Evaluation: calculate statistical, operational and business metrics.
- Publication: store predictions, model metadata and logs in approved locations.
- Monitoring: compare current operation with agreed baselines and thresholds.
The training and inference paths must apply compatible transformations. A common failure, called training-serving skew, occurs when a feature is calculated differently during training and production scoring. For example, training may use a customer's average spending over the previous 30 days, while production accidentally uses the average over the customer's entire history. The resulting prediction is not comparable with the validation result. VersioningAt minimum, the following should be versioned: | Asset | Examples | Purpose |
|---|
| Code | transformation and training scripts | Recreate logic | | Data | snapshot, partition or query definition | Identify training evidence | | Features | definitions and calculation windows | Prevent skew | | Model | binary artifact and parameters | Reproduce predictions | | Environment | package and runtime versions | Avoid dependency conflicts | | Configuration | thresholds, endpoints and schedules | Explain operational behaviour | | Documentation | model card, approval and intended use | Support governance |
A model identifier should be linked to all these assets. A label such as “latest model” is insufficient for audit because it changes over time. A stronger record might state that model credit-risk-2025-04 was trained on data snapshot D17, using code commit C842, feature definition F9, and package environment E3. Data validationValidation should occur before a model consumes data. Tests can include: - schema tests, such as expected columns and data types;
- range tests, such as age between 0 and 120;
- completeness tests, such as a missing-value rate below an agreed limit;
- uniqueness tests for identifiers;
- referential-integrity tests between related tables;
- distribution checks against a baseline; and
- freshness checks confirming that data arrived on schedule.
A failed validation should normally stop or quarantine a pipeline rather than silently produce predictions. The correct response depends on the risk of the application. A delayed recommendation may be acceptable; an unvalidated payment or safety decision may not be. Testing machine-learning systemsTesting extends beyond conventional software unit tests. Important tests include: - unit tests: verify individual functions;
- integration tests: verify connections between data, model and serving components;
- data tests: check the incoming data contract;
- performance tests: measure latency, throughput and resource use;
- model tests: check predictive quality and expected behaviour;
- fairness tests: compare outcomes or errors across relevant groups;
- security tests: identify unauthorized access, injection and leakage risks; and
- resilience tests: examine recovery from dependency or infrastructure failure.
The test set must be separated appropriately from training data. Repeatedly adjusting a system against the test set can turn it into an implicit development set and produce overly optimistic estimates. 3. Deployment ArchitecturesBatch scoringIn batch scoring, a group of records is collected and scored at scheduled intervals. The predictions may be written to a database, file, dashboard or campaign system. Batch scoring is suitable when decisions do not require immediate responses, such as: - overnight demand forecasts;
- weekly customer segmentation;
- monthly credit portfolio review; and
- daily inventory replenishment.
Advantages include simpler infrastructure, efficient bulk computation, easier reconciliation and lower per-record overhead. Limitations include delayed predictions, potentially stale data and the need to handle reruns without duplicating outputs. A batch process should use an idempotent design: rerunning the same approved input should not create inconsistent duplicate effects. Each scoring run should have a run identifier, input period, model version, start and completion time, record counts, error counts and output location. Real-time scoringIn real-time scoring, an application sends a request and receives a prediction within a defined latency target. A request may contain customer, transaction or device attributes, and the response may include a score, probability, decision and explanation metadata. Real-time scoring is appropriate for fraud screening at checkout, online recommendations, call-centre assistance and dynamic offers. It requires: - a stable API contract;
- fast feature retrieval;
- capacity management;
- authentication and authorization;
- timeouts and fallback behaviour;
- observability of requests and responses; and
- careful control of sensitive information in logs.
A real-time system should not assume that every dependency is available. It may return a conservative default, route the case for manual review or temporarily disable automated action. Fallbacks must be designed and approved in advance, because an accidental fallback can create systematic bias or financial loss. Streaming and hybrid architecturesStreaming systems process events as they arrive. They are useful for sensor alerts and transaction monitoring, where a continuously updated state is more relevant than a daily snapshot. A hybrid architecture may update features through a stream while using a real-time API for scoring, or may use real-time scoring for high-value events and batch scoring for the remainder. The choice should be based on decision latency, data freshness, transaction volume, cost, reliability requirements and the harm caused by delay. “Real time” is not automatically better: a batch design may be more accurate, auditable and economical when the business decision is periodic. 4. APIs, Containers and Cloud PlatformsAn API is a defined interface through which one software component requests a service from another. A prediction API commonly accepts structured input and returns structured output, for example: POST /v1/predictions
Request: {"customer_id":"C104", "amount":125.00, "channel":"web"}
Response: {"model_version":"risk-2025-04", "score":0.18, "decision":"review"}A good API contract specifies required fields, types, valid ranges, authentication, error codes, response time expectations and versioning rules. It should distinguish invalid input from temporary service failure. API versioning helps prevent a new model or schema from unexpectedly breaking client applications. A container packages application code, dependencies and runtime instructions into a portable unit. Containers reduce environment inconsistency, but they do not by themselves guarantee security, reproducibility or high availability. Images should be built from controlled sources, scanned for vulnerabilities, minimized, signed where appropriate and rebuilt when critical dependencies change. Cloud platforms provide managed capabilities such as object storage, databases, orchestration, serverless execution, queues, monitoring and identity management. Their benefits include elastic capacity and reduced infrastructure administration. Their risks include cost escalation, vendor dependence, misconfigured access controls, regional availability issues and difficulty understanding shared-responsibility boundaries. A cloud deployment should specify: - where data are stored and processed;
- which identities can access each resource;
- encryption in transit and at rest;
- network segmentation;
- backup and recovery procedures;
- retention and deletion policies; and
- expected cost and resource limits.
5. Model Registries and Release ManagementA model registry is a controlled repository for model artifacts, metadata, evaluation results, approval status and deployment history. It is not merely a file store. A registry supports collaboration and makes it possible to answer: Which model is running? Who approved it? What data and code produced it? When should it be retired? Typical lifecycle states include: - Development: under active experimentation.
- Validation: undergoing independent technical and risk checks.
- Approved: authorized for a defined use.
- Staged: deployed in a limited or shadow environment.
- Production: serving decisions.
- Retired: no longer serving but retained for audit where required.
A release process may use a champion-challenger arrangement. The champion is the current production model; the challenger is a candidate evaluated against the champion. A challenger may first operate in shadow mode, receiving the same inputs without influencing decisions. It can then be exposed gradually through a canary release or controlled experiment. Deployment should be reversible. A rollback plan identifies the previous approved version, required database compatibility, decision owner and communication procedure. Automatic promotion based only on a single accuracy metric is unsafe because operational reliability, fairness, cost and business effects may also matter. 6. Monitoring the Operational ModelMonitoring is the systematic collection and interpretation of evidence about whether a deployed model remains valid, reliable and appropriate. A dashboard is useful only when metrics have owners, baselines, thresholds and response actions. Data-quality monitoringData-quality monitoring checks whether the inputs are complete, timely, correctly typed and plausible. Important measures include missingness rate, invalid-value rate, duplicate rate, schema changes, event delay and unexpected category frequency. If N records are received and nmissing contain a missing value for a field, the missingness rate is: rmissing = nmissing / N Here, rmissing is dimensionless and lies between 0 and 1. It can be expressed as a percentage by multiplying by 100. The measure is meaningful only when the population and time window are defined. Data driftData drift is a change in the distribution of input variables over time. A simple numerical summary compares a current mean with a reference mean: ∆μ = μcurrent − μreference where both means refer to the same variable and units. This measure is easy to interpret but does not capture changes in variance, shape or categorical proportions. For categorical data, the population stability index is sometimes used: PSI = ∑ᵢ (pᵢ − qᵢ) ln(pᵢ / qᵢ) Here, pᵢ is the current proportion in category or bin i, qᵢ is the reference proportion, and both proportions must be positive and use identical bins. PSI is a screening measure, not a universal law. Its interpretation depends on context, sample size and the chosen bins; it does not prove that a model has become inaccurate. A distinction is important: - Covariate drift: the distribution of inputs changes.
- Concept drift: the relationship between inputs and the target changes.
- Label drift: the distribution of the target changes.
Concept drift can occur without obvious input drift, and input drift does not necessarily reduce predictive performance. For two probability distributions, the Kullback–Leibler divergence is: DKL(P || Q) = ∑ᵢ P(i) ln(P(i) / Q(i)) It is non-negative under its mathematical assumptions, is asymmetric, and becomes problematic when Q(i)=0 for a category with positive P(i). Smoothing or an alternative such as Jensen–Shannon divergence may be used. These measures indicate distributional difference, not causal explanation. Model-performance monitoringWhen actual outcomes arrive, monitor metrics appropriate to the decision. For binary classification, define: - TP: true positives;
- TN: true negatives;
- FP: false positives; and
- FN: false negatives.
Then: Precision = TP / (TP + FP) Recall = TP / (TP + FN) Precision answers: among predicted positives, how many were positive? Recall answers: among actual positives, how many were detected? Both denominators must be nonzero. Accuracy, (TP+TN)/(TP+TN+FP+FN), can be misleading under class imbalance. Monitoring should include a confusion matrix, calibration, subgroup results and confidence intervals or uncertainty where sample sizes are small. For regression, common measures include mean absolute error: MAE = (1/n) ∑ᵢ |yᵢ − ŷᵢ| where yᵢ is the observed value, ŷᵢ is the prediction and n is the number of evaluated cases. MAE has the same units as the target and is often easy for business users to interpret. Root mean squared error is: RMSE = √[(1/n) ∑ᵢ (yᵢ − ŷᵢ)²] RMSE also has the target's units but gives greater weight to large errors. These metrics should be calculated on outcomes that are correctly matched to the predictions and whose observation window is complete. Reliability and service monitoringOperational metrics include availability, request rate, error rate, timeout rate, queue length, CPU and memory use, throughput and latency. Percentiles are more informative than an average alone. For example, a service-level objective may require that the 95th-percentile latency be below 200 milliseconds during business hours. An availability rate for a defined period can be expressed as: Availability = successfulservicetime / scheduledservicetime The organization must define what counts as successful service. A technically successful response containing a stale or invalid prediction may not represent business availability. Business-impact monitoringA model may retain statistical accuracy while losing business value. Monitor measures such as approval rate, conversion, cost per intervention, prevented loss, inventory availability, customer complaints, manual-review volume and outcome disparities. Business metrics require a comparison group or credible baseline where possible. Correlation between deployment and an outcome is not automatically evidence that the model caused the change. 7. Alerting and Incident ResponseA useful alert has four components: metric, baseline, threshold and action. For example, “missingness of income exceeds 8% for two consecutive hourly windows; pause scoring, notify the data owner and use the approved manual-review process.” Thresholds should be calibrated to risk and expected variability. Too many alerts create alert fatigue; too few allow silent failure. A model incident may involve incorrect predictions, data leakage, unauthorized access, excessive latency, discriminatory outcomes or an inappropriate use case. An incident-response plan should define: - detection and triage;
- containment, such as pausing a pipeline;
- investigation and evidence preservation;
- communication to technical, business and risk owners;
- remediation and validation; and
- post-incident review.
Logs should support investigation without exposing unnecessary personal data. Prediction logs may include model version, timestamp, request identifier, feature-quality status and outcome status rather than storing every sensitive feature indefinitely. 8. Security, Privacy and Responsible GovernanceMachine-learning systems expand the attack surface because they combine data, code, models and automated decisions. Controls should include least-privilege access, strong identity management, encryption, secrets management, network controls, vulnerability scanning, dependency updates and tamper-evident audit logs. Threats include: - unauthorized model or data access;
- malicious input designed to manipulate predictions;
- extraction of model behaviour through repeated queries;
- poisoning of training data;
- leakage of personal information through logs or explanations; and
- insecure dependencies or exposed endpoints.
Privacy protection should follow data minimization, purpose limitation, retention control and appropriate access. Removing names does not necessarily anonymize data; combinations of attributes may re-identify individuals. Legal obligations vary by jurisdiction and sector, so deployment teams must involve privacy, legal and compliance specialists for high-impact uses. Governance should document intended use, excluded uses, target population, training data, known limitations, performance by relevant groups, human oversight, appeal mechanisms and retirement conditions. Fairness cannot be reduced to one universal metric. Different fairness criteria may conflict, especially when group base rates differ. The appropriate assessment depends on the decision, harms, legal context and stakeholder expectations. Human oversight must be meaningful. A human who merely approves every automated output without time, information or authority to challenge it does not provide effective oversight. Conversely, requiring manual review of every low-risk prediction may make the system impractical. Controls should be proportionate to potential harm. 9. Worked Example: Choosing a Scoring ArchitectureA retailer predicts whether an online transaction requires fraud review. The business receives 120,000 transactions per day. A review decision is useful within two seconds, but the fraud team also wants a nightly report for reconciliation. A real-time API is appropriate for the checkout decision because the response is time-sensitive. A nightly batch process is appropriate for reconciliation, aggregate reporting and cases that could not be scored in real time. The design is therefore hybrid. Suppose, during one monitoring window, the system generates: - TP = 720;
- FP = 180;
- FN = 280; and
- TN = 8,820.
There are 10,000 evaluated transactions. Precision is: Precision = 720 / (720 + 180) = 720 / 900 = 0.80 Thus, 80% of transactions sent for review were genuinely positive in this evaluation sample. Recall is: Recall = 720 / (720 + 280) = 720 / 1,000 = 0.72 Thus, the system detected 72% of the observed positive cases. The business must decide whether missing 28% of positive cases is more costly than sending additional legitimate transactions for review. That decision cannot be made from precision or recall alone; it requires estimates of fraud loss, review cost, customer friction and regulatory obligations. The production design should also monitor API latency, timeout rate, feature freshness, score distribution, review workload, confirmed fraud outcomes and customer complaints. A sudden rise in missing merchant-category values could invalidate the performance comparison even if the API remains available. 10. Illustrative Case: Demand Forecasting at Northstar FoodsThis is a fictional illustrative case. BackgroundNorthstar Foods operates 300 supermarkets and uses forecasts to plan replenishment of fresh products. Its data science team developed a gradient-boosting model that improved validation error over a seasonal baseline. The team initially planned to run it weekly. ProblemAfter deployment, store managers reported frequent stockouts in some locations and excess waste in others. The model dashboard showed a modest increase in mean absolute error, but no alert had been triggered. Investigation found three related problems: a supplier system had changed a product code, promotional events were not arriving on time, and the production transformation calculated a seven-day average differently from the training pipeline. AnalysisThe model registry showed that the deployed artifact was correct, but the feature pipeline was not the same version as the one used in validation. Input validation checked column names but not category coverage or event freshness. Furthermore, monitoring focused on overall error and did not separate products, stores or promotion periods. The aggregate metric concealed severe errors in a smaller but commercially important segment. Approach and solutionNorthstar introduced a versioned feature repository and a data contract with the supplier. The contract required an approved product-code dictionary, a promotion feed by a specified cutoff time and explicit treatment of missing events. The pipeline added schema, range, freshness and category-coverage tests. The model was registered with linked code, data snapshot, feature definition and environment identifiers. Deployment moved to a staged process: first shadow scoring, then a limited group of stores, followed by expansion after operational and business checks. Monitoring was redesigned to include: - MAE overall and by store and product category;
- forecast bias, where consistently positive or negative errors were investigated;
- missingness and freshness of promotional features;
- stockout rate, waste rate and emergency replenishment cost; and
- pipeline completion time and failed-record counts.
A fallback forecast based on the previous approved method was retained if validation failed. Store managers received a clear explanation of forecast status and a route for reporting anomalies. OutcomeThe immediate intervention reduced invalid forecasts and made failures visible earlier. Northstar did not assume that the new model was always superior; it retained the baseline as a challenger and compared performance by segment and season. The principal improvement was not only a more accurate algorithm but a more controlled operational system. Learning points- Model quality depends on the entire data and software pipeline.
- Aggregate metrics can hide segment-level operational failure.
- Data contracts and freshness tests are as important as model selection.
- A baseline and rollback path reduce operational risk.
- Business metrics such as waste and stockouts complement statistical metrics.
11. Contemporary Developments and Professional PracticeModern organizations increasingly use automated machine-learning pipelines, feature stores, managed model endpoints and observability platforms. Large language models add further concerns, including prompt injection, retrieval-data leakage, output evaluation, cost monitoring and the possibility of plausible but incorrect responses. The same principles remain relevant: version inputs and prompts, test failure modes, restrict access, monitor outcomes and provide human escalation. A mature analytics professional should be able to communicate across roles. With data engineers, the analyst discusses contracts, lineage and freshness. With software engineers, the analyst discusses APIs, testing and release procedures. With security and privacy specialists, the analyst discusses access, retention and threat models. With managers, the analyst explains business value, uncertainty, risk and operational ownership. A practical deployment checklist is: - Is the intended decision and owner clearly defined?
- Are training, validation and production transformations consistent?
- Are code, data, model and environment versioned?
- Has the model passed technical, business, fairness, privacy and security review?
- Is batch, real-time or hybrid scoring justified by decision latency and cost?
- Are API contracts, timeouts, fallbacks and rollback procedures documented?
- Are data quality, drift, performance, reliability and business metrics monitored?
- Does every alert have an owner and response action?
- Are logs sufficient for audit without excessive personal-data retention?
- Are retraining and retirement criteria explicit?
Challenges and LimitationsDeployment and monitoring involve unavoidable trade-offs. Real-time infrastructure can reduce latency but increase cost and complexity. More frequent retraining can respond to drift but may introduce instability or propagate recent data errors. A drift statistic may be sensitive to sample size and binning. Performance labels may arrive late or be affected by human interventions. Fairness metrics may conflict. Cloud services improve scalability but do not remove governance responsibility. Monitoring is also subject to Goodhart’s law: when a measure becomes a target, it may cease to represent the underlying objective. A team that optimizes only latency may sacrifice accuracy; a team that optimizes only approval rate may increase losses. A balanced monitoring design connects technical indicators to the actual purpose and harm profile of the decision. Chapter SummaryDeployment transforms a predictive model into an operational system. MLOps supports this transformation through reproducible pipelines, version control, testing, release management, observability and governance. Batch scoring is efficient for scheduled decisions, while real-time scoring supports time-sensitive applications; hybrid architectures often combine their strengths. APIs define reliable interfaces, containers improve portability, cloud platforms provide scalable services, and model registries preserve artifacts and approvals. Effective monitoring covers data quality, input drift, concept drift, predictive performance, service reliability, security, fairness and business impact. Metrics such as missingness rate, PSI, precision, recall, MAE and latency are useful only when their assumptions, baselines, thresholds and response actions are understood. A production model requires incident response, privacy protection, access control, human oversight and a documented path to rollback, retraining or retirement. The central professional lesson is that responsible predictive analytics is a lifecycle discipline rather than a one-time modeling exercise. Key TermsAPI: A defined interface through which software components exchange requests and responses. Batch scoring: Generating predictions for a collection of records on a schedule. Canary release: Gradually exposing a new version to a limited share of traffic. Concept drift: Change over time in the relationship between inputs and the target. Container: A portable package containing application code, dependencies and runtime instructions. Data contract: An agreed specification for data structure, meaning, quality and delivery. Data drift: Change in the distribution of model input data. Feature store: A managed system for defining, storing and serving reusable model features. Idempotent process: A process that can be repeated without creating inconsistent additional effects. MLOps: Practices for developing, deploying, operating and governing machine-learning systems. Model registry: A controlled repository of models, metadata, versions and approval states. Model serving: Providing predictions to applications or users. PSI: A distribution-comparison measure based on differences between current and reference proportions. Rollback: Returning a system to a previously approved version. Shadow mode: Running a model on live-like inputs without allowing it to affect decisions. Service-level objective: A defined target for operational performance, such as latency or availability. Training-serving skew: Difference between feature or processing logic used in training and production. Validation: Checking data, code, model behaviour and operational readiness against requirements. Review Questions5 Short Answer Questions- What is MLOps, and why is it broader than model deployment?
- Distinguish batch scoring from real-time scoring.
- What information should be stored in a model registry?
- Define training-serving skew and give one example.
- Why can accuracy be misleading for an imbalanced classification problem?
5 Long Answer Questions- Explain how version control, data validation and testing contribute to a reproducible machine-learning pipeline.
- Compare batch, real-time, streaming and hybrid scoring architectures, including their advantages and limitations.
- Design a monitoring framework covering data quality, drift, model performance, reliability and business impact.
- Discuss security, privacy, fairness and human-oversight requirements for a high-impact predictive application.
- Explain how a model registry, staged release, champion-challenger testing and rollback procedure support responsible deployment.
3 Analytical / Application Questions- A fraud model has high accuracy but low recall, while the cost of missed fraud is much greater than the cost of manual review. Which metrics and operational changes should the business consider before selecting a threshold?
- A production model shows no change in overall MAE, but one region reports a sharp increase in complaints and stockouts. How would you investigate the issue using segmentation, data-quality checks and business metrics?
- Design a deployment architecture for an online retailer that needs instant recommendations during browsing and a daily customer-value report. Justify the scoring modes, monitoring metrics, fallback strategy and governance controls.
Multiple Choice Questions with AnswersQuestion 1Which practice most directly reduces training-serving skew? A. Using different feature calculations for training and production B. Reusing versioned transformation logic in both training and serving C. Removing all validation tests before deployment D. Monitoring only the model's average latency Correct Answer: B. Reusing versioned transformation logic in both training and serving Question 2Which use case is generally most suitable for batch scoring? A. Fraud screening during checkout B. An online recommendation requiring an immediate response C. An overnight inventory replenishment forecast D. Real-time sensor safety shutdown Correct Answer: C. An overnight inventory replenishment forecast Question 3In the formula Precision = TP/(TP+FP), what question does precision answer? A. Among predicted positives, how many were actually positive? B. Among actual positives, how many were detected? C. What proportion of all cases was correctly classified? D. How quickly did the prediction service respond? Correct Answer: A. Among predicted positives, how many were actually positive? Question 4What is the primary purpose of a model registry? A. To replace all data-quality testing B. To store controlled model artifacts, metadata and approval history C. To guarantee that a model will never drift D. To encrypt every customer database automatically Correct Answer: B. To store controlled model artifacts, metadata and approval history Question 5Which situation is an example of concept drift? A. A column changes from numeric to text B. The distribution of an input variable changes, but its relationship with the target does not C. The relationship between inputs and the target changes over time D. An API response takes longer than its service target Correct Answer: C. The relationship between inputs and the target changes over time Question 6A scoring service receives 10,000 records, of which 250 have missing income values. What is the missingness rate? A. 0.25% B. 2.5% C. 4.0% D. 25% Correct Answer: B. 2.5% Question 7Why is shadow mode useful before a model affects live decisions? A. It allows evaluation on live-like inputs without changing business outcomes B. It guarantees perfect predictive accuracy C. It eliminates the need for a model registry D. It prevents all forms of data drift Correct Answer: A. It allows evaluation on live-like inputs without changing business outcomes Question 8Which metric has the same units as the regression target? A. MAE B. Precision C. Recall D. PSI Correct Answer: A. MAE Question 9Which response is most appropriate when a critical input validation test fails? A. Silently continue and delete the error log B. Quarantine or stop the pipeline and initiate the approved response C. Automatically increase the model threshold without review D. Ignore the failure if the API is available Correct Answer: B. Quarantine or stop the pipeline and initiate the approved response Question 10Why should business-impact monitoring accompany statistical model metrics? A. Statistical metrics are never useful B. A model can retain predictive performance while losing practical business value C. Business metrics always prove causation D. Business metrics eliminate the need for security controls Correct Answer: B. A model can retain predictive performance while losing practical business value
|