
Answer-first summary for fast verification
Answer: Use the Environment class to create a new version of the environment.
According to Microsoft documentation and the community discussion consensus (with B receiving 79% of votes and multiple upvoted comments supporting it), environments in Azure ML are immutable for most properties including the Docker image. Only description and tags can be updated directly. To change the Docker image version, you must create a new version of the environment using the Environment class with the updated image reference, then use create_or_update() to register it. Option C is incorrect because create_or_update() alone cannot change the image tag on an existing environment - it requires creating a new environment object first. Option A is incorrect because modifying the conda_file doesn't affect the Docker image. Option D only changes metadata, not the actual image.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You have an Azure Machine Learning workspace with an existing environment for training jobs that uses a specific Docker image. A new version of this Docker image is now available.
Using the Azure Machine Learning SDK v2, how can you update the environment to use the latest version of the Docker image?
A
Modify the conda_file to specify the new version of the Docker image.
B
Use the Environment class to create a new version of the environment.
C
Use the create_or_update method to change the tag of the image.
D
Change the description parameter of the environment configuration.