
Answer-first summary for fast verification
Answer: resource ID of the Synapse Spark pool and a user-defined name
The correct answer is B because the SynapseSparkCompute class constructor in Azure ML SDK v2 requires two parameters: the resource ID of the Synapse Spark pool (to identify the specific compute resource in Azure) and a user-defined name (to identify this compute target within the Azure ML workspace). This is confirmed by the community discussion where multiple users validate this answer, with one comment specifically citing Microsoft documentation that shows the constructor requires these exact parameters. Option A is incorrect because it uses workspace web URL and Spark pool name instead of resource ID. Option C is incorrect because it uses pool URL instead of resource ID and suggests a system-assigned name. Option D is incorrect because it uses workspace identifiers rather than the specific Spark pool resource ID.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You manage an Azure Machine Learning workspace named workspace1.
You need to develop Python SDK v2 code to attach an Azure Synapse Spark pool as a compute target in workspace1. The code must use the constructor of the SynapseSparkCompute class.
Which code 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
No comments yet.