nerdexam
Microsoft

DP-100 · Question #320

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 'Ini' does not fulfill the requirement to update an existing Synapse Spark Compute from system-assigned to 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: Initialize the DefaultAzureCredential class. Does the solution meet the goal?

Options

  • AYes
  • BNo

How the community answered

(25 responses)
  • A
    24% (6)
  • B
    76% (19)

Why each option

The proposed solution starting with 'Ini' does not fulfill the requirement to update an existing Synapse Spark Compute from system-assigned to user-assigned managed identity via Python SDK v2.

AYes

The proposed initialization-based solution does not call the update method with a user-assigned identity configuration on the existing Synapse Spark Compute, so it does not satisfy the requirement.

BNoCorrect

Switching an attached Synapse Spark Compute to user-assigned identity requires calling begin_create_or_update with a SynapseSparkCompute object whose identity field contains a properly configured ManagedIdentityConfiguration. An initialization-only step does not invoke the update API and therefore does not change the identity type on the running 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 Management#Synapse Spark Compute#Managed Identity#Python SDK v2

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice