A repository already has planner and test agents in .github/workflows/multi-agent-pr.yml. A developer wants Copilot CLI to help add a documentation-review agent while keeping the change reviewable and limited to the repository. Which change should the developer make first? Select one answer.
cd ~/Downloads
copilot
# Prompt:
# Add a documentation-review agent to the multi-agent pull request workflow.
# It should run after test-agent and comment on the PR when docs are missing.
# Commit the changes when finished.Choose an answer
Tap an option to check your answer.
Correct answer: Start Copilot CLI from the repository directory.
Why this is the answer
Starting Copilot CLI from the repository directory is crucial because it scopes Copilot's actions and understanding to that specific repository. This allows Copilot to access and modify the multi-agent-pr.yml file directly within the intended context, ensuring the changes are limited to that repository and are reviewable through standard Git processes. Adding workflowdispatch is irrelevant at this stage; it's for manually triggering workflows, not for guiding Copilot's editing. Asking Copilot to bypass branch protection checks is an insecure and inappropriate action, not related to adding an agent. Assigning the pull request directly to Copilot is not a valid or supported action within the Copilot CLI workflow for making code changes.
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