exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 6 question 3 discussion

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

You have an Azure Machine Learning (ML) model deployed to an online endpoint.

You need to review container logs from the endpoint by using Azure ML Python SDK v2. The logs must include the console log from the inference server, with print/log statements from the model’s scoring script.

What should you do first?

  • A. Connect by using SSH to the inference server.
  • B. Create an instance of the MLCIient class.
  • C. Connect by using Docker tools to the inference server.
  • D. Create an instance of the OnlineDeploymentOperations class.
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
AnsiDP100
3 months, 2 weeks ago
Selected Answer: B
B is the correct
upvoted 1 times
...
ulg
4 months, 2 weeks ago
Selected Answer: B
The MLClient class is the primary entry point for SDK operations, allowing you to: 1. Connect to the Azure ML workspace. 2. Access deployment details, including logs. 3. Use methods like online_deployments.get_logs() to retrieve inference server logs, which include scoring script outputs. SSH/Docker tools (A/C): Not required for SDK-based log retrieval. OnlineDeploymentOperations (D): Accessed via ml_client.online_deployments, not instantiated directly.
upvoted 1 times
...
3a0b61c
1 year, 3 months ago
Selected Answer: B
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-troubleshoot-online-endpoints?view=azureml-api-2&tabs=python#get-container-logs https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.operations.onlinedeploymentoperations?view=azure-python You should not instantiate this class directly. Instead, you should create an MLClient instance that instantiates it for you and attaches it as an attribute.
upvoted 2 times
bbe8966
1 year ago
correct
upvoted 1 times
...
...
Matt2000
1 year, 4 months ago
you create a OnlineDeploymentOperation by referencing 'ml_client.online_deployments'. OnlineDeploymentOperation has then the method 'get_logs(...)' References: https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.mlclient?view=azure-python https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.operations.onlinedeploymentoperations?view=azure-python#azure-ai-ml-operations-onlinedeploymentoperations-be
upvoted 2 times
...
hgjdsh
1 year, 5 months ago
I think the answer should be B because you need an instance of ml_client class to call get_logs on online_deployment instance.
upvoted 3 times
...
GHill1982
1 year, 5 months ago
Selected Answer: D
To review the container logs from an online endpoint by using the Azure ML Python SDK v2, you need to do the following steps: Create an instance of the OnlineDeploymentOperations class by passing the workspace object and the name of the online endpoint. Call the get_logs method on the OnlineDeploymentOperations object by passing the name of the deployment. This method returns a dictionary with the logs for the deployment, including the console log from the inference server and the print/log statements from the model’s scoring script.
upvoted 2 times
sanctafrax
4 months, 3 weeks ago
arent you stating a difference answer then? what should you do FIRST. You say pass the workspace object into the onlinedeploymentOperations class. Therefore you first create an instance of the MLClient class.
upvoted 1 times
...
...
ferren
1 year, 7 months ago
chatgpt and bard say it should be D
upvoted 1 times
...
damaldon
1 year, 11 months ago
Correct. ml_client is the instance for MLCLient class, and online_deployment is the instance for either ManagedOnlineDeployment class or KubernetesOnlineDeployment class. https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/machine-learning/how-to-troubleshoot-online-endpoints.md#get-container-logs
upvoted 4 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 ...