
Answer-first summary for fast verification
Answer: No
The solution does not meet the goal because initializing the `DefaultAzureCredential` class only provides authentication credentials to interact with Azure services, but it does not perform the actual update of the Synapse Spark Compute identity configuration. To update the compute from system-assigned to user-assigned identity, you need to use the Azure Machine Learning SDK (specifically the `MLClient` or compute management operations) to modify the compute target's identity settings. The community discussion shows code importing Synapse management libraries, which is unrelated to the Azure ML compute update task. Therefore, the correct answer is 'No'.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are managing an Azure Machine Learning workspace with a development environment configured to use Python SDK v2 in Azure Machine Learning Notebooks. A Synapse Spark Compute is currently attached and uses a system-assigned identity. You need to update this compute to use a user-assigned identity using Python code.
Proposed solution: Initialize the DefaultAzureCredential class.
Does this solution meet the goal?
A
Yes
B
No
No comments yet.