nerdexam
Microsoft

GH-900 · Question #133

Which of the following outcomes can be achieved with a branch protection rule?

The correct answer is D. Require approval before merging changes. Managing a branch protection rule You can create a branch protection rule to enforce certain workflows for one or more branches, such as requiring an approving review or passing status checks for all pull requests merged into the protected branch…

Collaboration Features

Question

Which of the following outcomes can be achieved with a branch protection rule?

Options

  • ARestrict who can view the branch.
  • BBlock code pushes that contain hardcoded secrets.
  • CRequire two-factor authentication (2FA) by code contributors.
  • DRequire approval before merging changes.

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    92% (22)

Explanation

Managing a branch protection rule You can create a branch protection rule to enforce certain workflows for one or more branches, such as requiring an approving review or passing status checks for all pull requests merged into the protected branch. https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your- repository/managing-protected-branches/managing-a-branch-protection-rule

Topics

#Branch protection rules#Code review#Pull request approval#Merge policies

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice