GH-600 Exam Dumps & Practice Test
Developing in Agentic AI Systems Questions 5–9 (page: 3)

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 to resolve issues and create draft pull requests. The repository uses GitHub Actions for CI, and reviewers rely on pull request timelines and workflow artifacts to understand what the agent did.
During long-running agent tasks, the reviewers lose track of decisions and validation steps, which causes repeated questions and reworks when context drifts between iterations.
You need to persist task progress and decisions as durable artifacts and ensure that the reviewers can verify what the agent did during and after execution by using GitHub as the system of record.
What should you do for each requirement? To answer, drag the appropriate actions to the correct requirements. Each action 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: Use the upload-artifact action and configure artifact retention in the CI workflow
To meet this requirement you should use the actions/upload-artifact action and configure the retention-days property in your GitHub Actions CI workflow.
By default, GitHub retains workflow artifacts for a maximum of 90 days for public and private repositories (customizable down to 1 day). Utilizing these configurations ensures that human reviewers can download and inspect the agent's background outputs long after the initial execution concludes.
Box 2: Assign an issue and wait for the agent to view.
The best action is to assign an issue and wait for the agent to view.
Assigning a GitHub issue to the Copilot coding agent triggers it to autonomously start working on the background task.
While investigating code and implementing the required fixes, it provides real-time, human-reviewable progress updates directly within the issue or pull request timeline (such as showing a "Copilot has started work" event, or tracking its steps inside the agent workflow). This completely satisfies the requirement for ongoing, transparent signaling for reviewers.
Box 3: Select View session to stream live agent logs
You should select "View session" (or navigate to the Agents tab) on GitHub to stream live agent logs.
When using the GitHub Copilot cloud agent asynchronously to resolve issues and generate draft pull requests, the process occurs entirely in a GitHub-hosted background environment.
While automated status summaries eventually populate the pull request timeline, real-time auditing during an active run requires looking directly at the active session stream.


Reference:

https://docs.github.com/en/organizations/managing-organization-settings/configuring-the-retention-period-for-gi thub-actions-artifacts-and-logs-in-your-organization https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent



View Related Case Study

DRAG DROP (Drag and Drop is not supported)
You have a GitHub Enterprise Cloud Organization that uses the GitHub Copilot coding agent to resolve issues asynchronously.
When an issue is assigned to GitHub Copilot, the agent creates a draft pull request, but your team cannot always tell whether the agent is actively working, has completed its session, or is awaiting workflow approval.
Which execution context does each signal indicate? To answer, drag the appropriate context to the correct signals. Each signal 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: The agent acknowledges the assignment and will create the draft pull request.
When an issue is assigned to the GitHub Copilot coding agent, the eyes emoji reaction indicates that the agent has acknowledged the task and is actively starting work in the background.
Box 2: The agent session is actively running and generating live logs.
The signal indicating that "the pull request timeline shows Copilot started work" means that the agent session is actively running and generating live logs.
When a pull request timeline shows that Copilot started work, it indicates that the execution context is actively working.
Actively working: Indicated when the pull request timeline explicitly logs that Copilot started work or updates the PR body with a list of in-progress sub-tasks.
Box 3: A human must manually approve and run the workflow.
When a draft pull request exists but GitHub Actions checks are not running, it indicates that the execution context is awaiting workflow approval.


Reference:

https://docs.github.com/en/copilot/how-tos/copilot-on-github/use-copilot-agents/kick-off-a-task



View Related Case Study

You have a repository that uses the GitHub Copilot coding agent and supports hooks stored under .github/hooks.
You need a Shell command to run automatically whenever an agent execution fails.
Which type of hook should you use?

  1. postToolUse
  2. sessionEnd
  3. errorOccurred
  4. agentStop

Answer(s): C

Explanation:

To automatically run a Shell command whenever a GitHub Copilot coding agent execution fails, you should use the errorOccurred (also referred to as onErrorOccurred) hook.
Hook Mechanics & ConfigurationGitHub Copilot agent hooks are defined using JSON configuration files placed in the .github/hooks/ directory.
Event Type: errorOccurred (or onErrorOccurred depending on your specific environment and version).
Execution Behavior: When an execution fails, the agent stops, triggers this hook, and passes detailed error metrics and session context as a JSON payload to the script's standard input (stdin).
Incorrect:
[Not B]
sessionEnd - Agent session completes or is terminated.


