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

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?
D) AppService-Auditor and D) AppService-Auditor ================
A) Compute-Instance-Inspector
B) VM-Metadata-Reader
C) Storage-Metadata-Reader

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

Actual exam question for The SecOps Group's CCPenX-Az exam
Question #: 6
Topic #: 3
[All CCPenX-Az Questions]

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?

Show Suggested Answer Hide Answer
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:


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel