The dev, test and prod workspaces are in different regions. A model trained in dev must be promoted to prod without retraining, and prod should use the same tested environment. Which two steps fit? (Select TWO.)
- Exam domain
- Design and implement an MLOps infrastructure15–20% of the exam
- Difficulty
- Hard
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Share assets across workspaces by using registries.
Promotion across environments is the core of MLOps. The exam checks you know the asset-sharing tool.
Why A and E are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
Register the environment in the same registry
Register the model in an Azure Machine Learning registry
Registries hold models, components, environments and data for use across workspaces and regions, so the same assets move to prod unchanged.
Remember: Cross-workspace promotion: registries for models and environments.
How it works
An Azure Machine Learning registry stores models, components, environments and data outside any one workspace.
Workspaces in different regions can use assets from a registry the registry is replicated to.
Promoting the exact registered model and environment means prod runs what was tested.
Clues in the question
The words that point to the answer, and what each one tells you.
- Different regions
- Assets must live outside a single workspace.
- Without retraining
- Move the artifact, not the code.
In detail
- A registry can be replicated to several regions.
- Prod deploys the registry model directly, so what was tested is what runs.
Side by side with look-alikes
| Asset | Shared through the registry? |
|---|---|
| Model | Yes |
| Environment | Yes |
| Component | Yes |
| Data | Yes |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Register the environment in the same registryRight
Registries hold models, components, environments and data for use across workspaces and regions, so the same assets move to prod unchanged.
B. Download the model and email it to the prod teamWrong
Email has no versioning, access control or lineage.
C. Retrain the model in the prod workspaceWrongMost tempting
Retraining produces a different model from the one that was tested.
Why it tempts: Retraining in prod keeps everything inside one workspace, which sounds tidy. But the result is a new, untested model.
D. Copy the dev workspace's storage account key to prodWrong
Sharing storage keys is insecure and does not version assets.
E. Register the model in an Azure Machine Learning registryRight
Registries hold models, components, environments and data for use across workspaces and regions, so the same assets move to prod unchanged.
In practice
- Give the prod deployment pipeline read access to the registry, and dev pipelines write access, so only promoted assets reach prod.
Use case
An illustrative scenario, not a real incident.
A retailer promotes forecast-model version 7 from the dev registry entry straight to a prod online endpoint in another region.
See how it works
flowchart LR D["Dev workspace: train and evaluate"] --> R["Registry: model v7 and environment v3"] R --> T["Test workspace"] R --> P["Prod workspace in another region"]
How to read this chart
- "Dev workspace: train and evaluate" leads to "Registry: model v7 and environment v3".
- "Registry: model v7 and environment v3" leads to "Test workspace" and "Prod workspace in another region".