CCPenX-Az practice question 6 of 10

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

Full set: 31 questions
Answer options
A: Reader
B: Contributor Correct answer
C: Storage Account Contributor
D: Owner
Correct Answer:
B. Contributor
Explanation

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 ------------------------------------ ----------- ---------------------------------------- Contributor /subscriptions/5d8e44ac-... Correct answer:
B. Contributor ================

Scroll to Top