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

Posted by Asha on Jul 16, 2026 at 08:35 PM

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

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:


Get Premium CCPenX-Az Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
MA
Marci 1 month ago
I agree, B makes sense. It’s a common role for service principals.
YE
Yesenia 1 month ago
I feel like it's too straightforward. Definitely B.
YO
Yoko 1 month ago
I think it's B. Contributor. It allows for resource management.
GL
Glory 2 months ago
I don't know, seems too easy to just be Contributor.
RU
Ruby 2 months ago
Contributor is the most common role for service principals.
TR
Trina 2 months ago
Wait, are you sure it's not Reader?
DA
Dallas 2 months ago
I thought it could be Owner, but Contributor makes sense.
SH
Shenika 2 months ago
It's definitely the Contributor role!
ER
Erasmo 2 months ago
I’m leaning towards Contributor since it seems like a common role for service principals, but I could be wrong.
NO
Novella 3 months 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.
NO
Nohemi 3 months ago
I remember practicing a similar question about service principals and their roles. I think Contributor was one of the options we discussed.
YO
Yoko 3 months 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.
0/2000 characters

Save Cancel