GH-600 Exam Dumps & Practice Test
Developing in Agentic AI Systems Questions 12–16 (page: 8)

Updated On: 16-Nov-2026
View Related Case Study

DRAG DROP (Drag and Drop is not supported)
You have a GitHub repository that uses the GitHub Copilot coding agent.
You need to complete the hooks configuration to meet the following requirements:
● Tool usage must be evaluated before execution.
● Tool results must be logged after execution.
● Tool usage must be logged after execution.
How should you complete the hooks configuration? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Note: Each correct selection is worth one point.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: preToolUse
Triggers before any tool execution to evaluate/validate parameters or block dangerous operations).
Box 2: postToolUse
Triggers after a tool completes execution, perfect for logging results and usage metrics


Reference:

https://docs.github.com/en/copilot/concepts/agents/hooks



View Related Case Study

You have a GitHub Copilot coding agent named CodeAgent. The .agent.md file of CodeAgent contains the following YAML frontmatter.
---
name: CodeAgent description: Performs repository analysis and code review tasks.
tools: ['edit', 'execute', 'read', 'search']
---
You need to issue a GitHub Copilot CLI command that preserves execution velocity for read-only tasks by eliminating approval prompts for low-risk tools. The solution must ensure that high-risk tools that can make changes remain available but still require explicit user approval before running.
Which command should you run?

  1. copilot agent run CodeAgent --deny-tool 'edit,execute'
  2. copilot agent run CodeAgent --allow-all-tools
  3. copilot agent run CodeAgent
  4. copilot agent run CodeAgent --allow-tool 'read,search'
  5. copilot agent run CodeAgent --allow-tool 'read,search' --deny-tool 'edit,execute'

Answer(s): E

Explanation:

To configure your GitHub Copilot agent (CA) to run low-risk, read-only tools without approval prompts while keeping high-risk tools strictly gated, you need to use the gh copilot CLI configuration command to set specific tool permissions.
gh copilot config set-agent-policy CA --allow-without-approval read search --require-approval edit execute
Preserves Velocity: Bypasses confirmation prompts for read and search so code analysis runs instantly.
Maintains Security: Explicitly forces a manual user prompt before edit (modifying code) or execute (running commands) can run.
Targets the Agent: Uses the --allow-without-approval and --require-approval flags specifically mapped to the CA agent name declared in your YAML frontmatter.


Reference:

https://vivekfordevsecopsciso.medium.com/github-copilot-remote-code-execution-via-prompt-injection-cve-202 5-53773-38b4792e70fb



View Related Case Study

DRAG DROP (Drag and Drop is not supported)
You have a GitHub repository that stores custom GitHub Copilot agents in the .github/agents/ folder. You have an agent lead-dev.agent.md that must invoke a specialist subagent named security-reviewer.
Evaluation results show that lead-dev attempts to invoke security-reviewer, but the subagent call fails to run.
You need to ensure that lead-dev can invoke security-reviewer.
How should you complete the YAML frontmatter of the agent profile? To answer, drag the appropriate values to the correct targets.
Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Note: Each correct selection is worth one point.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: ['agent']
To ensure that the lead-dev agent can successfully invoke the specialist subagent sub, you need to explicitly grant it access to the subagent tool and list sub as an allowed target in its frontmatter.
Box 2: ['security-reviewer']


Reference:

https://gist.github.com/LawrenceHwang/6194421c3bb4208fff84452b403e191a



View Related Case Study

You have a GitHub Enterprise Cloud repository that uses the GitHub Copilot coding agent.
Engineers assign issues to Copilot, and Copilot creates draft pull requests. The engineers start tasks either by assigning issues on github.com or by using GitHub Copilot Chat in an IDE. Reviewers request updates by leaving pull request comments.
You discover that sometimes, Copilot uses outdated requirements after a reviewer posts an updated instruction in a pull request comment, and, in several cases, Copilot fails to resume work from the comment.
You need to ensure that iteration requests are applied to the correct pull request session and are processed consistently.
What should you do?

  1. Ensure that the reviewer has write access to the repository. Instruct the reviewer to mention @copilot in the pull request comments.
  2. Ensure that the agent has write access to the repository. Instruct the reviewer to mention @github in the task comments.
  3. Ensure that the agent has write access to the repository. Instruct the reviewer to unassign and reassign the original issue to Copilot.
  4. Start a new task from Copilot Chat in the IDE. Instruct the reviewer to mention @github in the task comments.

Answer(s): A

Explanation:

You should explicitly instruct the reviewer to mention @copilot in the pull request comments, and you must verify that they have write access to the repository.
Explicit Triggering: GitHub Copilot's asynchronous coding agent listens for active summons in existing pull request threads. Simply leaving a comment without an explicit @copilot mention may cause it to skip processing the update entirely, explaining why it fails to resume work.
Context Preservation: By directly mentioning @copilot within the specific pull request comment thread, the agent binds the new instructions directly to that exact active development session. This prevents it from pulling outdated requirements from the initial issue definition.
Permission Enforcement: GitHub Copilot will ignore commands and mentions from users who do not possess write permissions (or higher) on the repository to prevent unauthorized code modifications or resource usage.


Reference:

https://github.blog/ai-and-ml/github-copilot/assigning-and-completing-issues-with-coding-agent-in-github-copilo t/



View Related Case Study

HOTSPOT (Drag and Drop is not supported)
Your company uses GitHub Copilot custom agents in Microsoft Visual Studio Code.
The company also uses the Copilot coding agent on GitHub issues.
You have a file named .planner.agent.md that defines an agent named planner.planner has tools set to ['search', 'read', 'fetch']. There are explicit instructions NOT to write or modify any code. The file also defines a handoff labeled Start Implementation to an agent named implementer and sets send to false.
Developers report that after the planner agent produces a plan, implementation sometimes starts immediately in the same conversation, and code changes appear without an explicit agent switch.
When Copilot-created pull requests stall, maintainers review the pull request timeline and session logs. Several stalled sessions show outbound network commands blocked by a firewall, and the repositories do NOT contain a .github/copilot-instructions.md file.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: No
The configuration of the planner agent alone does not explicitly or fully prevent code changes from being produced automatically in the same conversation.
Box 2: No
No, removing the search tool will not resolve the issue, because the planner agent is not the one executing the network requests or writing the code.
The underlying problem is that the handoff configuration has an logic error (send: false), which prevents a clean, explicit agent migration. Because of this, the implementer agent takes over implicitly within the same conversation session, executing background code changes and attempting blocked internet calls.
Box 3: No
No, adding a .github/copilot-instructions.md file demanding tests and linters will not mitigate the stalled pull requests.
The root cause of your stalling pull requests is an underlying network connectivity issue, not a procedural omission by the agent.


Reference:

https://docs.github.com/en/copilot/concepts/agents/cloud-agent/about-custom-agents



Viewing page 8 of 21
Viewing questions 36 - 40 out of 96 questions


Post your Comments and Discuss Microsoft GH-600 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!