GitHub Copilot certification · GH-300 · Skills outline of August 7, 2026 · Official skills outline · Original practice content

GH-300 Practice Test: Free GitHub Copilot Certification Questions

Reviewed by the FlashGenius certification content team · Last updated: December 5, 2026 · Aligned to the published GH-300 skills outline and weights

GH-300 is the GitHub Copilot certification exam: 60 scored multiple-choice questions in 100 minutes, $99, with a passing score of 700. It covers using Copilot responsibly, Copilot features in the IDE, CLI and github.com, how Copilot handles data, prompt engineering, developer productivity and testing, and privacy settings and content exclusions. Practice with 300 original questions written to the six domains of the August 7, 2026 outline, each with the correct answer and an explanation.

GH-300 has 60 scored multiple-choice questions (plus about 10-15 unscored ones) in 100 minutes, costs $99 USD and needs a scaled 700 to pass.

Take the 10-question GH-300 quick-start test · Create a free account

What is on the GH-300 exam?

Six domains from the August 7, 2026 outline. Using Copilot features is the largest (25-30%): the IDE, Copilot CLI, agent mode, MCP, code review, instructions and prompt files, and organization policies. Using Copilot responsibly is 15-20%. Data and architecture, prompt engineering and context, developer productivity, and privacy, content exclusions and safeguards are 10-15% each.

GH-300 exam at a glance

Exam
GH-300: GitHub Copilot
Level
Intermediate
Questions
60 scored multiple-choice questions plus about 10-15 unscored pretest items
Time
100 minutes
Passing score
700 or higher on a scale of 1-1000
Price
$99 USD; regional pricing may apply
Delivery
Pearson VUE test center or online proctored, registered with a Microsoft Learn account; closed book
Languages
English, Spanish, Portuguese (Brazil), Korean and Japanese
Renewal
Expires; renew with a free, online, open-book assessment on Microsoft Learn in the six months before it expires
Student voucher
One free voucher for verified GitHub Student Developer Pack students (GH-300 or GH-900), while supplies last
Retakes
24 hours before the first retake, then 14 days; up to 5 attempts a year

Sources: Microsoft Learn: GH-300 study guide; GitHub Learn: certifications and FAQ.

GH-300 exam domains and weights

A 60-question FlashGenius mock exam samples each domain at its official weight.

DomainWeightQuestions in a 60-question mock
Use GitHub Copilot responsibly15-20%9
Use GitHub Copilot features25-30%15
Understand GitHub Copilot data and architecture10-15%9
Apply prompt engineering and context crafting10-15%9
Improve developer productivity with GitHub Copilot10-15%9
Configure privacy, content exclusions, and safeguards10-15%9

2. Use GitHub Copilot features (25-30%)

Covers Copilot in the IDE, Copilot CLI, agent mode, MCP, agent sessions, code review, Spaces, pull request summaries, instructions and prompt files, Chat commands, and organization policies.

Practice Use GitHub Copilot features questions

Who the GH-300 exam is for

GitHub's outline is written for developers, administrators and project managers who use Copilot. Candidates should know GitHub fundamentals and at least one programming language.

WhoWhat the exam asks you to know
Developers using Copilot dailyinline suggestions, chat, agent mode, Copilot CLI, and how to give Copilot the right context
Team leads and reviewersCopilot code review, pull request summaries and custom instructions that set review standards
Organization and enterprise adminspolicies, feature availability, content exclusions, audit log events and managing seats with the REST API
Security and compliance staffhow prompts and suggestions flow, the public code filter, ownership of output and what exclusions can and cannot do
Engineering managerswhere Copilot speeds up work (tests, documentation, legacy code) and how to use it responsibly
GH-900 holders going furtherthe step from GitHub basics to one product in depth

How GH-300 questions are written

GH-300 sample questions with answers

Use GitHub Copilot responsibly

Sample question 1

A developer maintaining a system written in a rarely used legacy language finds that Copilot's suggestions are much weaker than the ones she gets in JavaScript. What best explains the difference?

  1. Copilot only generates code for languages listed in the IDE marketplace
  2. The public code filter removes most suggestions written in niche languages
  3. Suggestion quality depends on how much training data exists for a language
  4. Content exclusion is applied automatically to files in older languages
Show correct answer and explanation

