nerdexam
Microsoft

DP-100 · Question #290

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

The correct answer is B. Create an instance of the MLCIient class.. When using Azure ML Python SDK v2, the entry point for all operations is the MLClient class. You must first instantiate MLClient (option B) with your subscription ID, resource group, and workspace name to establish a connection to the workspace. Only after creating this client in

Train and deploy models

Question

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?

Options

  • AConnect by using SSH to the inference server.
  • BCreate an instance of the MLCIient class.
  • CConnect by using Docker tools to the inference server.
  • DCreate an instance of the OnlineDeploymentOperations class.

How the community answered

(56 responses)
  • A
    4% (2)
  • B
    86% (48)
  • C
    2% (1)
  • D
    9% (5)

Explanation

When using Azure ML Python SDK v2, the entry point for all operations is the MLClient class. You must first instantiate MLClient (option B) with your subscription ID, resource group, and workspace name to establish a connection to the workspace. Only after creating this client instance can you call methods like online_deployments.get_logs() to retrieve container logs from the inference server. SSH (A) and Docker tools (C) are direct server access methods, not SDK approaches. OnlineDeploymentOperations (D) is not directly instantiated-it is accessed through the MLClient instance.

Topics

#Azure ML SDK v2#Online Endpoints#Logging#Model Deployment

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice