
Answer-first summary for fast verification
Answer: No
The solution does not meet the goal because initializing the DefaultAzureCredential class only provides authentication credentials for accessing Azure resources, but 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 ML SDK v2 management operations, specifically updating the compute properties with the user-assigned identity resource ID. The community discussion shows code importing SynapseManagementClient, which is unrelated to the Azure ML compute update operation, further indicating that the proposed solution is insufficient.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You manage an Azure Machine Learning workspace using 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 the Synapse Spark Compute to use a user-assigned identity with Python code.
Proposed solution: Initialize the DefaultAzureCredential class.
Does this solution meet the goal?
A
Yes
B
No