Correct answer: C. Suggestion quality depends on how much training data exists for a language

C is correct because GitHub notes that Copilot performs best in languages that are well represented in its training data, and JavaScript is one of the best supported. A is incorrect because Copilot can still suggest code in less common languages; the issue is lower quality, not an absence of support. B is incorrect because the public code filter blocks suggestions that match public code, which has nothing to do with how rare the language is. D is incorrect because content exclusion is configured by administrators for chosen paths or repositories and is never applied by language. Skills measured: Use GitHub Copilot responsibly > Understand responsible AI principles.

Use GitHub Copilot responsibly

Sample question 2

GitHub describes hallucination, output that sounds plausible but is incorrect or fabricated, as a key reason that ___.

  1. the public code filter should always be set to Block
  2. content exclusion must be enabled for every repository
  3. human review of AI-generated output is important
  4. Copilot refuses to answer questions about unfamiliar libraries
Show correct answer and explanation

Correct answer: C. human review of AI-generated output is important

C is correct because GitHub's responsible use documentation says hallucination is a key reason that people must review what Copilot generates before relying on it. A is incorrect because the public code filter deals with matches to public code, not with fabricated or incorrect content. B is incorrect because content exclusion controls which files Copilot can use as context; it does not stop the model from inventing details. D is incorrect because Copilot does not reliably refuse; it can produce a confident but invented answer, which is exactly why review matters. Skills measured: Use GitHub Copilot responsibly > Understand responsible AI principles.

Use GitHub Copilot features

Sample question 3

A developer who has a Copilot Business seat starts using IntelliJ IDEA and wants inline suggestions there. What should she do first?

  1. Install the GitHub Copilot plugin from the JetBrains Marketplace, restart, and sign in to GitHub
  2. Add a .github/copilot-instructions.md file to the repository and restart the IDE
  3. Install GitHub Copilot CLI and run the login command so the IDE can reuse its token
  4. Turn on Copilot in the repository settings on GitHub.com, then reopen the project in the IDE
Show correct answer and explanation

Correct answer: A. Install the GitHub Copilot plugin from the JetBrains Marketplace, restart, and sign in to GitHub

A is correct because JetBrains IDEs get Copilot through the GitHub Copilot plugin; after installing it and restarting, you log in to GitHub from Tools > GitHub Copilot and authorize the plugin. B is incorrect because an instructions file only customizes responses once Copilot is running; it does not install or enable Copilot in the IDE. C is incorrect because Copilot CLI is a separate terminal tool; JetBrains IDEs authenticate through their own plugin, not through a CLI login. D is incorrect because repository settings do not install anything in the IDE; the editor still needs the Copilot plugin and a GitHub sign-in before suggestions appear. Skills measured: Use GitHub Copilot features > Use GitHub Copilot in the IDE.

Use GitHub Copilot features

Sample question 4

A developer runs Visual Studio 2022 version 17.12 on Windows and has a Copilot Pro plan. What does he need to do to start using Copilot in Visual Studio?

  1. Install the copilot.vim plugin and point Visual Studio to its Node.js runtime
  2. Install Copilot CLI with WinGet, then enable the CLI integration in Visual Studio
  3. Download the Copilot extension from the Visual Studio Marketplace and install it by hand
  4. Add his GitHub account to the Visual Studio keychain, because Copilot is built in
Show correct answer and explanation

Correct answer: D. Add his GitHub account to the Visual Studio keychain, because Copilot is built in

D is correct because from version 17.10, the unified Copilot and Copilot Chat extension is a built-in component of Visual Studio, so signing in with the GitHub account that holds the plan enables it. A is incorrect because copilot.vim is the plugin for Vim and Neovim; it has no role in Visual Studio. B is incorrect because Copilot CLI is a separate terminal tool and is not how Visual Studio gets Copilot; the IDE uses its built-in component and a GitHub sign-in. C is incorrect because a manual extension install was only needed for versions 17.8 and 17.9; later versions already include Copilot as a built-in component. Skills measured: Use GitHub Copilot features > Use GitHub Copilot in the IDE.

Understand GitHub Copilot data and architecture

Sample question 5

A developer at a company on Copilot Business asks Copilot Chat in VS Code to explain a function. According to GitHub's Trust Center, what happens to that prompt and the response by default?

  1. They are kept for 28 days, then deleted
  2. They are not retained by default
  3. They are kept for two years with usage data
  4. They are kept for the life of the account
