Designing and Implementing a Data Science Solution on Azure — Question 160
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 manage an Azure Machine Learning workspace. The development environment for managing the workspace is configured to use Python SDK v2 in Azure Machine Learning Notebooks.
A Synapse Spark Compute is currently attached and uses system-assigned identity.
You need to use Python code to update the Synapse Spark Compute to use a user-assigned identity.
Solution: Pass the UserAssignedIdentity class object to the SynapseSparkCompute class.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The proposed solution is correct because passing the UserAssignedIdentity class object to the SynapseSparkCompute class is the appropriate method for updating the identity type. This allows the Synapse Spark Compute to switch from a system-assigned identity to a user-assigned identity. The other option is incorrect as it does not provide a valid approach to achieve the stated objective.