exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 113 discussion

Actual exam question from Microsoft's DP-100
Question #: 113
Topic #: 2
[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 the following Azure subscriptions and Azure Machine Learning service workspaces:



You need to obtain a reference to the ml-project workspace.

Solution: Run the following Python code:



Does the solution meet the goal?

  • A. Yes
  • B. No
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
Murzfam
4 months, 2 weeks ago
Selected Answer: B
The questions is reference to ml-project workspace. The solutions is only about auth, so the answer is B.
upvoted 1 times
...
jl420
7 months, 1 week ago
Selected Answer: A
MLClient.from_config() can be used without explicitly providing credentials, as long as your authentication requirements are met in one of the following ways: Default Authentication with Azure CLI Login: If you’ve already authenticated using the Azure CLI (e.g., az login), MLClient.from_config() will use your active Azure CLI session for authentication. This is often convenient for development environments and local testing. Managed Identity (for Azure Compute Resources): If you’re running your code on an Azure resource with a managed identity (like an Azure Virtual Machine, Azure Kubernetes Service, or Azure Machine Learning Compute Instance), the SDK can authenticate using the managed identity associated with that resource. No additional credentials are needed, as long as the managed identity has access to the Azure ML workspace. Environment-Based Authentication: If environment variables for Azure credentials are set (e.g., AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET for a service principal), MLClient.from_config() will pick up these credentials automatically.
upvoted 2 times
...
evangelist
1 year ago
Selected Answer: A
Answer should be Yes, it appeared previously in the exam questions
upvoted 1 times
...
sl_mslconsulting
1 year ago
Selected Answer: B
credential is a required parameter in the from_config method . Link: https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.mlclient?view=azure-python#azure-ai-ml-mlclient-from-config
upvoted 1 times
...
Plb2
1 year, 3 months ago
Selected Answer: B
credential-parameter is required
upvoted 2 times
...
zishankamal
1 year, 3 months ago
Unsure. The credential parameter is not specified which is mandatory. Otherwise class and method is correct.
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 ...