Show correct answer and explanation

Correct answer: B. They are not retained by default

B is correct because the trust center states that for Business and Enterprise, inputs and outputs from IDE chat, code completions, the Copilot app and the CLI are not retained by default. A is incorrect because for Business and Enterprise, IDE chat inputs and outputs are not retained by default, so no fixed retention period applies. C is incorrect because two years is the retention for user engagement data, not for the prompts and responses themselves. D is incorrect because life-of-account retention applies to other access such as Copilot on the GitHub website, not to IDE chat. Skills measured: Understand GitHub Copilot data and architecture > Describe data handling and flow.

Understand GitHub Copilot data and architecture

Sample question 6

A compliance team at a Copilot Enterprise customer reviews data retention in GitHub's Trust Center. Which statement is true?

  1. User engagement data from IDE sessions is deleted as soon as each coding session ends.
  2. Prompts and suggestions from IDE code completions are not retained by default for Enterprise.
  3. Inputs and outputs from code completions are kept for 28 days for abuse monitoring.
  4. Enterprise prompts are used to train GitHub's models unless each user opts out.
Show correct answer and explanation

Correct answer: B. Prompts and suggestions from IDE code completions are not retained by default for Enterprise.

B is correct because the trust center states that for Business and Enterprise, inputs and outputs from code completions in the IDE are not retained by default, while user engagement data is kept separately. A is incorrect because user engagement data is kept for two years, even when prompts and suggestions themselves are not retained. C is incorrect because code completion inputs and outputs are not retained by default for Business and Enterprise, so there is no 28-day abuse-monitoring copy. D is incorrect because GitHub does not use Business or Enterprise customers' prompts and suggestions to train its models; no per-user opt-out is needed. Skills measured: Understand GitHub Copilot data and architecture > Describe data handling and flow.

Apply prompt engineering and context crafting

Sample question 7

A developer wants Copilot Chat to write a function that validates postal codes for three countries. Which prompt structure follows GitHub's prompt engineering guidance?

  1. Give only the function name and let Copilot infer the rest
  2. List every edge case first and leave the goal implied
  3. State the overall goal, then list the specific requirements
  4. Mix the goal and requirements into one long sentence
Show correct answer and explanation

Correct answer: C. State the overall goal, then list the specific requirements

C is correct because GitHub's guide says to start general, then get specific: describe the broad goal first and follow it with the detailed requirements. A is incorrect because a bare name leaves the requirements ambiguous, so the result is unlikely to match what is needed. B is incorrect because without the goal stated up front Copilot has to guess what the edge cases are for. D is incorrect because a single run-on sentence hides the requirements instead of listing them clearly after the goal. Skills measured: Apply prompt engineering and context crafting > Craft effective prompts.

Apply prompt engineering and context crafting

Sample question 8

A developer writes a long chat prompt. The most important requirement, that no external libraries be used, sits in the middle of a list and Copilot ignores it. What change is most likely to help?

  1. Split it across two sentences in the middle
  2. Put it in a comment in an unrelated file
  3. Move it to the start or end of the prompt
  4. Write it in capital letters where it is now
Show correct answer and explanation

Correct answer: C. Move it to the start or end of the prompt

C is correct because GitHub's guide notes that Copilot gives extra weight to instructions at the start and end of a prompt, so the most important requirements belong there. A is incorrect because spreading it out in the middle keeps it in the least weighted part of the prompt. B is incorrect because an unrelated file is unlikely to be part of the context at all. D is incorrect because the position, not the formatting, is what the guidance says gives a requirement extra weight. Skills measured: Apply prompt engineering and context crafting > Craft effective prompts.

Improve developer productivity with GitHub Copilot

Sample question 9

A developer in VS Code has just joined a team and opens an unfamiliar parsing module. Before changing anything, she wants Copilot Chat to describe how the code in her active editor works. Which slash command fits this request?

  1. /tests
  2. /fix
  3. /explain
  4. /new
Show correct answer and explanation

Correct answer: C. /explain

C is correct because /explain asks Copilot Chat to explain how the code in the active editor works, which is what she needs before making changes. A is incorrect because /tests generates unit tests for the selected code rather than describing what it does. B is incorrect because /fix proposes a fix for problems in the selected code; she wants an explanation, not changes. D is incorrect because /new creates a new project; it does not explain existing code in the editor. Skills measured: Improve developer productivity with GitHub Copilot > Enhance productivity and code quality.

