A repository owner adds a CODEOWNERS file and a workflow that classifies Copilot-created pull requests by changed paths. The goal is to require human review for sensitive files while allowing low-risk changes to proceed with required checks. Evaluate the following statements. 1. CODEOWNERS can route sensitive path changes to accountable reviewers. 2. Required checks can preserve low-risk velocity without removing validation. 3. This configuration guarantees no low-risk PR ever needs review.
# .github/CODEOWNERS
/src/auth/ @octo-org/security-reviewers
/src/payments/ @octo-org/payments-reviewers
/.github/workflows/ @octo-org/platform-reviewers
name: classify-copilot-risk
on:
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: read
jobs:
classify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Print review routing guidance
run: |
echo "Use CODEOWNERS for sensitive path review."
echo "Use required checks for low-risk validation."Choose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=Yes 3=No.
Why this is the answer
Statement 1 is correct because the CODEOWNERS file explicitly assigns specific teams (@octo-org/security-reviewers, @octo-org/payments-reviewers) to review changes within sensitive directories like /src/auth/ and /src/payments/. This ensures that changes to these critical paths are routed to accountable human reviewers. Statement 2 is correct because required checks (e.g., CI tests, linting) can be configured to run automatically on all pull requests, including low-risk ones. This validates the changes without requiring a manual human review, thus preserving development velocity while maintaining quality. Statement 3 is incorrect because while the configuration aims to streamline low-risk changes, it doesn't guarantee that no low-risk PR will ever need review. Unexpected issues, complex interactions, or future policy changes could still necessitate human oversight, even for seemingly low-risk modifications.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed