Understanding MLOps
This lesson explains why machine learning systems need operational practices, how the machine learning life cycle forms a loop, how MLOps maturity is measured, and how GenAIOps extends MLOps to generative AI.
Learning outcomes
After completing this lesson, you will be able to:
- Explain why a model depends on code, data and configuration.
- Describe the stages of the machine learning life cycle.
- Identify the characteristics of each MLOps maturity level.
- Distinguish what GenAIOps versions from what MLOps versions.
Why machine learning needs operations
A traditional application changes only when its code changes. A machine learning model also changes when its data changes, and its quality can decline while the code stays the same, because the world it learned from moves on. A model is therefore the product of three things: code, data and configuration such as hyperparameters and the software environment. Reproducing or fixing a model requires all three to be versioned and recorded together.
MLOps is the set of practices that makes this manageable: version control for code and definitions, versioned data and environments, automated and repeatable training, recorded experiments, controlled deployment, and monitoring that detects when a model needs retraining. Without these practices, a model often exists only as a file on a data scientist's laptop, trained once from data that nobody can reproduce, and deployed by hand.
The AI-300 exam, Operationalizing Machine Learning and Generative AI Solutions, measures these practices on two platforms. Azure Machine Learning is used for traditional models that you train yourself, and Microsoft Foundry is used for generative AI applications and agents built on foundation models. Microsoft calls the two disciplines together AI operations (AIOps).
The machine learning life cycle
The life cycle is a loop rather than a line, because monitoring in production feeds back into data preparation and training. The following steps describe one turn of the loop, and each step corresponds to a group of exam skills.
-
Provision the platform
Create workspaces, storage connections, compute and access control, preferably with infrastructure as code.
-
Prepare data
Register versioned data assets and build reusable preparation steps.
-
Train and track
Run training as jobs, track parameters and metrics with MLflow, and tune hyperparameters.
-
Register and assess
Register the chosen model with its lineage and assess it for errors and fairness.
-
Deploy
Serve the model from an online or batch endpoint, rolling out new versions gradually.
-
Monitor and retrain
Detect drift and performance loss, and trigger retraining when thresholds are exceeded.
Automation connects the steps. A change to training code, merged through a pull request, can start a pipeline that trains, evaluates and registers a model; approval can start a deployment; and a monitoring alert can start retraining. The more of the loop that runs automatically, the more mature the MLOps practice.
MLOps maturity levels
Microsoft describes an MLOps maturity model with five levels. It is useful for recognizing what a scenario lacks, because exam questions often describe an organization at one level and ask for the next improvement.
| Level | Description | Typical characteristics |
|---|---|---|
| 0: No MLOps | Manual, disconnected work | Models trained and deployed by hand; no tracking or versioning |
| 1: DevOps but no MLOps | Application code is automated, models are not | CI/CD for the application, but models still delivered manually |
| 2: Automated training | Training is repeatable | Managed training jobs, experiment tracking, versioned data and environments |
| 3: Automated model deployment | Release is automated | Models deployed through pipelines with tests and controlled rollout |
| 4: Full MLOps automated operations | The loop closes itself | Monitoring triggers retraining and redeployment with approval gates |
Each level builds on the previous one. An organization at level 1 gains the most by making training reproducible before it automates deployment, because automating the release of a model that cannot be reproduced only makes mistakes faster.
From MLOps to GenAIOps
Generative AI operations (GenAIOps) applies the same discipline to applications built on large language models. Most teams do not train the foundation model, so the versioned artifacts change: instead of training data and model weights, the team versions prompts, model deployment choices, retrieval configuration, evaluation datasets and, sometimes, fine-tuning data.
The two share their foundations: infrastructure as code, Git, GitHub Actions, managed identities, private networking, evaluation before release, gradual rollout and production monitoring. The exam tests them in both settings, so a principle learned in one module often answers a question in another.
Identifying the next MLOps improvement
A bank's data scientists train a credit risk model in notebooks on their own compute instances, save the model file to a shared folder, and email it to an engineer who deploys it. Last month, auditors asked which data had trained the production model, and nobody could answer. The bank wants to fix this first, with the least disruption.
The organization is at maturity level 0 or 1. The audit failure is about reproducibility and lineage, so the first improvement is automated, tracked training: register the training data as a versioned data asset, move the notebook code into a script that runs as an Azure Machine Learning job with a versioned environment, track it with MLflow, and register the resulting model from the job output, which records the job, data and code that produced it.
Building a blue-green deployment pipeline would be valuable later, but it does not answer which data trained the model. Adding drift monitoring would detect future problems but not explain the current model. Both belong to higher maturity levels that depend on reproducible training.
A team versions its training code in Git but trains on whatever is in a shared folder on the day. Which part of reproducibility is missing?
Show answer
Data versioning. A model depends on code, data and configuration, so retraining from the same commit on changed data gives a different model. Each training run should reference a versioned data asset.
Exam Tips
Remember for the exam
- A model depends on code, data and configuration; MLOps versions all three.
- The life cycle is a loop: monitoring feeds retraining.
- Maturity levels run from 0 (no MLOps) to 4 (full automated operations).
- GenAIOps versions prompts, deployments, retrieval and evaluation data instead of trained weights.