ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 16 - DP-100 discussion

Report
Export

You train a model and register it in your Azure Machine Learning workspace. You are ready to deploy the model as a real-time web service.

You deploy the model to an Azure Kubernetes Service (AKS) inference cluster, but the deployment fails because an error occurs when the service runs the entry script that is associated with the model deployment.

You need to debug the error by iteratively modifying the code and reloading the service, without requiring a re-deployment of the service for each code update.

What should you do?

A.
Modify the AKS service deployment configuration to enable application insights and re-deploy to AKS.
Answers
A.
Modify the AKS service deployment configuration to enable application insights and re-deploy to AKS.
B.
Create an Azure Container Instances (ACI) web service deployment configuration and deploy the model on ACI.
Answers
B.
Create an Azure Container Instances (ACI) web service deployment configuration and deploy the model on ACI.
C.
Add a breakpoint to the first line of the entry script and redeploy the service to AKS.
Answers
C.
Add a breakpoint to the first line of the entry script and redeploy the service to AKS.
D.
Create a local web service deployment configuration and deploy the model to a local Docker container.
Answers
D.
Create a local web service deployment configuration and deploy the model to a local Docker container.
E.
Register a new version of the model and update the entry script to load the new version of the model from its registered path.
Answers
E.
Register a new version of the model and update the entry script to load the new version of the model from its registered path.
Suggested answer: B

Explanation:

How to work around or solve common Docker deployment errors with Azure Container Instances (ACI) and Azure Kubernetes Service (AKS) using Azure Machine Learning.

The recommended and the most up to date approach for model deployment is via the Model.deploy() API using an Environment object as an input parameter. In this case our service will create a base docker image for you during deployment stage and mount the required models all in one call. The basic deployment tasks are:

1. Register the model in the workspace model registry.

2. Define Inference Configuration:

a) Create an Environment object based on the dependencies you specify in the environment yaml file or use one of our procured environments.

b) Create an inference configuration (InferenceConfig object) based on the environment and the scoring script.

3. Deploy the model to Azure Container Instance (ACI) service or to Azure Kubernetes Service (AKS).

asked 02/10/2024
Nathalie Yip
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first