exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 80 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an Azure Machine Learning workspace named Workspace1. Workspace1 has a registered MLflow model named model1 with PyFunc flavor.

You plan to deploy model1 to an online endpoint named endpoint1 without egress connectivity by using Azure Machine Learning Python SDK v2.

You have the following code:



You need to add a parameter to the ManagedOnlineDeployment object to ensure the model deploys successfully.

Solution: Add the with_package parameter.

Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: Answer: 🗳️

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
astone42
3 months, 2 weeks ago
Selected Answer: A
"Workspaces without public network access: Before you can deploy MLflow models to online endpoints without egress connectivity, you have to package the models (preview). By using model packaging, you can avoid the need for an internet connection, which Azure Machine Learning would otherwise require to dynamically install necessary Python packages for the MLflow models."
upvoted 1 times
...
Ben999
4 months ago
Selected Answer: A
without egress connectivity blue_deployment = ManagedOnlineDeployment( name="blue", endpoint_name=endpoint_name, model=model, instance_type="Standard_F4s_v2", instance_count=1, with_package=True, )
upvoted 1 times
...
D0ktor
5 months, 2 weeks ago
Selected Answer: B
No param called like that
upvoted 1 times
D0ktor
5 months, 1 week ago
My fault, the answer is yes, due to "egress connectivity" requirement
upvoted 1 times
...
...
f2a9aa5
10 months ago
A. To deploy an MLflow model to an online endpoint in Azure Machine Learning without egress connectivity, you can use model packaging. Here’s how: First, ensure that your workspace has no public network access. Package your MLflow model using the --with-package flag: az ml online-deployment create --with-package --endpoint-name $ENDPOINT_NAME -f blue-deployment.yml --all-traffic Replace $ENDPOINT_NAME with your desired endpoint name. This approach allows you to avoid the need for an internet connection while deploying MLflow models. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-mlflow-models-online-endpoints?view=azureml-api-2&tabs=cli
upvoted 3 times
...
cryodax
10 months, 2 weeks ago
The ManagedOnlineDeployment class requires the following parameters: name: str: Name of the deployment resource. model: str | Model | None: Model entity for the endpoint deployment, defaults to None. code_configuration: CodeConfiguration | None: Code Configuration, defaults to None. environment: str | Environment | None: Environment entity for the endpoint deployment, defaults to None. These are the minimum required parameters to create an instance of the ManagedOnlineDeployment class. All other parameters are optional and have default values. Please note that while model, code_configuration, and environment are optional in the constructor, they are typically necessary for a successful deployment. If not provided in the constructor, they should be set before deployment.
upvoted 3 times
...
cryodax
10 months, 2 weeks ago
Sorry, scoring_script is optional. Copilot response: When using the ManagedOnlineDeployment class with the pyfunc flavor, the parameters remain the same. However, the model and code_configuration parameters are particularly important: model: str | Model | None: This should be an instance of mlflow.pyfunc.PyFuncModel or the URI of the model saved with mlflow.pyfunc.save_model1. code_configuration: CodeConfiguration | None: This should be an instance of CodeConfiguration where the code_flavor is set to pyfunc.
upvoted 1 times
D0ktor
5 months, 1 week ago
https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.entities.managedonlinedeployment?view=azure-python Scoring script is not optional
upvoted 1 times
...
...
cryodax
10 months, 2 weeks ago
B. No Scoring script is a requirement for managedonlinedeployment
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