Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your organization runs Azure DevOps pipelines on a virtual machine scale set (VMSS) that hosts self-hosted build agents. The pipelines use Azure CLI scripts to deploy and modify resources only in the same Azure subscription that contains the scale set. You need to grant the agents least-privilege access, avoid any manual rotation of credentials, and ensure that disabling or deleting an individual VMSS instance does not affect authentication for the remaining instances. Which authentication mechanism should you choose?
Create an Azure AD application (service principal) secured by a certificate installed on each VMSS instance and referenced by the pipeline.
Enable a system-assigned managed identity on the VM scale set and assign the minimal required Azure RBAC role to that identity.
Assign a single user-assigned managed identity to the VM scale set and grant it the required Azure RBAC role.
Create an Azure AD application (service principal) secured by a client secret and store the secret as a secure pipeline variable.
A system-assigned managed identity is created directly on each VMSS instance and is deleted when the instance is removed. Azure automatically handles credential rotation, so there is no secret or certificate to manage. Because each instance receives its own identity, disabling or deleting one instance has no impact on others. A client-secret-based or certificate-based service principal requires manual renewal and is shared across all instances. A single user-assigned managed identity would satisfy automatic credential rotation but would be shared by every VMSS instance, so disabling one instance would not isolate its permissions and the identity would persist even if the VMSS is removed.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a system-assigned managed identity in Azure?
Open an interactive chat with Bash
Why is a system-assigned managed identity preferred over user-assigned managed identity in this scenario?
Open an interactive chat with Bash
How does Azure manage credential rotation for managed identities?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .