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 questionsCorrect 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 ================
Keep practicing
Take the free CCPenX-Az practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CCPenX-Az practice questions
- Question 7Using the previously retrieved credentials, authenticate as the App Registration within t…
- Question 8You are reviewing Azure Activity Logs after a lab compromise. Which operation indicates t…
- Question 9A virtual machine has a system-assigned managed identity. From the VM shell, which Azure …
- Question 10Using the managed identity principal ID discovered in the previous task, identify which A…