Improve developer productivity with GitHub Copilot

Sample question 10

A data engineer types a comment above an empty function: "Return the median of a list of numbers; use sorting, not a library call." What is Copilot most likely to do with this comment as she starts typing below it?

  1. Open a pull request that adds the function to the default branch
  2. Offer an inline suggestion for a body that follows the comment
  3. Insert the code automatically without any need for acceptance
  4. Ignore the comment, because comments are stripped from the prompt
Show correct answer and explanation

Correct answer: B. Offer an inline suggestion for a body that follows the comment

B is correct because comments are part of the context Copilot reads, so a clear comment such as this steers the inline suggestion toward a sorting-based median. A is incorrect because an inline suggestion in the editor does not create branches or pull requests; it only proposes code to accept or dismiss. C is incorrect because suggestions are only applied when the developer accepts them, which keeps a human in control of the code. D is incorrect because Copilot uses comments as context; comment-driven generation is a documented way to steer suggestions. Skills measured: Improve developer productivity with GitHub Copilot > Enhance productivity and code quality.

Configure privacy, content exclusions, and safeguards

Sample question 11

A freelance developer on a Copilot Pro plan wants to stop Copilot from using a folder of client credentials in her personal repository. She looks for the content exclusion setting. What will she find?

  1. Content exclusion needs only the public code filter turned on
  2. Content exclusion is under Copilot settings on her profile
  3. Content exclusion is in a .github/copilot-exclude file she can add
  4. Content exclusion is not available on Copilot Pro
Show correct answer and explanation

Correct answer: D. Content exclusion is not available on Copilot Pro

D is correct because content exclusion is a Copilot Business and Copilot Enterprise feature, and repository-level exclusion works only for repositories owned by an organization. A is incorrect because the public code filter controls suggestions that match public code; it does not exclude files from Copilot. B is incorrect because there is no personal content exclusion setting; exclusions are set by repository admins, organization owners or enterprise owners. C is incorrect because exclusions are configured in repository, organization or enterprise settings on GitHub, not with a file in the repository. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.

Configure privacy, content exclusions, and safeguards

Sample question 12

A repository administrator in an organization with Copilot Business wants to exclude a folder of generated keys. In the repository, she should go to Settings, then ___.

  1. Collaborators, then remove Copilot's access to the folder
  2. Branches, then Branch protection, and add the folder as a rule
  3. Copilot, then Content exclusion, and add the paths to exclude
  4. Code security, then Secret scanning, and add the paths to ignore
Show correct answer and explanation

Correct answer: C. Copilot, then Content exclusion, and add the paths to exclude

C is correct because repository-level exclusions are entered under Settings > Copilot > Content exclusion in the box for paths to exclude in the repository. A is incorrect because Copilot is not a collaborator, and repository access settings do not exclude individual paths from Copilot. B is incorrect because branch protection controls merges and pushes; it has no effect on what Copilot can read. D is incorrect because secret scanning finds committed secrets; its settings do not stop Copilot from using files. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.

A practical GH-300 study plan

1. Read the August 2026 outline

Use GitHub's GH-300 study guide and the Copilot Fundamentals learning paths. The outline was revised on August 7, 2026, and now covers Copilot CLI, agent mode and MCP.

2. Start mixed

Take the 10-question quick start to see where you stand across all six domains.

3. Drill features first

Using Copilot features is 25-30% of the exam and responsible use is 15-20%. Try each feature in an editor, then practice the remaining four domains.

4. Finish with mocks

Take timed 60-question mocks in 100 minutes and review every explanation, including for questions you got right.

GH-300 vs GH-900

GitHub Foundations covers the whole platform at a beginner level. The GitHub Copilot exam goes deep on Copilot.

GH-300 GitHub CopilotGH-900 GitHub Foundations
LevelIntermediateBeginner
Who it is forDevelopers, admins and managers who use or roll out CopilotDevelopers, non-developers and anyone who uses GitHub
FocusCopilot features, responsible AI, data handling, prompting, productivity and privacy settingsGit, repositories, collaboration, Actions, Copilot basics, Projects, security and community
Format60 scored questions, 100 minutes, $9960 scored questions, 100 minutes, $99
ValidityExpires and must be renewedDoes not expire

