exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 92 discussion

Actual exam question from Microsoft's DP-100
Question #: 92
Topic #: 2
[All DP-100 Questions]

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. 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
evangelist
5 months ago
Selected Answer: B
B is the correct answer
upvoted 2 times
...
sl_mslconsulting
5 months, 2 weeks ago
Selected Answer: C
Link: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-environments-v2?view=azureml-api-2&tabs=python#create-an-environment-from-a-docker-image Code: env_docker_image = Environment( image="pytorch/pytorch:latest", name="docker-image-example", description="Environment created from a Docker image.", ) ml_client.environments.create_or_update(env_docker_image)
upvoted 2 times
...
deyoz
8 months ago
Selected Answer: B
For environments, only description and tags can be updated. All other properties are immutable; if you need to change any of those properties you should create a new version of the environment. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-environments-v2?view=azureml-api-2&tabs=python
upvoted 1 times
...
dporwal
10 months, 2 weeks ago
Selected Answer: B
B is the correct answer
upvoted 1 times
...
NullVoider_0
10 months, 2 weeks ago
Selected Answer: C
Since the environment already uses a Docker image, the proper way to update to the latest image version is to call the create_or_update() method on that environment configuration object. This allows changing the image tag/version to point to the new Docker image. Please change the answer to C it's misleading.
upvoted 1 times
Sara_E
8 months, 3 weeks ago
For environments, only description and tags can be updated. All other properties are immutable; if you need to change any of those properties you should create a new version of the environment => https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-environments-v2?view=azureml-api-2&tabs=python
upvoted 2 times
...
...
Mal42
1 year, 2 months ago
On exam 18 Aug 2023
upvoted 3 times
...
Ahmed_Gehad
1 year, 3 months ago
Selected Answer: B
We set the image in the Environment class as follows from azure.ai.ml.entities import Environment env_docker_image = Environment( image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04", name="aml-docker-image-example", description="Environment created from a Azure ML Docker image.", ) ml_client.environments.create_or_update(env_docker_image)
upvoted 4 times
hiyoww
10 months, 2 weeks ago
seem ans should be both B and C
upvoted 1 times
...
...
damaldon
1 year, 3 months ago
Correct. You need to create a new version using the Environment class. env_docker_image = Environment( image="pytorch/pytorch:latest", name="docker-image-example", description="Environment created from a Docker image.", ) ml_client.environments.create_or_update(env_docker_image)
upvoted 3 times
...
pranav33
1 year, 4 months ago
Selected Answer: B
B looks correct
upvoted 3 times
...
Batman160591
1 year, 4 months ago
B. Use the Environment class to create a new version of the environment. To update the Docker image, you can create a new version of the environment by using the Environment class provided by the Azure Machine Learning SDK. You can update the Docker image reference in the environment's Docker section to use the latest version.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago