Seeking the thrill of transformative tech? Explore the art of designing and implementing DevOps solutions on Azure. Master the shift towards CI/CD, testing, and delivery, while preparing for the Designing and Implementing Microsoft DevOps Solutions exam!
Prepare and test your skills

Prepare and test your skills

Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A development team uses Azure DevOps pipelines to deploy applications to various Azure resources, including App Services and Azure SQL Databases. The organization's security policy mandates that all automated connections from Azure DevOps to Azure resources must adhere to the principle of least privilege, utilize automated credential management, and avoid hard-coded secrets.
Which authentication method should the team prioritize for configuring their Azure DevOps service connections to Azure to meet these security requirements?
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Managed Identities are a feature of Azure Active Directory (Azure AD) that provide an automatically managed identity for Azure services. This identity can be used to authenticate to any service that supports Azure AD authentication, without needing to manage credentials in code or configuration files. There are two types: System-assigned managed identities are tied to the lifecycle of the Azure resource (e.g., an Azure VM or App Service) and are automatically deleted when the resource is deleted. User-assigned managed identities are standalone Azure resources that can be assigned to multiple Azure resources and have their lifecycle managed independently.
Managed Identities are the optimal choice because they directly address all the stated security requirements:
Managed Identities are the most secure and operationally efficient method for Azure DevOps service connections to Azure resources. They align perfectly with modern security best practices by automating credential lifecycle, enforcing least privilege, and eliminating the risk of exposed secrets. While Service Principals can also provide programmatic access, they typically involve managing client secrets, which introduces a manual element and potential security risks that Managed Identities are designed to overcome. The documentation's emphasis on "enhanced authentication security" and "avoiding hard-coded credentials" strongly supports Managed Identities as the preferred solution.