nerdexam
Microsoft

DP-100 · Question #319

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 B. No. The proposed solution starting with 'Cre' does not correctly update an existing attached Synapse Spark Compute to use a user-assigned managed identity via Python SDK v2.

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: Create an instance of the MLClient class. Does the solution meet the goal?

Options

  • AYes
  • BNo

How the community answered

(52 responses)
  • A
    8% (4)
  • B
    92% (48)

Why each option

The proposed solution starting with 'Cre' does not correctly update an existing attached Synapse Spark Compute to use a user-assigned managed identity via Python SDK v2.

AYes

The proposed 'Cre' solution does not complete the required steps to pass a user-assigned identity configuration to the existing Synapse Spark Compute update call, so it does not meet the goal.

BNoCorrect

Updating an attached Synapse Spark Compute's identity in SDK v2 requires passing a ManagedIdentityConfiguration object - with type set to 'user_assigned' and the target client ID - directly to the identity parameter of the compute object before calling begin_create_or_update. A solution that only creates an object without properly passing it through the update call does not apply the identity change to the existing compute.

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 ML Compute#Managed Identity#Python SDK v2#Resource Configuration

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice