GH-600 Exam Dumps & Practice Test
Developing in Agentic AI Systems Questions 2–6 (page: 6)

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

You have a GitHub repository.
You use the GitHub Copilot CLI to run an agentic workflow from the terminal.
During execution, the conversation history approaches the context limit. The agent cannot continue the current session unless the amount of retained context is reduced.
You need to continue the current session without losing all the prior progress.
Which Copilot CLI slash command should you run?

  1. /context
  2. /yolo
  3. /clear
  4. /compact

Answer(s): D

Explanation:

You should run the /compact slash command.
Context Management in GitHub Copilot CLI/compact: This command triggers the compaction process manually. It takes a snapshot of your full conversation history, sends it to the AI model to generate a summary, and replaces the bulky history with that concise summary. This reduces token usage instantly while preserving prior progress.


Reference:

https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview



View Related Case Study

You have a GitHub Enterprise repository.
An agent opens pull requests to the main branch.
You need to ensure that changes to .github/workflows/* and /infra/* require approval from designated reviewers before merge.
What should you configure?

  1. a ruleset and an agents.md file
  2. a ruleset and a .copilotignore file
  3. a branch protection rule and a CODEOWNERS file
  4. a branch protection rule and copilot-instructions.md

Answer(s): C

Explanation:

To secure these specific directories in your GitHub Enterprise repository, you need to configure CODEOWNERS combined with a Repository Branch Protection Rule.


Reference:

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/ap proving-a-pull-request-with-required-reviews



View Related Case Study

HOTSPOT (Drag and Drop is not supported)
You have a GitHub repository that uses the following GrtHub Copilot CLI command in a Bash script.

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: Yes
Setting --max-autopilot-continues 10 acts as a hard ceiling, preventing infinite loops by cutting off the execution the moment it reaches the 10-step limit.
Box 2: Yes
This command will allow the agent to use all local tools without prompting you for permission.
The --yolo flag is a built-in alias in the official GitHub Copilot CLI. It bypasses safety confirmation prompts by combining three specific permission-granting arguments: --allow-all-tools, --allow-all-paths, and --allow-all-urls.
Box 3: No
This specific command will not allow targeted human intervention at key decision points because it explicitly strips away all prompt checkpoints
The options configuration used in your script forces the GitHub Copilot CLI to bypass user confirmation entirely and execute the objective fully autonomously.


Reference:

https://pub.towardsai.net/i-stopped-prompting-github-copilot-and-started-delegating-to-it-fe2f12a21709?gi=fbf2 68b2a564
https://docs.github.com/en/copilot/concepts/agents/copilot-cli/autopilot



View Related Case Study

HOTSPOT (Drag and Drop is not supported)
You have a GitHub repository that uses GitHub Actions for CI.
Your team is piloting the GitHub Copilot coding agent to autonomously create branches and open pull requests. The repository follows trunk-based development that uses main as the default branch.
You need to ensure that the agent meets the following requirements:
-Changes to main can occur only by using pull requests that have at least one approval.
-When a pull request is opened, a validation workflow runs, and the agent can still create branches and open pull requests autonomously.
How should you configure the repository? To answer, select the appropriate options in the answer area.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Enabled
To meet the requirements, the Branch protection rule (main) - Require pull request before merging must be Enabled. This forces everyone—including GitHub Actions and AI agents—to create a branch and open a pull request first.
Box 2: on: pull_request
To allow your GitHub Copilot agent to autonomously open PRs while maintaining branch protection, you must trigger your validation workflow on the pull_request event.
Bypasses Protection: Agents cannot push directly to main due to your branch protection rule. They must create a feature branch and open a PR.Triggers on Creation: The pull_request trigger fires automatically the moment the agent opens a PR.Runs in Isolation: It validates the merged result of the agent's branch and main before any actual code is merged.


Reference:

https://tutorialsdojo.com/github-copilot-coding-agent/



View Related Case Study

You have a repository on github.com that uses the GitHub Copilot coding agent.
You also use the GitHub Copilot CLI locally to reproduce failures and continue the same work from your terminal.
You need to verify the current token usage.
Which Copilot CLI slash command should you run?

  1. /compact
  2. /diff
  3. /usage
  4. /context

Answer(s): D

Explanation:

To verify your current token usage in the GitHub Copilot CLI, you should run the /context slash command.
When you execute /context during your interactive terminal session, it visualizes your context window breakdown. It helps you track token consumption by explicitly mapping out:
The active AI model being used.
The number of used tokens versus total capacity.
Token distribution among the System Prompt, System/MCP Tools, and active Message History.
Remaining Free Space and reserved response buffers.


Reference:

https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview



Viewing page 6 of 21
Viewing questions 26 - 30 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!