GH-600: Developing in Agentic AI Systems practice questions, page 2 of 4, with answer review and explanations.
Question 6
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?
postToolUse
sessionEnd
errorOccurred
agentStop
Question 7
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?
Start the Copilot CLI and specify the --agent=Task parameter.
Start the Copilot CLI and specify the --allow-all parameter.
From the Copilot CLI, switch to plan mode.
From the Copilot CLI, run the /compact command.
Question 8
A team assigns an issue to the GitHub Copilot coding agent by using the following one-line description: Fix the login bug.Copilot creates a pull request, but the pull request is missing changes and has an incorrect scope.How should you resolve the issue?
Enable Copilot memory.
Update the Model Context Protocol (MCP) server rate limits.
Add a clear description of the problem to the issue.
Allocate more resources to copilot-setup-steps.yml.
Question 9
You have a GitHub repository that has a GitHub Actions workflow. The workflow runs an AI agent that deploys a containerized service. You need to update the workflow so that only one production deployment can run at a time, and any currently running production deployments are cancelled when a new run starts. How should you complete the workflow? 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.
Question 10
You have a GitHub repository that uses GitHub Actions to run an autonomous coding agent workflow. Your team requires that session logs be captured as workflow artifacts so that agent runs can be audited and traced back to a specific execution and code state. How should you complete the workflow? 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.