GitHub Agentic AI Developer (GH-600) Exam-style mock test
GitHub Agentic AI Developer (GH-600) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · GitHub Copilot & Agent Fundamentals
A developer at a B2B SaaS billing company is editing an invoice service and wants Copilot to suggest the next few lines as they type, without opening any chat panel or leaving the editor. Which Copilot capability directly serves this moment-to-moment coding need?
✓Copilot code completion, which proposes inline ghost-text suggestions as the developer types in the editor
Correct. Inline code completion delivers real-time ghost-text suggestions directly in the editor as the developer types, which is exactly the moment-to-moment assistance described.
・Copilot Chat in the IDE, which answers questions and refactors code through a conversational side panel interface
Incorrect. Copilot Chat requires a conversational panel and is for questions or on-demand refactors, not continuous inline typing suggestions.
・Copilot coding agent, which is assigned a GitHub issue and then autonomously produces a pull request for later review
Incorrect. The coding agent works asynchronously from an assigned issue to a pull request, which is not the in-editor typing experience requested.
・Copilot code review, which examines a submitted pull request and leaves summary comments on potential problems found
Incorrect. Copilot code review operates on an existing pull request and comments on issues, not on live code as it is typed.
Explanation
Inline code completion is the surface designed for continuous, in-editor suggestions while typing; chat, the coding agent, and code review serve different, more deliberate workflows.
Example2 · Copilot Chat, Features & Context
A developer at a B2B SaaS firm is reviewing a teammate's pull request and wants Copilot Chat in VS Code to answer questions that are grounded specifically in the repository's indexed source files rather than the file currently open. Which chat participant should the developer invoke to scope the question to the whole codebase?
✓The @workspace participant, which grounds answers in the project's indexed codebase
Correct. The @workspace participant scopes the request to the indexed project files so answers are grounded in the repository rather than the single open file.
・The @terminal participant, which answers questions about shell commands and output
Incorrect. The @terminal participant specializes in shell and command-line questions, not repository-wide source grounding.
・The @vscode participant, which answers questions about editor settings and commands
Incorrect. The @vscode participant answers questions about the editor itself, such as settings and commands, not the project's source code.
・The #selection variable, which passes only the highlighted lines to the model
Incorrect. The #selection variable only passes the currently highlighted text, which is narrower than the whole codebase the developer needs.
Explanation
@workspace is the participant designed to ground Copilot Chat answers in the indexed project, making it the correct choice for repository-wide questions.
Example3 · Building with Copilot Extensions & Agents
A B2B SaaS company wants engineers to query their internal incident-management service directly from Copilot Chat using natural language, with the service returning tailored responses. Which GitHub Copilot extensibility surface should the team build to deliver this conversational capability?
✓A Copilot Extension implemented as a GitHub App that handles chat messages
Correct. A Copilot Extension built on a GitHub App receives chat messages and returns conversational responses, which is exactly the surface for natural-language querying inside Copilot Chat.
・A branch protection rule that routes pull request events to the incident service
Incorrect. Branch protection rules govern merge requirements and do not create a conversational interface inside Copilot Chat.
・A GitHub Actions reusable workflow triggered on each repository push event
Incorrect. Actions workflows automate CI/CD tasks and run on events, but they do not provide a chat-based natural-language interface in Copilot.
・A repository webhook that forwards all raw events to the internal incident service
Incorrect. A raw webhook forwards event payloads for automation but offers no conversational interface or tailored chat responses in Copilot.
Explanation
Copilot Extensions, built as GitHub Apps, are the extensibility surface that lets a service participate in Copilot Chat conversations.
Example4 · Agentic Workflows & Automation
A healthcare services firm wants a GitHub Copilot coding agent to automatically start work whenever a patient-portal bug is labeled 'agent-ready' in their issue tracker. Which approach should the team configure to launch the agent run from this repository event?
・Assign the issue to Copilot so the agent picks up the labeled issue and opens a draft pull request with proposed changes
Incorrect. Assigning the issue to Copilot does start an agent run, but it still requires a human to perform the assignment and is not driven automatically by the 'labeled' repository event the team asked about.
✓Configure a GitHub Actions workflow that triggers on the issue 'labeled' event and dispatches the Copilot coding agent to begin work on that issue
Correct. A GitHub Actions workflow listening for the issue 'labeled' event fires the moment the label is applied, and it can dispatch the Copilot coding agent, making the trigger event-driven and automatic.
・Add a scheduled cron workflow that scans every hour for issues carrying the 'agent-ready' label and then queues them
Incorrect. A scheduled scan introduces up to an hour of delay and polls rather than reacting to the event, so it does not launch the agent from the repository event itself.
・Manually open the Copilot chat panel each time, paste the issue link, and ask the agent to resolve the described bug
Incorrect. Opening the chat panel and pasting the link each time is entirely manual and does not respond to the labeling event, defeating the goal of automatic triggering.
Explanation
Event-driven automation is achieved by binding the agent run to a specific repository event, such as the issue 'labeled' event, through a GitHub Actions workflow rather than polling or manual steps.
Example5 · Security, Governance & Best Practices
A healthcare services firm builds a GitHub Copilot agent that only needs to read patient-intake repositories and open draft pull requests for a human reviewer. The security lead wants the agent's token to follow least privilege. Which approach best satisfies this requirement?
・Grant the agent an organization-owner personal access token so it is never blocked by a missing permission during any automated run
Incorrect. An organization-owner token grants far more authority than reading intake repos and drafting PRs, directly violating least privilege.
✓Issue a fine-grained token limited to the specific intake repositories with read and pull-request write scopes only
Correct. A fine-grained token restricted to the required repositories with only read and pull-request write scopes gives exactly the access needed and nothing more.
・Reuse the on-call engineer's classic token because that account already has the exact repository access needed
Incorrect. Reusing a human's broad token ties the agent to a person's full access and obscures accountability, breaking least privilege.
・Create a token with full repo scope across the whole organization so future agent features never require a new token to be issued
Incorrect. Full repo scope organization-wide over-provisions the agent for work it does not perform and widens the blast radius if the token leaks.
Explanation
Least privilege means scoping agent credentials to the exact repositories and actions required; a fine-grained token with read and pull-request write on only the intake repos is the minimal sufficient grant.
Example6 · GitHub Copilot & Agent Fundamentals
A developer at a healthcare services firm wants Copilot to autonomously plan and apply a multi-file refactor of a patient-intake module, running terminal commands and iterating until tests pass. Which Copilot capability is the correct fit for this task?
・Copilot code completion, which suggests inline code as the developer types in the editor
Incorrect. Code completion only offers inline single- or multi-line suggestions and cannot autonomously plan, edit several files, or run commands.
✓Copilot agent mode, which plans the work, edits multiple files, and runs commands iteratively
Correct. Agent mode autonomously plans a task, edits multiple files, executes terminal commands, and iterates on results until the goal is met, which matches the described refactor.
・Copilot Chat ask mode, which answers coding questions through a conversational prompt interface
Incorrect. Ask mode responds conversationally but does not take autonomous multi-file actions or run commands on its own.
・Copilot knowledge bases, which index organizational documentation so Chat can reference it in answers
Incorrect. Knowledge bases supply grounding context to Chat answers but do not perform autonomous editing or command execution.
Explanation
Agent mode is the capability designed for autonomous, iterative, multi-file work that includes running commands, unlike completion, ask mode, or knowledge bases.
Example7 · GitHub Copilot & Agent Fundamentals
A developer at the retailer NordThread is editing a pricing utility and wants inline suggestions to appear automatically as they type, without opening a separate conversation panel. Which Copilot surface best matches this need?
✓Copilot code completion, which streams greyed-out ghost-text suggestions directly in the editor as the developer types each line of the pricing utility
Correct. Code completion (ghost text) is the surface that surfaces inline suggestions automatically as the developer types, with no separate panel required.
・Copilot Chat, which opens a conversational side panel where the developer types natural-language prompts and reads multi-paragraph responses
Incorrect. Chat requires the developer to open a panel and type prompts, which is not automatic inline typing assistance.
・Copilot coding agent, which is assigned a GitHub issue and asynchronously opens a pull request after working in its own environment
Incorrect. The coding agent works asynchronously from an issue and opens pull requests; it is not an in-editor typing aid.
・Copilot CLI, which lets the developer ask for shell command suggestions from the integrated terminal prompt
Incorrect. Copilot CLI assists with terminal commands, not inline code completion in the editor.
Explanation
Inline, automatic typing suggestions are delivered by Copilot code completion (ghost text), distinct from the conversational Chat, the asynchronous agent, and the CLI helper.
Example8 · GitHub Copilot & Agent Fundamentals
NordThread's platform team wants to delegate a well-scoped bug fix so a human is not blocked while it is implemented. They assign the Copilot coding agent to a GitHub issue. What does the agent do after being assigned?
・It immediately merges a fix into the default branch once it finishes editing, bypassing review so the blocked human can move on
Incorrect. The agent does not auto-merge to the default branch; its output is a pull request that still requires human review and approval.
・It rewrites the issue description into acceptance criteria and then waits for a human to implement the change manually
Incorrect. The agent implements the change itself rather than only rewriting the issue and waiting for a human.
✓It works asynchronously in its own environment, pushes commits to a branch, and opens a pull request for human review
Correct. The coding agent runs asynchronously in its own environment, commits to a branch, and opens a pull request for a human to review.
・It posts suggested code snippets as issue comments for a developer to copy into the codebase
Incorrect. The agent produces a reviewable pull request, not loose snippets pasted as issue comments.
Explanation
The Copilot coding agent takes an assigned issue, works independently in its own environment, and delivers a pull request that humans review—it does not auto-merge or merely advise.
Example9 · GitHub Copilot & Agent Fundamentals
A NordThread engineer selects a failing test in the editor and wants Copilot Chat to analyze why it fails and propose a fix referencing that exact selection. Which approach most directly scopes the chat to the selected test code?
✓Open Copilot Chat, highlight the failing test, and use the /fix slash command so the request is grounded in the current editor selection
Correct. Highlighting the failing test and invoking /fix grounds the Chat request in the active selection, giving targeted analysis and a fix.
・Switch to the Copilot coding agent and assign it a new issue describing the failing test so it reproduces the failure asynchronously
Incorrect. Delegating to the asynchronous coding agent is heavier than needed and does not use the current in-editor selection for immediate analysis.
・Type a plain question in Chat without any selection and paste the full repository file tree into the prompt for broad context
Incorrect. Asking without a selection and pasting the whole tree adds noise rather than scoping Chat to the specific failing test.
・Disable code completion temporarily and rely on ghost-text suggestions to repair the failing assertion as you retype it
Incorrect. Toggling completion and retyping does not provide a reasoned explanation of why the selected test fails.
Explanation
Using the /fix slash command with the failing test selected scopes Copilot Chat precisely to that code, which is the most direct path to a grounded explanation and fix.
Example10 · GitHub Copilot & Agent Fundamentals
A developer at a retail bank is wiring a new interest-calculation service. As she types a method signature, Copilot offers a greyed-out multi-line implementation she can accept with Tab, without her asking any question. Which Copilot capability is she experiencing in this moment?
・Copilot agent mode autonomously planning and executing a multi-step task across several repository files
Incorrect. Agent mode requires an explicit task prompt and orchestrates edits across files; here nothing was requested and the suggestion appeared automatically as she typed.
✓Inline code completion, predicting suggestions from the surrounding file context and cursor position
Correct. Ghost-text that appears automatically from surrounding context and is accepted with Tab is inline code completion, Copilot's predictive mode.
・Copilot Chat answering a natural-language prompt that she typed into the chat side panel
Incorrect. Copilot Chat responds to a question typed into a chat panel, but she entered no prompt into chat here.
・A Copilot pull request summary that analyzes the committed diff to draft a review description
Incorrect. PR summaries are generated from a committed diff during the pull request flow, not as inline ghost-text while typing a method.
Explanation
Automatic greyed-out suggestions accepted with Tab, driven by surrounding file context, are inline code completion rather than chat- or agent-based interaction.
Example11 · GitHub Copilot & Agent Fundamentals
A payments engineer does not understand why a legacy fraud-scoring function returns negative values. He wants a plain-language explanation of the existing logic plus suggested fixes. Which Copilot interaction best fits this need?
・Accept the inline ghost-text completion that Copilot shows at his cursor as he edits the file
Incorrect. Inline completion predicts the next code to type and does not explain existing logic in plain language.
✓Open Copilot Chat and ask it to explain the selected function and propose corrections
Correct. Copilot Chat is designed for conversational explanations of selected code and for proposing fixes in natural language.
・Trigger a brand-new agent session to rewrite the entire fraud-scoring module from scratch
Incorrect. Launching an agent to rewrite the whole module is disproportionate when he only needs understanding and targeted fixes.
・Wait for the automatic pull request summary generated after he commits his changes
Incorrect. A PR summary describes a diff after committing and cannot explain current behavior before any change is made.
Explanation
Copilot Chat suits conversational, explanatory tasks over selected code, whereas inline completion handles predictive typing and agents handle multi-step autonomous work.
Example12 · GitHub Copilot & Agent Fundamentals
A developer at a manufacturing distributor is typing a Python function that calculates reorder quantities for warehouse SKUs. As she types the signature, Copilot immediately suggests the entire function body inline, which she accepts with Tab. Which Copilot capability is she using in this moment?
・The agent mode, which autonomously plans and edits several files across the repository to finish the task
Incorrect. Agent mode would plan and modify multiple files on its own rather than offering a single inline suggestion as she types.
✓Ghost-text code completion, which predicts and offers the next lines of code inline as the developer types
Correct. Accepting an inline suggestion with Tab as you type the signature is the ghost-text code-completion experience predicting the next lines.
・Copilot Chat, which answers natural-language questions about code inside a conversational side panel
Incorrect. Copilot Chat responds in a conversational panel and is not what produces the inline suggestion she accepted with Tab.
・A pull-request summary feature, which reviews the committed diff and drafts a description of the changes
Incorrect. A pull-request summary operates on a committed diff after the fact, not on code being typed in the editor.
Explanation
Inline ghost-text suggestions accepted with Tab are Copilot's code-completion mode, distinct from agentic or chat experiences.
Example13 · GitHub Copilot & Agent Fundamentals
The engineering lead at a parts distributor assigns the Copilot coding agent a GitHub issue asking it to add input validation to the shipping-label service. What best characterizes how an agent, as opposed to simple autocomplete, approaches this work?
・It returns one suggested line of code at the cursor and waits for the developer to type before offering anything further
Incorrect. Returning a single line at the cursor describes autocomplete, not the multi-step autonomous behavior of an agent.
✓It plans the task, explores the repository, edits the files it deems necessary, and opens a pull request for review
Correct. An agent decomposes the goal, navigates the codebase, makes the needed edits, and surfaces a pull request for human review.
・It rewrites every file in the repository automatically and merges the result to the default branch without human review
Incorrect. Agents do not rewrite the entire repository and self-merge; they target relevant files and leave merging to human review.
・It answers questions about the shipping-label service in chat but never modifies any files on its own
Incorrect. Only answering in chat without editing files describes Copilot Chat, not the file-modifying coding agent.
Explanation
Agents operate with bounded autonomy: they plan and execute multi-step changes but deliver results as a reviewable pull request.
Example14 · GitHub Copilot & Agent Fundamentals
A backend engineer at a telecom operator is typing a function that parses SIM provisioning records in VS Code. As she types, grey inline text proposes the rest of the loop body, which she accepts with Tab. Which GitHub Copilot capability is she using in this moment?
・Copilot Chat, which answers natural-language questions about the open repository in a side panel
Incorrect. Copilot Chat is a conversational interface invoked deliberately in a panel, not the grey inline text that appears automatically while typing.
✓Code completion, which suggests inline code as you type and is accepted with Tab
Correct. The grey ghost text proposed as you type, accepted with Tab, is Copilot code completion operating inline in the editor.
・The Copilot coding agent, which is assigned a GitHub issue and opens a pull request autonomously
Incorrect. The coding agent works asynchronously from an assigned issue and produces a pull request, not real-time inline suggestions in the editor.
・Copilot code review, which scans a pull request diff and leaves line-level review comments
Incorrect. Copilot code review operates on an existing pull request diff, leaving comments rather than offering inline completions during typing.
Explanation
Inline grey suggestions accepted with Tab are the hallmark of Copilot code completion, distinct from Chat, the coding agent, and code review.
Example15 · GitHub Copilot & Agent Fundamentals
A platform team at a telecom operator wants a tool that can take a backlog item describing a bug in the billing microservice, investigate the codebase, make the changes, and open a pull request without a developer driving each step. Compared to ordinary code completion, what fundamentally characterizes this agentic behavior?
・It predicts the next few tokens of code based only on the characters immediately before the cursor
Incorrect. Predicting the next tokens from surrounding characters describes completion, which reacts locally rather than pursuing a goal across steps.
✓It plans and executes a multi-step task autonomously, taking actions toward a goal
Correct. An agent autonomously plans and carries out a multi-step task toward a stated goal, going beyond reactive single suggestions.
・It requires a developer to accept or reject each individual suggestion as it is produced
Incorrect. Needing a human to approve each suggestion one at a time is the interaction model of completion, not autonomous agent execution.
・It restricts itself to rewriting a single highlighted block of code into a new style
Incorrect. Rewriting one highlighted block is a narrow transformation task, not the goal-directed, multi-step autonomy that defines an agent.
Explanation
Agents are defined by autonomous, goal-directed, multi-step execution, whereas completion reactively predicts code from local context.
▶ Try 10 free questions (graded)