Copilot terms you need for GH-300

These terms come up across the six domains. Each is defined from GitHub Docs.

TermWhat it means
Inline suggestionsCode Copilot proposes as you type in the editor; you accept, reject or cycle through them.
Copilot ChatA chat interface in the IDE, on github.com and in other tools where you ask questions and request changes.
Agent modeCopilot plans and makes multi-file changes, runs commands and iterates on errors in the IDE, with you approving steps.
Copilot CLICopilot in the terminal: ask questions, generate and run commands and scripts, and work in sessions.
Custom instructionsA repository file that gives Copilot standing guidance, such as coding standards or review rules.
Prompt fileA reusable prompt saved in the repository so the team gets consistent responses for a common task.
Cloud agentCopilot working on its own in the cloud on an assigned task: it can research, plan and make changes on a branch or open a pull request. GitHub renamed it from coding agent in April 2026.
MCPModel Context Protocol: a standard way to give Copilot tools and data from other systems.
Content exclusionA setting that stops Copilot using specified files or repositories as context; it has documented limits.
Public code filterA setting that blocks suggestions matching public code, or shows a reference to where the match came from.

How we built these GH-300 questions

Last reviewed December 5, 2026 against: Microsoft Learn: GH-300 study guide; GitHub Learn: certifications and FAQ.

Related practice tests and guides

GH-300 practice test FAQ

What is the GH-300 GitHub Copilot exam?

GH-300 is GitHub's certification exam for GitHub Copilot. It tests how to use Copilot features responsibly and effectively, how Copilot handles data, prompt engineering, productivity and testing, and privacy and organization settings.

How many questions are on GH-300, and how long is it?

GitHub says its certification exams have 60 scored multiple-choice questions plus about 10-15 unscored pretest items, and you get 100 minutes.

What is the passing score for GH-300?

700 or higher on a scale of 1-1000. That is a scaled score, not 70% correct. FlashGenius mocks use 70% as a practice target.

How much does the GH-300 exam cost?

$99 USD, with regional pricing in some countries. Verified students in the GitHub Student Developer Pack can earn one free voucher usable for GH-300, while supplies last.

What changed on GH-300 on August 7, 2026?

Microsoft published a revised outline on August 7, 2026, with minor updates to the IDE, features and safeguards sections. The current outline covers Copilot CLI, agent mode, MCP, agent sessions and sub-agents, Spaces, instructions and prompt files, and organization policies, so study from it rather than older guides.

Is GH-300 hard?

It is an intermediate exam. Developers who use Copilot daily know the features, but many miss questions on organization policies, content exclusion limits, data flow and responsible AI, which they rarely touch.

Do I need GH-900 before GH-300?

No. There is no required prerequisite. The GH-300 outline assumes you know GitHub fundamentals and at least one programming language, which GH-900 covers on the GitHub side.

Does GH-300 expire?

Yes. Unlike GitHub Foundations, the GitHub Copilot certification has to be renewed. You renew on Microsoft Learn with a free, online, open-book assessment during the six months before it expires, and your Microsoft Learn profile shows your exact expiration date.

Can I take GH-300 online?

Yes. Pearson VUE proctors it online or at a test center, in English, Spanish, Portuguese (Brazil), Korean or Japanese. It is closed book.

What is the retake policy for GH-300?

Wait 24 hours before your first retake and 14 days before each retake after that, with up to 5 attempts in a year.

Are these official GitHub exam questions?

No. These are original practice questions written for FlashGenius against the published GH-300 skills outline. They are not copied from the exam, and FlashGenius is not affiliated with GitHub.

Is the GH-300 practice test free?

Yes. You can review the sample questions on this page, take the 10-question quick start and practice each domain without paying. The full 300-question bank and timed mock exams are part of FlashGenius Premium.

Keep practicing

GH-300 practice test hub · Mixed quick start · GH-900 GitHub Foundations practice test · AI-901 Azure AI Fundamentals practice test · AI-103 Azure AI Apps and Agents Developer practice test

FlashGenius is an independent study resource and is not affiliated with or endorsed by GitHub or Microsoft. GitHub and GitHub Copilot are trademarks of GitHub, Inc. 300 original practice questions.