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
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.
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
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.
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
...
This section is not available anymore. Please use the main Exam Page.DP-100 Exam Questions
Log in to ExamTopics
Sign in:
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.
PI_Team
Highly Voted 1 year, 9 months agodreamlimit666
Most Recent 5 months, 1 week agokay1101
11 months, 1 week agoMatt2000
1 year, 3 months agoLion007
1 year, 4 months agodamaldon
1 year, 9 months ago