Microsoft
AZ-400 · Question #531
You have a GitHub repository. You need to ensure that all changes to code are validated by your company's security department before the main branch is deployed. Which two actions can you perform? Eac
The correct answer is D. Create a branch protection rule for the main branch. E. Create a CODEOWNERS file.. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and- features/customizing-your-repository/about-code-owners#codeowners-and-branch-protection
Submitted by thandi_sa· Mar 6, 2026Design and implement source control
Question
You have a GitHub repository. You need to ensure that all changes to code are validated by your company's security department before the main branch is deployed. Which two actions can you perform? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Options
- ARequire signed commits.
- BCreate a branch protection rule for the feature branches.
- CCreate a LICENSE file.
- DCreate a branch protection rule for the main branch.
- ECreate a CODEOWNERS file.
How the community answered
(13 responses)- A8% (1)
- C15% (2)
- D77% (10)
Explanation
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and- features/customizing-your-repository/about-code-owners#codeowners-and-branch-protection
Community Discussion
No community discussion yet for this question.