CertSafari

    Free GitHub Certified: Agentic AI Developer (GH-600) Sample Questions

    35 free sample questions from our bank of 344+, covering every exam domain, with answers and detailed explanations. Updated August 2026.

    Domain 1: Prepare agent architecture and SDLC processes

    Subdomain 1.2: Define boundaries between planning, reasoning, and action

    1.A developer runs the Plan agent in VS Code to scope a multi-day feature and then closes their editor for the night. Where can they and teammates find the saved implementation plan the next day for review?

    1. A.In the session memory file at /memories/session/plan.md
    2. B.In the pull request description of a PR the Plan agent opened automatically
    3. C.In a new GitHub issue the Plan agent created automatically
    4. D.In the repository's copilot-instructions.md file
    Show answer & explanation

    Correct answer: AIn the session memory file at /memories/session/plan.md

    • A. The Plan agent automatically writes its structured plan to this session memory file, making it an inspectable artifact that persists across sessions and is available for later review.
    • B. Planning happens before any pull request exists, and the Plan agent does not open a pull request on its own as part of producing a plan.
    • C. The planning workflow does not automatically file a GitHub issue; the plan is captured as a session memory artifact instead.
    • D. This file holds standing custom instructions that shape agent behavior generally, not the output of a single planning session.

    Subdomain 1.1: Integrate agents into the software development lifecycle (SDLC)

    2.A repository maintainer is about to assign a bug-fix issue to the coding agent. Which issue description best sets the agent up for success?

    1. A.A one-line note saying the login page is broken, with no other detail provided
    2. B.A clear problem description, acceptance criteria, and hints about which files are likely involved
    3. C.A full listing of every file in the repository, included for extra context
    4. D.A task assignment with a tight deadline but no stated acceptance criteria
    Show answer & explanation

    Correct answer: BA clear problem description, acceptance criteria, and hints about which files are likely involved

    • A. A one-line report with no scope or acceptance criteria leaves the agent guessing about what a successful fix looks like, which invites unpredictable changes. This is too vague to serve as a well-formed task definition.
    • B. A clear problem statement paired with acceptance criteria and file hints gives the agent a bounded, verifiable target, which is exactly what defining inputs and success criteria before delegation means. This combination lets both the agent and the reviewer judge whether the resulting change actually solves the problem.
    • C. Dumping the entire file tree does not narrow scope or define what a correct outcome looks like; it adds noise rather than the specific constraints the agent needs. Volume of context is not a substitute for clear acceptance criteria.
    • D. A deadline alone says nothing about what the finished work must satisfy, so the agent still lacks measurable success criteria. Time pressure without scope definition tends to produce rushed, poorly bounded changes.

    Subdomain 1.1: Integrate agents into the software development lifecycle (SDLC)

    3.After the coding agent opens a pull request implementing a requested feature, which step in the workflow should remain human-owned regardless of how well the agent performed?

    1. A.The final decision to review, test, and merge the pull request
    2. B.Writing the initial commit message for the feature branch
    3. C.Running the automated linter already configured in the repository
    4. D.Generating the implementation plan before code changes begin
    Show answer & explanation

    Correct answer: AThe final decision to review, test, and merge the pull request

    • A. Final review, testing, and the merge decision are the human checkpoint that agents are not permitted to bypass; the agent cannot merge to the default branch itself, and this step catches issues the agent may have missed. This ownership stays with a person no matter how strong the agent's track record is.
    • B. Commit message writing is one of the routine steps the coding agent can perform on its own as part of implementation. It is not a decision point that needs to stay human-owned.
    • C. Running an already-configured linter is a mechanical, automated step the agent can trigger as part of its workflow. It does not require a human to perform it directly.
    • D. Generating the plan is typically produced by the agent itself before execution; it is reviewed by a human, but the generation step is agent-owned, not the human-owned action described here. The human's role is approving the plan, not producing it.

    Subdomain 1.3: Configure observability and control for autonomous agents

    4.A developer runs Copilot CLI with the flag that grants full autopilot permissions so it can complete a multi-step refactor without pausing for confirmation. What tradeoff does this autonomy setting introduce?

    1. A.The CLI executes file edits and commands without asking permission for each step
    2. B.The CLI restricts itself to read-only operations for the remainder of the session
    3. C.The CLI automatically opens a pull request instead of committing locally
    4. D.The CLI disables session logging so no audit trail is produced
    Show answer & explanation

    Correct answer: AThe CLI executes file edits and commands without asking permission for each step

    • A. This is correct: granting full permissions removes the per-action confirmation prompts, letting the CLI modify files and run commands unattended for the rest of the task.
    • B. Incorrect. Autopilot-style full permissions expand what the CLI can do without asking, rather than narrowing it to read-only operations.
    • C. Incorrect. Granting broad execution permission is about skipping confirmation prompts, not about changing whether output goes to a local commit versus a pull request.
    • D. Incorrect. Removing per-action approval prompts does not turn off session logging; the audit trail continues to be produced regardless of the permission level chosen.

    Subdomain 1.3: Configure observability and control for autonomous agents

    5.A security-conscious org configures its repository so that when the coding agent opens a pull request, any Actions workflow it triggers will not run until a ____ approves it.

    1. A.user with repository write access
    2. B.billing administrator
    3. C.second AI agent
    Show answer & explanation

    Correct answer: Auser with repository write access

    • A. This is correct: GitHub requires approval from a user with repository write access before an Actions workflow triggered by the agent's pull request will run.
    • B. Incorrect. Billing administrators manage cost and license settings; they are not the role responsible for approving CI runs from agent PRs.
    • C. Incorrect. There is no built-in mechanism where a second AI agent serves as the human approval gate for Actions runs.

    Domain 2: Implement tool use and environment interaction

    Subdomain 2.1: Select and configure agent tools

    6.A developer writes `tools: ["read", "edit", "runTestsNow"]`, where "runTestsNow" does not match any built-in alias, MCP tool, or extension tool. What happens when this agent runs?

    1. A.The agent loads normally with read and edit access; the unrecognized name is silently ignored.
    2. B.The agent fails to load because the unrecognized name cannot be resolved to any known tool.
    3. C.The agent loses read and edit access because one entry in the list was invalid.
    4. D.The unrecognized name is automatically converted into a new MCP server placeholder.
    Show answer & explanation

    Correct answer: AThe agent loads normally with read and edit access; the unrecognized name is silently ignored.

    • A. Unrecognized tool names are ignored rather than causing an error, which lets product-specific tool names be listed safely alongside valid aliases.
    • B. Configuration loading does not fail on an unrecognized entry; it is simply dropped while the rest of the list is honored.
    • C. An invalid entry does not invalidate the other valid entries in the same list; read and edit remain active.
    • D. Unrecognized names are dropped, not turned into new server registrations, since no such auto-provisioning behavior exists.

    Subdomain 2.1: Select and configure agent tools

    7.The built-in ___ MCP server included with custom agents exposes read-only tools scoped to the agent's source repository.

    1. A.github
    2. B.playwright
    3. C.filesystem
    Show answer & explanation

    Correct answer: Agithub

    • A. This built-in server is the one documented as providing read-only tools scoped to the source repository.
    • B. This built-in server instead provides browser automation limited to localhost, not repository-scoped read access.
    • C. No built-in MCP server by this name ships with custom agents by default.

    Subdomain 2.2: Configure MCP servers

    8.A custom agent needs the GitHub remote MCP server to reach repositories beyond the one it is currently executing in. What should the admin configure to grant this broader access?

    1. A.A personal access token stored as a Copilot secret named COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN
    2. B.A plain repository variable named GITHUB_TOKEN referenced inside the server's args array
    3. C.An org-wide flag set to true inside the mcpServers object
    4. D.A second remote server entry pointing at the same url but with type set to local
    Show answer & explanation

    Correct answer: AA personal access token stored as a Copilot secret named COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN

    • A. Storing a personal access token as a Copilot secret with the COPILOT_MCP_ prefix and referencing it lets the GitHub remote MCP server authenticate for access beyond the current repository.
    • B. A plain repository variable is not treated as a Copilot secret and args is not evaluated for a remote server, so this would neither authenticate the request nor grant broader scope.
    • C. There is no org-wide access flag inside an individual server entry; broader repository access is granted through an authenticated token, not a boolean setting.
    • D. A remote endpoint cannot be reinterpreted as a local process by changing type to local; the type must match how the server is actually reached, and this would break the connection rather than widen access.

    Subdomain 2.2: Configure MCP servers

    9.An organization wants to guarantee that developers can only run MCP servers that have been vetted and published to its private registry, blocking arbitrary community servers. Which access policy should the admin select?

    1. A.Registry only
    2. B.Allow all
    3. C.Enabled everywhere
    4. D.Local servers disabled
    Show answer & explanation

    Correct answer: ARegistry only

    • A. Registry only restricts MCP usage to servers listed in the configured registry, which matches the goal of blocking any server that has not been vetted and published there.
    • B. Allow all removes restrictions entirely and permits any MCP server, which is the opposite of what the organization is trying to enforce.
    • C. Enabled everywhere governs whether MCP support itself is turned on across the organization; it does not restrict which servers may be used once MCP is enabled.
    • D. There is no policy option that disables only local servers while leaving remote servers unrestricted; access is governed by the registry-based policy, not by server transport.

    Subdomain 2.3: Integrate agents within development environments

    10.A repository admin is reviewing what Copilot cloud agent is capable of doing autonomously on a single assigned task, before any human intervenes. Select all actions that are within the agent's default autonomous capability for that task.(Select 3)

    1. A.Creating a new branch to hold its work
    2. B.Writing commit messages and pushing commits to that branch
    3. C.Opening a pull request for the completed work
    4. D.Marking its own pull request as Ready for review
    5. E.Approving and merging its own pull request
    6. F.Running its own Actions workflow immediately without waiting for approval
    Show answer & explanation

    Correct answers: A, B, CCreating a new branch to hold its work; Writing commit messages and pushing commits to that branch; Opening a pull request for the completed work

    • A. Branch creation is one of the core autonomous actions the agent automates for a task, forming the destination for its committed work.
    • B. The agent automates commit message writing and pushing to its working branch as part of standard autonomous execution.
    • C. Opening a pull request to present the completed work is a standard autonomous action the agent performs once its task is done.
    • D. The agent cannot mark its own pull request as Ready for review; that step requires human action, so this is not within its autonomous capability.
    • E. The agent cannot approve or merge a pull request; merging authority is intentionally withheld and requires human review and approval.
    • F. Workflows triggered by the agent's pushed code do not run automatically by default; a user with write access must click Approve and run workflows first.

    Subdomain 2.3: Integrate agents within development environments

    11.A custom agent's YAML frontmatter sets target to ___ so that the agent is available in the VS Code chat experience but not surfaced within the github.com Copilot interface.

    1. A.vscode
    2. B.github-copilot
    3. C.cloud-agent
    Show answer & explanation

    Correct answer: Avscode

    • A. Setting target to vscode scopes the custom agent to the VS Code environment specifically, which is exactly the restriction described in the scenario.
    • B. github-copilot is the other valid value for this property, but it scopes the agent to the github.com interface, the opposite of what the scenario asks for.
    • C. cloud-agent is not a documented valid value for the target property, which only accepts vscode or github-copilot.

    Subdomain 2.4: Operate agents with safe execution paths and robust error handling

    12.Copilot coding agent opens a pull request containing a database migration that a reviewer immediately recognizes as wrong and wants undone before it can affect anything. Because the change never left the agent's own branch, what does "rollback" effectively mean in this situation?

    1. A.Closing or discarding the agent's pull request and branch, since the change was never merged into the default branch.
    2. B.Running a forced push from the agent's session to overwrite the default branch with the prior commit history.
    3. C.Asking the agent to submit a compensating migration that runs automatically on the next scheduled deployment.
    4. D.Reverting the change through the agent's administrator console, which restores the repository to a prior snapshot.
    Show answer & explanation

    Correct answer: AClosing or discarding the agent's pull request and branch, since the change was never merged into the default branch.

    • A. This is correct. Because the agent cannot push to or merge into the default branch, the migration only ever existed on its own branch, so simply closing the pull request and discarding the branch fully undoes the exposure.
    • B. Incorrect. The agent has no push access to the default branch at all, so it could never force-push over its history in the first place; this describes a capability the agent does not have.
    • C. Incorrect. A compensating migration assumes the original change already reached a deployed environment, which contradicts the premise that the change stayed isolated on the agent's own branch.
    • D. Incorrect. There is no administrator console that snapshots and restores the whole repository on the agent's behalf; recovery here relies on the branch never having merged, not on a restore feature.

    Subdomain 2.4: Operate agents with safe execution paths and robust error handling

    13.Before Copilot coding agent marks a pull request as ready, its automated scans flag a secret accidentally hard-coded in a config file. What does the agent's default error-handling behavior do with that finding?

    1. A.It attempts to resolve the identified issue itself before completing the pull request.
    2. B.It ignores the finding entirely, since secret scanning only runs after a human approves the pull request.
    3. C.It automatically rotates the leaked credential in the target production system on the organization's behalf.
    4. D.It deletes the entire branch and silently opens a fresh pull request with no record of the finding.
    Show answer & explanation

    Correct answer: AIt attempts to resolve the identified issue itself before completing the pull request.

    • A. This is correct. The agent attempts to resolve issues identified by its pre-completion scans, including secret detection, dependency checks, and CodeQL, before it finishes the pull request.
    • B. Incorrect. Secret scanning and related checks run as part of the agent's own pre-completion process, not only after a human has already approved the pull request.
    • C. Incorrect. The agent's remediation is limited to the code and pull request it is working on; it does not reach into external production systems to rotate live credentials.
    • D. Incorrect. Silently discarding the branch and starting over with no record would erase the finding rather than surface and address it, which contradicts the documented remediation behavior.

    Domain 3: Manage memory, state, and execution

    Subdomain 3.1: Implement agent memory strategies

    14.An engineer working across two unrelated repositories in the same VS Code window expects conventions learned while working in repository A to also apply automatically in repository B. Why does this not happen?

    1. A.Repository memory under /memories/repo/ is workspace-scoped and does not transfer between different projects
    2. B.Session memory under /memories/session/ only persists for a single conversation and is discarded after
    3. C.User memory under /memories/ only stores universal preferences, not codebase-specific conventions
    4. D.GitHub Copilot Memory facts require write access validation separately in each repository before reuse
    Show answer & explanation

    Correct answer: ARepository memory under /memories/repo/ is workspace-scoped and does not transfer between different projects

    • A. This is correct: repository memory is tied to a single workspace, so conventions captured while working in one project do not carry over into a different, unrelated project.
    • B. This statement about session memory is true in general but does not explain why cross-repository conventions fail to carry over, since the scenario is about repository-scoped, not session-scoped, knowledge.
    • C. This is true of user memory in isolation, but the conventions in question were captured as repository-level knowledge, not as a universal user preference, so this does not explain the observed behavior.
    • D. Write-access validation governs who can create a GitHub-hosted fact, not why local VS Code repository memory fails to transfer between separate workspaces.

    Subdomain 3.1: Implement agent memory strategies

    15.In VS Code, the Plan agent automatically saves its implementation plan to a session memory file located at ___.

    1. A./memories/session/plan.md
    2. B./memories/repo/plan.md
    3. C./memories/plan.md
    Show answer & explanation

    Correct answer: A/memories/session/plan.md

    • A. This is the correct path: the Plan agent writes its implementation plan into session memory specifically, at this file location, which is cleared when the conversation ends.
    • B. This path belongs to repository memory, a different scope that persists across conversations in a workspace; the Plan agent does not write plan.md there.
    • C. This path belongs to user memory, which stores cross-workspace personal preferences, not the Plan agent's session-specific implementation plan.

    Subdomain 3.2: Persist agent state and manage context drift

    16.GitHub's agentic memory system stored a fact that 'the client SDK, server routes, and documentation must all use the same API version,' with citations to the specific files that supported this claim. In a later session, an agent retrieves this memory but finds that one of the cited files no longer matches the stated claim. According to the system's design, what should the agent do?

    1. A.Discard the memory permanently and never check API version consistency again in this repository.
    2. B.Re-verify the claim against the current code, then store a corrected memory that reflects what the citations now show.
    3. C.Apply the outdated memory as written, since stored facts are treated as permanently authoritative once validated once.
    4. D.Escalate the discrepancy to a human reviewer before taking any further action on the current task.
    Show answer & explanation

    Correct answer: BRe-verify the claim against the current code, then store a corrected memory that reflects what the citations now show.

    • A. Incorrect — discarding the fact entirely throws away a still-useful pattern instead of correcting it, and the system is designed to heal stale memories rather than delete the underlying insight.
    • B. Correct — the memory system performs just-in-time verification by checking cited code locations before use, and when a citation no longer supports the claim, the agent stores a corrected version reflecting current evidence, which is the self-healing behavior described for this system.
    • C. Incorrect — treating a stored fact as permanently authoritative contradicts the system's citation-checking design, which exists specifically to catch facts that have gone stale as code changes.
    • D. Incorrect — the described workflow handles drift through automated re-verification and correction rather than routing every citation mismatch to a human, which would undermine the purpose of the self-healing mechanism.

    Subdomain 3.2: Persist agent state and manage context drift

    17.Partway through a long-running coding agent session, the agent's most recent actions begin contradicting a decision it made and recorded earlier in the same task, such as reverting to a naming pattern it had already rejected. What is the most effective way to correct this drift before the agent continues further?

    1. A.Let the agent keep working, since contradictions typically resolve themselves once the task is complete.
    2. B.Have the agent re-check its recorded decisions and current state against the durable artifacts it produced earlier, then reconcile before proceeding.
    3. C.Restart the entire task from the very first step, discarding all completed work so far.
    4. D.Suppress the disagreement by disabling further validation for the rest of the session.
    Show answer & explanation

    Correct answer: BHave the agent re-check its recorded decisions and current state against the durable artifacts it produced earlier, then reconcile before proceeding.

    • A. Incorrect — unaddressed contradictions tend to compound over a long-running task rather than self-resolve, since nothing forces the agent to reconcile them.
    • B. Correct — reviewing the earlier recorded decisions and artifacts, then explicitly reconciling the current action against them, is how drift is detected and corrected during extended execution without losing prior progress.
    • C. Incorrect — discarding all completed work is a costly overreaction when the earlier progress is still valid; the goal is to reconcile the drift, not erase legitimate progress.
    • D. Incorrect — turning off validation removes the mechanism that would catch further contradictions, making the drift more likely to persist rather than be corrected.

    Subdomain 3.3: Ensure continuity of agent memory and state across tools and environments

    18.A memory fact continues to be actively used and confirmed as accurate across many agent sessions over several months. According to the organic refresh mechanism described for the agentic memory system, what keeps this still-valid memory from being deleted by the 28-day inactivity rule?

    1. A.When a memory is validated as still correct during use, the agent is encouraged to store it again, which refreshes its timestamp and resets the inactivity clock
    2. B.Memories that have been used more than a fixed number of times become permanently exempt from the 28-day expiration rule
    3. C.An administrator must manually mark the memory as permanent before it stops counting toward the inactivity window
    4. D.The memory is duplicated into a separate long-term archive after its first successful validation, bypassing expiration entirely
    Show answer & explanation

    Correct answer: AWhen a memory is validated as still correct during use, the agent is encouraged to store it again, which refreshes its timestamp and resets the inactivity clock

    • A. The system avoids complex curation by having agents re-store a memory when it is confirmed valid during use, which refreshes its timestamp; this organic refresh is what protects actively used, accurate memories from the unused-for-28-days expiration.
    • B. There is no documented usage-count threshold that grants permanent exemption; the refresh mechanism is based on re-storing the memory to reset its timestamp, not on accumulating a use count.
    • C. No manual administrator marking step is described for exempting individual memories from expiration; the refresh happens automatically through agent behavior during retrieval and validation.
    • D. The design intentionally avoids a separate archival tier or duplication step, favoring a simple timestamp-refresh approach over maintaining parallel long-term storage.

    Domain 4: Perform evaluation, error analysis, and tuning

    Subdomain 4.1: Define success criteria and evaluation signals for agent tasks

    19.A contributor wants feedback on a pull request while it is still in draft, before publishing it for team-wide visibility. Which recent interface change makes this easier?

    1. A.A Request button appears directly in the reviewer picker on draft pull requests
    2. B.Draft pull requests automatically merge once Copilot leaves a comment
    3. C.Copilot code review is disabled entirely for draft pull requests
    4. D.Draft pull requests must be converted to CodeQL workflows first
    Show answer & explanation

    Correct answer: AA Request button appears directly in the reviewer picker on draft pull requests

    • A. Correct. A Request button now appears in the reviewer picker directly on draft pull requests, removing the need to search for Copilot to get preliminary feedback before publishing.
    • B. Incorrect. Copilot's review is a Comment-only review and does not trigger an automatic merge of a draft pull request.
    • C. Incorrect. The improvement makes requesting review on drafts easier, not disabled.
    • D. Incorrect. There is no requirement to convert a draft pull request into a CodeQL workflow to request review.

    Subdomain 4.1: Define success criteria and evaluation signals for agent tasks

    20.A repository already has a .github/copilot-instructions.md file, and the team is deciding whether an AGENTS.md file would add anything different. How do the two typically differ in purpose for shaping review feedback?

    1. A.copilot-instructions.md gives repository-wide review guidance, while AGENTS.md communicates broader architectural context and intentional patterns
    2. B.They are functionally identical and one always overrides the other
    3. C.AGENTS.md only affects the ephemeral execution environment, never review feedback
    4. D.copilot-instructions.md is deprecated and has been fully replaced by AGENTS.md
    Show answer & explanation

    Correct answer: Acopilot-instructions.md gives repository-wide review guidance, while AGENTS.md communicates broader architectural context and intentional patterns

    • A. Correct. copilot-instructions.md supplies repository-wide guidance for reviews, while AGENTS.md communicates broader architecture and intentional design patterns that help shape contextually appropriate feedback.
    • B. Incorrect. The two files serve complementary, not identical, purposes and can both be used together.
    • C. Incorrect. AGENTS.md is read by Copilot code review to shape feedback, not limited to environment execution.
    • D. Incorrect. copilot-instructions.md remains a supported mechanism and is not deprecated by AGENTS.md.

    Subdomain 4.2: Analyze agent failures and identify root causes

    21.A coding agent's task fails during the test phase because a required API key was not available in the ephemeral development environment, even though the agent's plan and code changes were logically correct. How should this failure be classified?

    1. A.Context or environment issue, because the ephemeral environment was missing configuration the task depended on
    2. B.Reasoning error, because the agent misunderstood the task requirements
    3. C.Tool misuse, because the agent invoked the wrong test runner
    4. D.Reasoning error, because the agent's plan omitted a necessary step
    Show answer & explanation

    Correct answer: AContext or environment issue, because the ephemeral environment was missing configuration the task depended on

    • A. The plan and code were sound, and the failure traces directly to a missing API key in the ephemeral environment. That is a condition external to the agent's own logic and tool usage, which is exactly what defines a context or environment issue.
    • B. The scenario explicitly states the plan and code changes were logically correct, so the requirements were understood properly. A reasoning error would require a flaw in the agent's decision-making, which is not present here.
    • C. Nothing indicates the wrong test runner was invoked; the tests failed because a credential was absent, not because of how the test tool was called.
    • D. The plan is described as logically correct, so there is no indication a necessary step was omitted from it. The missing piece was environmental configuration, not a planning gap.

    Subdomain 4.2: Analyze agent failures and identify root causes

    22.When an agent's task fails because the ephemeral development environment lacked network access to a required package registry, the failure is best classified as a ____ rather than a reasoning error.

    1. A.context or environment issue
    2. B.tool misuse issue
    3. C.plan artifact mismatch
    Show answer & explanation

    Correct answer: Acontext or environment issue

    • A. Missing network access in the ephemeral environment is a condition outside the agent's own logic and tool choices, which is the defining trait of a context or environment issue.
    • B. Tool misuse would involve the agent invoking a tool incorrectly, not the environment lacking network access to a registry.
    • C. A plan artifact mismatch describes a divergence between the agent's stated plan and its final output, not a blocked network path in the environment.

    Subdomain 4.3: Tune agent behavior based on evaluation results

    23.During a pull request review, Copilot code review reads repository custom instructions and AGENTS.md content from the ___ branch, which lets a team test tuned instructions within the same PR before merging.

    1. A.head
    2. B.base
    3. C.default
    Show answer & explanation

    Correct answer: Ahead

    • A. Correct — Copilot code review pulls repository custom instructions and agent context from the pull request's head branch, so edits made within that PR are reflected in its own reviews immediately.
    • B. Incorrect — the base branch is the target of the merge; Copilot code review does not wait for changes to land there before applying updated instructions.
    • C. Incorrect — there is no separate 'default branch only' rule for reading custom instructions during a pull request review; the head branch of the PR is what's read.

    Subdomain 4.3: Tune agent behavior based on evaluation results

    24.To insert an approval step immediately before a coding agent executes a potentially destructive tool call, a developer should implement a ___ that runs custom logic at that point in the session.

    1. A.lifecycle hook
    2. B.feedback form
    3. C.advisory database check
    Show answer & explanation

    Correct answer: Alifecycle hook

    • A. Correct — a lifecycle hook runs custom logic at a defined point in the session, such as immediately before a tool call, making it the mechanism for inserting a required approval step.
    • B. Incorrect — feedback mechanisms like thumbs up/down or `/feedback` report on past behavior after the fact; they don't gate or intercept a tool call before it runs.
    • C. Incorrect — this refers to checking dependencies against a vulnerability database, which is unrelated to gating tool execution with an approval step.

    Domain 5: Orchestrate multi-agent coordination

    Subdomain 5.1: Operate and manage multi-agent workflows

    25.A platform team is designing several custom agents that must run at the same time without interfering with each other's edits or duplicating each other's work. Which of the following configurations correctly support isolating custom agents for safe parallel execution? (Select all that apply)(Select 3)

    1. A.Restricting each agent's tools list to only the capabilities its assigned task requires.
    2. B.Configuring every agent to share the exact same MCP server access so behavior stays uniform.
    3. C.Assigning each agent a non-overlapping task boundary so their file edits don't collide.
    4. D.Sharing one combined tools list across all agents so behavior stays consistent.
    5. E.Letting every agent auto-invoke via intent matching regardless of task overlap.
    6. F.Using Fleet mode to dispatch agents in parallel while each retains its own isolated context.
    Show answer & explanation

    Correct answers: A, C, FRestricting each agent's tools list to only the capabilities its assigned task requires.; Assigning each agent a non-overlapping task boundary so their file edits don't collide.; Using Fleet mode to dispatch agents in parallel while each retains its own isolated context.

    • A. Correct. Restricting each agent's tool list to only what its task needs enforces least privilege and limits how much one agent's actions can interfere with another's.
    • B. Incorrect. Giving every agent identical, unrestricted MCP access removes the boundaries that keep parallel agents from stepping on each other's work.
    • C. Correct. Non-overlapping task boundaries mean agents are less likely to edit the same files or duplicate the same work when running in parallel.
    • D. Incorrect. A single shared tools list across all agents removes the per-agent restriction that isolation depends on.
    • E. Incorrect. Allowing unrestricted auto-invocation regardless of task overlap increases the chance that multiple agents pick up the same or conflicting work.
    • F. Correct. Fleet mode is designed to dispatch multiple sub-agents in parallel while each keeps its own isolated execution context, supporting safe simultaneous execution.

    Subdomain 5.1: Operate and manage multi-agent workflows

    26.While auditing an agent's YAML frontmatter, a reviewer notices the tools property has been left ___, which explains why the agent can call every available tool instead of a restricted subset.

    1. A.empty (set to an empty list)
    2. B.unset (omitted)
    3. C.pointed at a single MCP server
    Show answer & explanation

    Correct answer: Bunset (omitted)

    • A. Incorrect. An empty list disables all tool access rather than granting access to every available tool.
    • B. Correct. Omitting the tools property is what grants the agent access to every available tool instead of a restricted subset.
    • C. Incorrect. Pointing tools at a single MCP server would scope the agent to that server's tools only, not grant access to everything available.

    Subdomain 5.2: Configure observability for multi-agent behavior by using logs, artifacts, and operational signals

    27.After a multi-agent workflow finishes with an unexpected result, an analyst wants to reconstruct the sequence of sub-agent selections, starts, and outcomes purely after the fact, without re-running anything. Which operational signal supports that kind of post-hoc reconstruction?

    1. A.The stream of subagent lifecycle events recorded for the session
    2. B.The repository's default firewall allow-list configuration
    3. C.The organization's Copilot seat licensing usage report
    4. D.The static YAML frontmatter defined in each agent profile
    Show answer & explanation

    Correct answer: AThe stream of subagent lifecycle events recorded for the session

    • A. The recorded stream of selection, start, completion, failure, and deselection events for the session is exactly the durable record that allows an analyst to replay the sequence after the fact.
    • B. The firewall allow-list controls what network destinations an agent's environment can reach; it says nothing about the order in which sub-agents were invoked.
    • C. Seat licensing usage reflects billing and consumption across users, not the sequence of events within a single multi-agent session.
    • D. Frontmatter is fixed configuration written before any run starts; it does not change per invocation and cannot show what actually happened during a specific run.

    Subdomain 5.2: Configure observability for multi-agent behavior by using logs, artifacts, and operational signals

    28.A team is assembling an audit package that reviewers can inspect after a multi-agent coding workflow finishes, to understand what each agent decided and produced. Which of the following belong in that package? (Select all that apply)(Select 3)

    1. A.The pull request note naming which custom agent produced the changes
    2. B.The Agent-Logs-Url trailer linking the commit to its full session logs
    3. C.The captured subagent lifecycle event stream for that session
    4. D.The organization's default branch protection ruleset text
    5. E.The list of VS Code extensions currently installed locally
    6. F.The enterprise's billing invoice for Copilot seat licenses
    Show answer & explanation

    Correct answers: A, B, CThe pull request note naming which custom agent produced the changes; The Agent-Logs-Url trailer linking the commit to its full session logs; The captured subagent lifecycle event stream for that session

    • A. This note gives reviewers immediate attribution of which agent produced the work, a core piece of a review/audit artifact set.
    • B. This trailer is the permanent link from the commit to the complete session reasoning, making it essential for auditing why a change was made.
    • C. This event stream is the durable record of selections, starts, completions, and failures across agents, letting reviewers reconstruct decisions and handoffs after the fact.
    • D. Ruleset text describes merge policy for the whole repository and does not document what any particular agent decided or produced during the workflow.
    • E. A local developer's installed extensions are personal tooling configuration and have no bearing on what agents decided or produced in the workflow.
    • F. A billing invoice reflects license consumption costs and provides no information about agent decisions, handoffs, or outcomes.

    Subdomain 5.3: Detect and respond to multi-agent failures and degraded behavior

    29.During a code audit, a team discovers that a sub-agent configured as read-only (tools: [grep, glob, view]) somehow committed a file change. This is a sign of degraded multi-agent behavior. What is the most likely root cause to investigate first?

    1. A.The sub-agent's tools property was misconfigured, granting write access
    2. B.The parent session's context window was too small for the history
    3. C.The default branch protection ruleset was temporarily disabled
    4. D.The MCP registry policy was set to Registry only, not Allow all
    Show answer & explanation

    Correct answer: AThe sub-agent's tools property was misconfigured, granting write access

    • A. A read-only sub-agent committing a change directly contradicts its declared tools property, so the most direct explanation is that its tool configuration was overridden or misconfigured to include write-capable tools.
    • B. A context window that is too small would cause the sub-agent to lose relevant history or reasoning quality, not grant it a tool it was never configured to have.
    • C. Branch protection rulesets control who can merge into a protected branch, but a disabled ruleset would not explain how a read-only agent obtained the ability to write a commit at all.
    • D. MCP registry access policy governs which MCP servers an agent may connect to, not whether a sub-agent's own tools property includes write-capable actions like committing a file.

    Subdomain 5.3: Detect and respond to multi-agent failures and degraded behavior

    30.By default, GitHub Copilot cloud agent executes each session on a freshly provisioned, ___ runner, which limits the blast radius of a failed or misbehaving session.

    1. A.ephemeral, GitHub-hosted
    2. B.persistent, self-hosted
    3. C.shared, org-wide
    Show answer & explanation

    Correct answer: Aephemeral, GitHub-hosted

    • A. Each cloud agent session runs on a fresh, ephemeral GitHub-hosted virtual machine, so a failed or compromised session leaves no persistent state that could affect later runs.
    • B. A persistent self-hosted runner would retain state between sessions, which is the opposite of the isolation the ephemeral runner model is designed to provide.
    • C. A shared org-wide runner would risk one session's failure or misbehavior affecting other concurrent sessions, contrary to the per-session isolation cloud agent actually uses.

    Subdomain 5.4: Manage the lifecycle of agents within multi-agent workflows

    31.In a custom agent profile file for Copilot, what determines the agent's unique identifier used for deduplication across repository, organization, and enterprise configuration levels?

    1. A.The filename, minus its .md or .agent.md extension.
    2. B.The description field text.
    3. C.The Git commit SHA of the most recent change to the file.
    4. D.The target field value.
    Show answer & explanation

    Correct answer: AThe filename, minus its .md or .agent.md extension.

    • A. Correct. The identifier that lets a lower-level profile override a higher-level one of the same agent is the filename with its extension stripped, which is why renaming a file changes an agent's identity.
    • B. Incorrect. The description is used for intent-matching and documentation purposes, not for deduplicating an agent's identity across levels.
    • C. Incorrect. The commit SHA is used to pin which version of a profile an already-started session follows, not to identify which agent a file represents.
    • D. Incorrect. The target field selects an environment such as an editor or cloud agent context; it does not serve as the agent's cross-level identifier.

    Subdomain 5.4: Manage the lifecycle of agents within multi-agent workflows

    32.A compliance-minded team is retiring the credentials-bot custom agent that has been used across many historical pull requests. They want to remove it from active use while keeping the workflow's audit trail intact. Which of the following actions support that goal? (Select all that apply.)(Select 3)

    1. A.Delete the agent profile file via a normal commit, leaving its full history visible in the repository's Git log.
    2. B.Leave existing pull requests and issue comments that reference credentials-bot untouched rather than editing or deleting them.
    3. C.Communicate the retirement so other teams stop assigning new work to the agent going forward.
    4. D.Squash and force-push over the repository's history to erase every commit that ever touched the agent's profile file.
    5. E.Rewrite historical pull request descriptions to remove any mention of which agent produced the change.
    Show answer & explanation

    Correct answers: A, B, CDelete the agent profile file via a normal commit, leaving its full history visible in the repository's Git log.; Leave existing pull requests and issue comments that reference credentials-bot untouched rather than editing or deleting them.; Communicate the retirement so other teams stop assigning new work to the agent going forward.

    • A. Correct. A normal delete commit removes the agent from active use while the file's prior history stays intact in the log, preserving the record of what the agent was and did.
    • B. Correct. Keeping historical references untouched preserves the trail of which agent produced which change, which is exactly what auditability of past work requires.
    • C. Correct. Announcing the retirement stops new work from being assigned to a agent that is being phased out, which is part of managing the lifecycle transition cleanly, alongside preserving prior records.
    • D. Incorrect. Force-pushing to erase commit history destroys the very audit trail the team is trying to preserve, making past decisions untraceable.
    • E. Incorrect. Rewriting historical descriptions to remove agent attribution actively undermines auditability rather than supporting it.

    Domain 6: Implement guardrails and accountability

    Subdomain 6.1: Define autonomy levels

    33.An agent-generated pull request edits a workflow YAML file to add a new permission scope for GITHUB_TOKEN, while a separate agent-generated pull request only fixes a typo in an internal wiki page. How should these two actions be classified for autonomy purposes?

    1. A.The workflow permission change is a security risk requiring tighter review, while the typo fix is low operational risk needing only standard review
    2. B.Both changes carry identical risk since both are handled by the same agent under the same permissions
    3. C.The typo fix is the higher risk action because documentation changes are harder to detect than code changes
    4. D.The workflow permission change should be treated as purely a compliance risk with no security implications
    Show answer & explanation

    Correct answer: AThe workflow permission change is a security risk requiring tighter review, while the typo fix is low operational risk needing only standard review

    • A. Expanding token permissions can enable privilege escalation and is a security concern warranting elevated scrutiny, while a wiki typo is trivial and low-impact.
    • B. Risk classification depends on what the change touches, not on which actor or permission set produced it.
    • C. A documentation typo has minimal blast radius and does not outweigh a token permission change in operational or security risk.
    • D. Broadened token permissions are fundamentally a security concern first, even though compliance implications may also follow.

    Subdomain 6.2: Implement guardrails and human-in-the-loop workflows

    34.A team building a custom agent workflow with an SDK wants to insert custom safety checks and audit logging before any tool executes. What should they implement?

    1. A.A lifecycle hook such as onPreToolUse that runs custom validation before tool execution
    2. B.A cron job that periodically scans commit history for suspicious tool usage
    3. C.A separate agent instance dedicated solely to reviewing the first agent's output
    4. D.A static configuration file listing every tool call the agent is permitted to make
    Show answer & explanation

    Correct answer: AA lifecycle hook such as onPreToolUse that runs custom validation before tool execution

    • A. This is correct because SDK lifecycle hooks such as onPreToolUse and onPostToolUse are designed exactly for inserting custom safety checks, audit logging, and approval workflows around tool execution.
    • B. This is incorrect because a periodic scan of past commits only detects issues after the fact and does not intercept a tool call before it runs.
    • C. This is incorrect because a separate reviewing agent adds complexity without using the built-in hook mechanism designed for pre-execution checks.
    • D. This is incorrect because a static allowlist file cannot perform dynamic validation or audit logging at the moment each tool call happens.

    Subdomain 6.2: Implement guardrails and human-in-the-loop workflows

    35.A user without write access to the repository tries to assign a task to the cloud agent by commenting on an issue. The agent will not respond because, by default, only users with ___ can trigger it.

    1. A.write access to the repository
    2. B.admin access to the organization
    3. C.read access to any public repository
    Show answer & explanation

    Correct answer: Awrite access to the repository

    • A. This is correct because the default trigger guardrail limits who can assign tasks to the agent to users who already hold write access to the repository.
    • B. This is incorrect because organization admin access is a broader privilege than what is required; write access at the repository level is the actual gating condition.
    • C. This is incorrect because read access alone does not permit triggering the agent; write access is the required threshold.

    Want the full experience?

    These are just samples. Practice the full GitHub Certified: Agentic AI Developer (GH-600) question bank in quiz mode — free, no signup, with domain practice and exam simulation.