nerdexam
Microsoft

DP-100 · Question #325

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…

The correct answer is A. Yes. Passing a correctly configured ManagedIdentityConfiguration with the user_assigned_identity_client_id to the Synapse Spark Compute update call is the proper SDK v2 method for switching to user-assigned identity.

Design and prepare a machine learning solution

Question

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?

Options

  • AYes
  • BNo

How the community answered

(60 responses)
  • A
    77% (46)
  • B
    23% (14)

Why each option

Passing a correctly configured ManagedIdentityConfiguration with the user_assigned_identity_client_id to the Synapse Spark Compute update call is the proper SDK v2 method for switching to user-assigned identity.

AYesCorrect

In Azure ML Python SDK v2, you pass a ManagedIdentityConfiguration instance - with type='user_assigned' and the user_assigned_identity_client_id of the target Azure managed identity - to the identity parameter of a SynapseSparkCompute object, then call ml_client.compute.begin_create_or_update to apply the change. This is the documented pattern for replacing a system-assigned identity on an attached compute with a user-assigned one.

BNo

The 'Pas' solution does correctly supply a user-assigned ManagedIdentityConfiguration through the proper SDK v2 update pathway, so returning 'No' is incorrect.

Concept tested: Updating Synapse Spark Compute identity with SDK v2

Source: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-identity-based-service-authentication

Topics

#Azure Machine Learning Workspace#Synapse Spark Compute#Managed Identity#Python SDK v2

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice