Branch Protection Rules Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Repository Security

What you'll be asked

  1. Which of the following is the primary purpose of enabling branch protection rules on a main branch?
  2. If you want to ensure that all code changes are reviewed by at least one other team member before being merged, which setting should you enable?
  3. What is the effect of enabling the 'Require status checks to pass before merging' rule?
  4. Why would an administrator choose to enable 'Restrict pushes' in addition to 'Require a pull request'?
  5. A team requires that all commits be signed with a GPG key to verify the identity of the author. Which branch protection setting enforces this requirement?

Answers and explanations come after you submit.