exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 19 discussion

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

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

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
Bizmaercq
Highly Voted 4 years, 3 months ago
The right answer is D. Deployment and runtime errors can be easier to diagnose by deploying the service as a container in a local Docker instance, like this: from azureml.core.webservice import LocalWebservice deployment_config = LocalWebservice.deploy_configuration(port=8890) service = Model.deploy(ws, 'test-svc', [model], inference_config, deployment_config) You can then troubleshoot runtime issues by making changes to the scoring file that is referenced in the inference configuration, and reloading the service without redeploying it (something you can only do with a local service): service.reload() print(service.run(input_data = json_data))
upvoted 50 times
Shariq
5 months, 4 weeks ago
will this violates the requirement "without requiring a re-deployment of the service for each code update"
upvoted 1 times
...
...
111ssy
Highly Voted 4 years, 2 months ago
D: If you encounter problems deploying a model to ACI or AKS, try deploying it as a local web service. Using a local web service makes it easier to troubleshoot problems. The Docker image containing the model is downloaded and started on your local system. https://docs.microsoft.com/en-us/azure/machine-learning/how-to-troubleshoot-deployment
upvoted 19 times
...
sl_mslconsulting
Most Recent 5 months, 2 weeks ago
Selected Answer: D
you need to test and debug locally before deploying to prod. Check this link: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-debug-managed-online-endpoints-visual-studio-code?view=azureml-api-2&tabs=cli
upvoted 1 times
...
Mal42
1 year, 2 months ago
On exam Aug 18 2023
upvoted 2 times
...
Mal42
1 year, 2 months ago
On exam Aug 18 2023
upvoted 2 times
...
phdykd
1 year, 3 months ago
D. D. Create a local web service deployment configuration and deploy the model to a local Docker container. This option provides a flexible and quick environment for debugging and testing. Using a local Docker container, you can quickly change the code in your entry script and immediately see the effect of your changes without going through the entire deployment process on Azure Kubernetes Service (AKS) or Azure Container Instances (ACI). Once you've debugged your entry script locally, you can then deploy it to AKS.
upvoted 1 times
...
phdykd
1 year, 8 months ago
C. Add a breakpoint to the first line of the entry script and redeploy the service to AKS. Adding a breakpoint to the first line of the entry script and redeploying the service to AKS will allow you to iteratively modify and test the code without requiring a re-deployment of the service for each code update. This will enable you to identify and fix the error in the entry script, without having to repeatedly deploy the service, saving time and resources. You can use tools like Visual Studio Code or PyCharm to attach a debugger to the running service, set a breakpoint on the first line of the entry script, and then use the debugger to step through the code and identify the error. Once you have identified and fixed the error, you can update the code, remove the breakpoint, and redeploy the service to AKS.
upvoted 1 times
...
PremPatrick
1 year, 12 months ago
Selected Answer: D
The right answer is D.
upvoted 1 times
...
pancman
2 years, 7 months ago
Selected Answer: D
If you encounter problems deploying a model to ACI or AKS, try deploying it as a local web service.
upvoted 2 times
...
ljljljlj
3 years, 4 months ago
On exam 2021/7/10
upvoted 4 times
...
ZeeshanNawaz
3 years, 9 months ago
Correct answer should be D
upvoted 3 times
...
hachascloud
3 years, 9 months ago
D, agreed. ACI is for production of low resource models. 1GB size and 48 GB ram or less
upvoted 3 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