New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-100 Exam - Topic 2 Question 111 Discussion

Actual exam question for Microsoft's DP-100 exam
Question #: 111
Topic #: 2
[All DP-100 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Nicolette
3 months ago
Definitely not! You need to set the identity explicitly.
upvoted 0 times
...
Almeta
3 months ago
Wait, can you really just use DefaultAzureCredential for that?
upvoted 0 times
...
Edda
4 months ago
Seems right to me, but I’d double-check the documentation.
upvoted 0 times
...
Hannah
4 months ago
I thought you needed to specify the user-assigned identity directly?
upvoted 0 times
...
Leota
4 months ago
Yes, that’s correct! DefaultAzureCredential is the way to go.
upvoted 0 times
...
Weldon
4 months ago
I believe the DefaultAzureCredential is useful for authentication, but I don't think it actually updates the identity type. So, I would say "No" as well.
upvoted 0 times
...
Ahmad
5 months ago
I feel like I've seen something similar in the study materials, but I can't recall if just initializing the credential is enough to change the identity. I might need to review that part again.
upvoted 0 times
...
Rodolfo
5 months ago
I remember a practice question where we had to switch identities, and I think we needed to specify the user-assigned identity directly. This makes me lean towards "No."
upvoted 0 times
...
Dacia
5 months ago
I think initializing the DefaultAzureCredential class is more about authentication rather than changing the identity type for the Spark Compute. So, I'm not sure if it meets the goal.
upvoted 0 times
...
Ahmed
5 months ago
Okay, this looks like a good opportunity to apply my knowledge of Azure Machine Learning and the Python SDK. I'll start by reviewing the documentation on managing compute targets and identities, then I'll try to come up with a step-by-step plan to update the Synapse Spark Compute as requested.
upvoted 0 times
...
Tamesha
5 months ago
Ah, I think I've got this one. The key is understanding how to work with the Azure Machine Learning SDK to manage the Synapse Spark Compute. If I remember correctly, there's a specific method or class for updating the compute's identity. I'll give it a try and see if I can come up with the right solution.
upvoted 0 times
...
Glenn
5 months ago
I'm a bit confused on this one. Updating the compute to use a user-assigned identity seems straightforward, but I'm not sure if the DefaultAzureCredential class is the right approach. I'll need to review the Python SDK v2 documentation to see if there's a more direct way to accomplish this.
upvoted 0 times
...
Clay
5 months ago
Okay, let's see. The question is asking if initializing the DefaultAzureCredential class is the right solution to update the Synapse Spark Compute to use a user-assigned identity. I think I'll need to double-check the documentation on that class and how it relates to managing identities in Azure.
upvoted 0 times
...
Kenia
5 months ago
Hmm, this looks like a tricky one. I'll need to carefully review the details about the Azure Machine Learning workspace and the Synapse Spark Compute to make sure I understand the requirements.
upvoted 0 times
...
Gary
1 year ago
I agree with Timmy, the DefaultAzureCredential class should do the trick.
upvoted 0 times
...
Stephane
1 year ago
Ah, the age-old question of whether to use the DefaultAzureCredential class or not. Why can't they just make it simpler, like a 'UpdateSynapseSparkComputeIdentity' function? *sigh*
upvoted 0 times
Delisa
1 year ago
Definitely, but for now, using DefaultAzureCredential class seems to be the way to go.
upvoted 0 times
...
Cordelia
1 year ago
Yeah, it would be nice if there was a simpler function for this task.
upvoted 0 times
...
Penney
1 year ago
I agree, it seems like the right approach to update the Synapse Spark Compute identity.
upvoted 0 times
...
Domonique
1 year ago
I think the solution using DefaultAzureCredential class should work.
upvoted 0 times
...
...
Marilynn
1 year ago
Oh, this is a tricky one. I wonder if the DefaultAzureCredential class is overkill for this task. Maybe there's a more direct way to update the Synapse Spark Compute's identity in the Azure ML SDK.
upvoted 0 times
...
Britt
1 year ago
I bet the solution involves a complex dance with the Azure Resource Manager API and a dozen lines of code. Azure, where simplicity goes to die.
upvoted 0 times
Carey
1 year ago
B: No
upvoted 0 times
...
Joseph
1 year ago
A: Yes
upvoted 0 times
...
...
Maurine
2 years ago
I'm not sure, I think we need to use a different method.
upvoted 0 times
...
Deane
2 years ago
The solution seems reasonable, but I'm not sure if it's the most efficient way to update the Synapse Spark Compute's identity. Shouldn't we be looking at the Azure ML SDK documentation for the specific method to do this?
upvoted 0 times
Buck
1 year ago
No
upvoted 0 times
...
Felton
1 year ago
Yes
upvoted 0 times
...
...
Timmy
2 years ago
Yes, that solution should work.
upvoted 0 times
...

Save Cancel