exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 6 question 34 discussion

Actual exam question from Microsoft's AZ-400
Question #: 34
Topic #: 6
[All AZ-400 Questions]

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?

  • A. .github/actions/
  • B. .github/
  • C. .git/
  • D. .github/workflows/
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Kalaisuran
7 months, 2 weeks ago
Selected Answer: B
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
upvoted 4 times
...
ozbonny
8 months, 3 weeks ago
Selected Answer: B
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location
upvoted 2 times
...
hardinxcore
10 months, 2 weeks ago
Selected Answer: B
The answer is B. Among all the answers, C is the less likely one. While A and D will at least at a file to the repository when committed though at the wrong place, changes in the .git folder are local only and are outside source control.
upvoted 1 times
...
yana_b
1 year, 3 months ago
Selected Answer: B
I think that the correct answer is B. To use a CODEOWNERS file, create a new file called CODEOWNERS in the root, docs/, or .github/ directory of the repository, in the branch where you'd like to add the code owners. Reference: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location
upvoted 4 times
...
itexamsmicrosoft
1 year, 3 months ago
Selected Answer: B
B. .github/ The CODEOWNERS file in GitHub is used to define individuals or teams that are responsible for code in a repository. This file needs to be created in the repository's root, docs/, or .github/ directory. So, in this case, you should create the CODEOWNERS file in the .github/ directory.
upvoted 2 times
...
kevin9988
1 year, 4 months ago
Selected Answer: B
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. The correct option would be: B. .github/
upvoted 1 times
...
Dani_ac7
1 year, 4 months ago
Selected Answer: B
CODEOWNERS https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location
upvoted 1 times
...
tanmacao
1 year, 4 months ago
It should be .github/
upvoted 1 times
...
Hector1812
1 year, 4 months ago
Should be .github/ https://docs.github.com/es/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
upvoted 2 times
abu0724
1 year, 4 months ago
To use a CODEOWNERS file, create a new file called CODEOWNERS in the root, docs/, or .github/ directory of the repository, in the branch where you'd like to add the code owners.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago