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 manages a critical application's source code in a GitHub repository. They need to implement a robust security and compliance plan for their main branch to ensure code quality and prevent unauthorized changes. The organization uses Microsoft Entra ID for centralized identity management.
The team has identified the following requirements:
main branch must be strictly prohibited.main.Which combination of GitHub and Azure features should the team implement to meet these set of requirements?
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
This solution combines native GitHub security features with Microsoft Entra ID (formerly Azure Active Directory) for comprehensive access control and compliance. It leverages:
main) within a repository to enforce workflows, quality gates, and prevent direct pushes.This combination directly addresses all specified requirements:
main branch to:
This approach is optimal because it uses the native, most effective security mechanisms available in GitHub for repository and branch governance, combined with the centralized and robust identity management capabilities of Microsoft Entra ID. Branch protection rules are the authoritative way to enforce merge policies, while Microsoft Entra ID provides the necessary enterprise-grade identity and access control layer. This creates a seamless, secure, and compliant workflow that minimizes manual overhead and reduces security risks, aligning perfectly with DevOps best practices for security and compliance.