CCPenX-Az practice question 9 of 10
A virtual machine has a system-assigned managed identity. From the VM shell, which Azure CLI command authenticates using that identity?
Full set: 31 questionsCorrect Answer:
B. az login --identity
Explanation
Detailed Solution: On an Azure VM with a system-assigned managed identity, run:
az login --identity
Then verify:
az account show
For a user-assigned managed identity, specify the client ID:
az login --identity --client-id
Microsoft’s Azure CLI documentation confirms az login --identity for system-assigned managed identities and --client-id, --object-id, or --resource-id for user-assigned identities. Correct answer:
B. az login --identity ================
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 6After authenticating as the service principal, enumerate its assigned Azure RBAC role. Wh…
- 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 10Using the managed identity principal ID discovered in the previous task, identify which A…
