Microsoft
AZ-400 · Question #474
You manage code by using GitHub. You plan to ensure that all GitHub Actions are validated by a security team. You create a branch protection rule requiring that code changes be reviewed by code owners
The correct answer is B. .github/. To create the CODEOWNERS file for ensuring that code changes are reviewed by code owners in GitHub, you should create the file in the root directory of your repository.
Submitted by zhang_li· Mar 6, 2026Design and implement source control
Question
You manage code by using GitHub. You plan to ensure that all GitHub Actions are validated by a security team. You create a branch protection rule requiring that code changes be reviewed by code owners. You need to create the CODEOWNERS file. Where should you create the file?
Options
- A.github/actions/
- B.github/
- C.git/
- D.github/workflows/
How the community answered
(48 responses)- A6% (3)
- B90% (43)
- D4% (2)
Explanation
To create the CODEOWNERS file for ensuring that code changes are reviewed by code owners in GitHub, you should create the file in the root directory of your repository.
Community Discussion
No community discussion yet for this question.