Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The AZ-400 Designing and Implementing Microsoft DevOps Solutions Exam practice bank has 208 more like it. Try 10 free: instant score, no account.
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?
This option suggests using:
This combination does not fully meet the requirements for several reasons:
This option would be more appropriate if the primary goal was to audit GitHub repository configurations against corporate standards (Azure Policy), detect risky user behavior within Microsoft Entra ID (Identity Protection), and implement complex, multi-stage custom approval workflows that go beyond standard pull request reviews (GitHub Actions). However, for directly implementing the specified branch protection rules and centralized identity management, it is not the optimal choice.
This option suggests using:
This combination fails to meet the requirements in several critical areas:
This option might be considered if the organization had very loose security requirements, a tiny team, and only needed external notifications for GitHub events. It would also be relevant if the question focused solely on triggering external processes (webhooks) or if the requirement for Microsoft Entra ID integration was only for other applications, not GitHub itself. However, for robust security, compliance, and centralized identity management for a critical application in GitHub, this approach is fundamentally flawed.
This option suggests using:
This combination falls short of the requirements for several reasons:
main branch. These require Branch Protection Rules.This option might be acceptable for a very small team with minimal security requirements, where compliance is not a major concern, and manual processes are sufficient. It would also be suitable for programmatic access where PATs are specifically used for automation, but not for general user authentication and access control. However, for a critical application with robust security and compliance needs, it is inadequate.
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.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated