Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

The SecOps Group CCPenX-Az Exam - Topic 3 Question 6 Discussion

Posted by Reena on Jul 20, 2026 at 01:08 PM

Using the previously gained access to the Azure environment, extract an access token from the Web App's environment and use it to impersonate its Managed Identity. Which of the following roles is assigned to the Web App's Security Principal?

Suggested Answer: D, D

Detailed Solution:

First identify the managed identity attached to the Web App.

az webapp identity show

--name RnD-Tools

--resource-group Excalibur-Resources

--output json

You should see a user-assigned managed identity similar to:

{

'userAssignedIdentities': {

'/subscriptions/7403ec86-c39d-4d80-9efa-35c7580ecefa/resourceGroups/Excalibur-Resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/WebAppTokenIdentity': {

'clientId': 'cf3664d4-5cec-4feb-b0ef-88b7958809df',

'principalId': 'efe89e83-010f-42f6-9576-30531fa47af7'

}

}

}

Now query the role assignments for the managed identity's principal ID:

az role assignment list

--assignee efe89e83-010f-42f6-9576-30531fa47af7

--all

--output table

The returned custom role is:

AppService-Auditor

That makes option D correct.

Final Answer:


Get Premium CCPenX-Az Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
15 comments · newest first
FR
Francesco 15 days ago
I’ll go with that too. It aligns with security principles.
OC
Ocie 20 days ago
Right! AppService-Auditor is likely the best choice here.
AL
Allene 25 days ago
True, but the focus seems on auditing access.
FR
Francesco 1 month ago
I agree, but what about Storage-Metadata-Reader? Could be relevant too.
OC
Ocie 1 month ago
I feel like AppService-Auditor makes sense. It fits the context.
AL
Allene 1 month ago
This question is tricky! I think it's about understanding roles.
VE
Vernell 2 months ago
Nah, it's not A. D is the right choice.
RO
Rolande 2 months ago
I heard it's actually A) Compute-Instance-Inspector.
JE
Jesus 2 months ago
Wait, are we sure about that?
NI
Nickolas 2 months ago
Definitely D! Makes the most sense.
ST
Stephane 2 months ago
I think it's D) AppService-Auditor.
JO
Johnson 2 months ago
I’m a bit confused about the roles. I thought the Compute-Instance-Inspector was more for VMs, but I could be wrong.
LE
Lemuel 3 months ago
I feel like I’ve seen a question like this before, and it was about permissions related to web apps. AppService-Auditor sounds familiar.
NO
Noah 3 months ago
I remember practicing with roles in Azure, but I'm not entirely sure which one fits here. Could it be the Storage-Metadata-Reader?
CR
Cristy 3 months ago
I think the Managed Identity is typically associated with the App Service, so maybe the AppService-Auditor role?
0/2000 characters

Save Cancel