Designing and Implementing a Data Science Solution on Azure — Question 90
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?
Answer options
- 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.
Correct answer: B
Explanation
The correct answer is B because the Environment class is specifically designed to manage and create environments in Azure Machine Learning, allowing for updates including new Docker image versions. Option A is incorrect as modifying the conda_file does not directly update the Docker image. Option C is wrong because while create_or_update is used for updating, it does not directly create a new environment version, and Option D does not affect the image version at all.