Question
You manage an Azure Machine Learning workspace. You have an environment for training jobs which uses an existing Docker image.
A new version of the Docker image is available.
You need to use the latest version of the Docker image for the environment configuration by using the Azure Machine Learning SDK v2.
What should you do?
- A. Change the description parameter of the environment configuration.
- B. Modify the conda_file to specify the new version of the Docker image.
- C. Use the create_or_update method to change the tag of the image.
- D. Use the Environment class to create a new version of the environment. Correct
Explanation
Environment versions are immutable except for description and tags, so changing the image requires a new environment version: define an Environment with the new image and register it with create_or_update. Changing the description does not change the image, and the conda_file describes Python dependencies, not the base Docker image. Updating tags on the existing version is allowed but only changes metadata, not the image used.