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 4 Question 2 Discussion

After authenticating as the service principal, enumerate its assigned Azure RBAC role. Which role does it have?A. Reader B. Contributor C. Storage Account Contributor D. Owner
B) Contributor ================

The SecOps Group CCPenX-Az Exam - Topic 4 Question 2 Discussion

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

After authenticating as the service principal, enumerate its assigned Azure RBAC role. Which role does it have?

A. Reader B. Contributor C. Storage Account Contributor D. Owner

Show Suggested Answer Hide Answer
Suggested Answer: B

Detailed Solution:

Resolve the service principal object ID:

az ad sp show --id c5fba7db-5e61-45bc-8944-3cd457bb19c2 --query id --output tsv

Then list role assignments:

SP_OBJECT_ID=$(az ad sp show --id c5fba7db-5e61-45bc-8944-3cd457bb19c2 --query id --output tsv) az role assignment list --assignee '$SP_OBJECT_ID' --all --output table

Expected output:

Principal Role Scope ------------------------------------ ----------- ---------------------------------------- <sp-object-id> Contributor /subscriptions/5d8e44ac-...

Correct answer:


Contribute your Thoughts:

0/2000 characters
Glory
1 day ago
I don't know, seems too easy to just be Contributor.
upvoted 0 times
...
Ruby
6 days ago
Contributor is the most common role for service principals.
upvoted 0 times
...
Trina
11 days ago
Wait, are you sure it's not Reader?
upvoted 0 times
...
Dallas
17 days ago
I thought it could be Owner, but Contributor makes sense.
upvoted 0 times
...
Shenika
22 days ago
It's definitely the Contributor role!
upvoted 0 times
...
Erasmo
27 days ago
I’m leaning towards Contributor since it seems like a common role for service principals, but I could be wrong.
upvoted 0 times
...
Novella
1 month ago
I’m a bit confused about the specific roles. Could it be Reader instead? I feel like I need to double-check my notes.
upvoted 0 times
...
Nohemi
1 month ago
I remember practicing a similar question about service principals and their roles. I think Contributor was one of the options we discussed.
upvoted 0 times
...
Yoko
1 month ago
I think we covered Azure RBAC roles in class, but I’m not entirely sure which one the service principal would have by default.
upvoted 0 times
...

Save Cancel