A team reviews the repository setup before allowing Copilot coding agent to work from assigned issues. The intended behaviour is that the agent can create its own implementation branch and open a draft pull request, but merging to main must remain protected. Repository configuration summary Copilot coding agent: enabled Default branch: main Branch protection for main: Require a pull request before merging: enabled Require status checks before merging: enabled Require review from Code Owners: enabled Allow force pushes: disabled Repository ruleset: Target: refs/heads/main Restrict branch creation: enabled for main only Restrict branch updates: enabled for main only Evaluate the following statements. 1. The agent can still create a separate implementation branch 2. The agent-created draft pull request can bypass required checks 3. The branch protection keeps direct changes to main controlled
Choose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=No 3=Yes.
Why this is the answer
Statement 1 is Yes. The repository ruleset restricts branch creation for main only, meaning the agent can create other branches, such as an implementation branch, without issue. Statement 2 is No. A draft pull request still requires checks before it can be converted to a ready-for-review state and eventually merged. The branch protection rules for main (Require a pull request before merging, Require status checks before merging, Require review from Code Owners) apply to any PR targeting main, regardless of its draft status. Statement 3 is Yes. The branch protection rules on main (requiring PRs, status checks, and code owner reviews) and the disabled force pushes effectively prevent direct, uncontrolled changes from being merged into the main branch.
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