exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 106 discussion

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

You manage an Azure Machine Learning workspace.

You need to define an environment from a Docker image by using the Azure Machine Learning Python SDK v2.

Which parameter should you use?

  • A. properties
  • B. image
  • C. build
  • D. conda_file
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
PI_Team
Highly Voted 1 year, 9 months ago
Correct. The main difference between using the build and image parameters when defining an environment using the Azure Machine Learning Python SDK v2 is whether you want to define the environment from a Dockerfile or a Docker image. If you want to define an environment from a Dockerfile, you should use the build parameter and set it to a dictionary that specifies the contents of the Dockerfile using the dockerfile key. If you want to define an environment from a Docker image, you should use the image parameter and set it to the name of the Docker image you want to use. SaM
upvoted 16 times
...
dreamlimit666
Most Recent 5 months, 1 week ago
Selected Answer: B
The correct answer is: B. image When defining an environment from a Docker image using the Azure Machine Learning Python SDK v2, the image parameter should be used. This parameter specifies the Docker image that will be used as the base environment for running the experiment.
upvoted 1 times
...
kay1101
11 months, 1 week ago
The answer is correct. define from docker image using image parameter. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-environments-v2?view=azureml-api-2&tabs=python
upvoted 1 times
...
Matt2000
1 year, 3 months ago
image is correct. Reference: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-environments-v2?view=azureml-api-2&tabs=python
upvoted 1 times
...
Lion007
1 year, 4 months ago
Selected Answer: C
The Correct answer is: C. build Justification: When defining an environment from a Docker image using the Azure Machine Learning Python SDK v2, the appropriate parameter to use is build. This is because in the context of the Azure Machine Learning environment, the build parameter is used to specify the configuration for building the environment, including specifying the Docker image to be used. C. build: This is the correct parameter. Within the Environment class in SDK v2, the build parameter is used to define the build context, which includes specifying the Docker image. When creating an environment from a Docker image, you typically use the BuildContext class within build to specify the Docker image.
upvoted 1 times
...
damaldon
1 year, 9 months ago
Correct. 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
...
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