Reference:

https://awesome-copilot.github.com/learning-hub/automating-with-hooks/



View Related Case Study

You are about to start a complex refactoring task in the GitHub Copilot CLI.
Before Copilot makes any changes, you need to review and agree on the approach.
What should you do first?

  1. Start the Copilot CLI and specify the --agent=Task parameter.
  2. Start the Copilot CLI and specify the --allow-all parameter.
  3. From the Copilot CLI, switch to plan mode.
  4. From the Copilot CLI, run the /compact command.

Answer(s): C

Explanation:

The first action you should take is to switch to Agent mode or use the Plan agent to review, edit, and approve a detailed step-by-step Markdown plan before any code is modified.
Use the Plan Agent: If available in your environment, trigger the plan phase so Copilot scans your codebase in a read-only state to outline its entire approach first.
Review the Proposed Plan: Carefully inspect the resulting Markdown structure to catch any architectural issues or wrong directions before the "doing" phase begins.
Utilize edit Mode Intentionally: Alternatively, if you prefer granular control over file adjustments rather than a fully autonomous agent workflow, opt for edit mode. This allows you to specifically select the target files and describe the natural language updates manually.


Reference:

https://aidevme.com/think-before-you-build-github-copilots-plan-agent-in-visual-studio-structured-ai-assisted-d evelopment/



View Related Case Study

DRAG DROP (Drag and Drop is not supported)
You have a GitHub Enterprise Cloud repository that uses the GitHub Copilot coding agent to resolve backlog issues by creating draft pull requests. The repository uses a GitHub Actions workflow for deployments to the production environment.
You discover that the workflow is being triggered before human review.
You need to configure GitHub controls to meet the following requirements:
● The workflow for the agent's draft pull requests must NOT run until a user that has write access approves the pull requests.
● Production deployment jobs must start only after a user with write access explicitly approves the jobs.
Which controls should you configure? To answer, drag the appropriate controls to the correct requirements. Each control 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: Approve and run the workflow from the pull request merge box.
To ensure that GitHub Actions workflows triggered by the GitHub Copilot cloud agent's draft pull requests do not run until manually approved by a user with write access, you must configure the Actions workflow approval settings at the repository level.
Follow these steps to set up this control:
1. On GitHub, navigate to the main page of your repository.
2. Under your repository name, click the Settings tab.
3. In the left sidebar under the Code, planning, and automation section, click Copilot, and then select Cloud agent.
*-> 4. In the Actions workflow approval section, locate the option to Require approval for workflow runs.
5. Enable this setting.
How This Works
Once enabled, GitHub treats the Copilot agent similarly to an outside contributor. Workflows will remain paused, and an authorized user with write access must manually review the pull request and click the Approve and run workflows button in the merge box before any actions execute.
Box 2: In the deployment job, configure the required reviewers for the production environment
To restrict production deployment jobs until a user with write access explicitly approves them, you need to configure GitHub Environments and associate them with a Required Reviewers deployment protection rule.
Because GitHub Copilot Cloud Agent triggers automated workflow runs by opening draft pull requests, enforcing this control at the environment level prevents any continuous delivery (CD) deployment jobs from executing before explicit human authorization.
Step 1: Create and Configure a Production Environment
Step 2: Set Up Required Reviewers
Step 3: Reference the Environment in Your GitHub Actions Workflow
Update your workflow YAML file (located at .github/workflows/) to bind your production deployment job to the created environment using the environment keyword.
How the Control Works in Practice
The Trigger: When the Copilot agent automatically opens a draft pull request, the GitHub Actions workflow will still start.
The Gate: As soon as the workflow execution hits the deploy job, GitHub will automatically pause it because it requires an environment check.
The Approval: The job will wait in a pending state until one of your designated Required Reviewers explicitly navigates to the workflow run page and clicks Review deployments to approve it.


Reference:

https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/configuring-agent-settings



Viewing page 3 of 21
Viewing questions 11 - 15 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!