exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 89 discussion

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

You manage an Azure Machine Learning workspace named workspace1.

You must develop Python SDK v2 code to attach an Azure Synapse Spark pool as a compute target in workspace1. The code must invoke the constructor of the SynapseSparkCompute class.

You need to invoke the constructor.

What should you use?

  • A. Synapse workspace web URL and Spark pool name
  • B. resource ID of the Synapse Spark pool and a user-defined name
  • C. pool URL of the Synapse Spark pool and a system-assigned name
  • D. Synapse workspace name and workspace web URL
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
damaldon
Highly Voted 1 year, 3 months ago
Correct. To attach a Synapse Compute using Python SDK, first create an instance of azure.ai.ml.MLClient class. This provides convenient functions for interaction with Azure Machine Learning services. The following code sample uses azure.identity.DefaultAzureCredential for connecting to a workspace in resource group of a specified Azure subscription. In the following code sample, define the SynapseSparkCompute with the parameters: name - user-defined name of the new attached Synapse Spark pool. resource_id - resource ID of the Synapse Spark pool created earlier in the Azure Synapse Analytics workspace.
upvoted 5 times
...
evangelist
Most Recent 5 months ago
given answer is correct
upvoted 1 times
...
Karthikat
7 months, 1 week ago
on exam 3/25/2024
upvoted 1 times
...
ymj_000
12 months ago
For reference: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-synapse-spark-pool?view=azureml-api-2&tabs=sdk
upvoted 1 times
...
Mal42
1 year, 2 months ago
On exam 18 Aug 2023
upvoted 3 times
...
Batman160591
1 year, 4 months ago
Answer is B. To invoke the constructor of the SynapseSparkCompute class in Azure Machine Learning SDK v2, you need to provide the resource ID of the Synapse Spark pool and a user-defined name.
upvoted 1 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