GitHub Copilot certification · GH-300 · Skills outline of August 7, 2026 · Official skills outline · Original practice content
GH-300 quick-start practice test
Reviewed by the FlashGenius certification content team · Last updated: December 5, 2026 · Aligned to the published GH-300 skills outline and weights
A short mixed set from all six GitHub Copilot domains, from responsible AI and prompt crafting to agent mode, content exclusions and organization policies.
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.
The quick start draws questions from every GH-300 exam domain, so one short session shows where you are strong and where to focus. The real exam is weighted as follows:
After you finish, review every explanation, including for the questions you answered correctly, then practice the domains where you missed the most.
GH-300 quick-start 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?
Copilot only generates code for languages listed in the IDE marketplace
The public code filter removes most suggestions written in niche languages
Suggestion quality depends on how much training data exists for a language
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 features
Sample question 2
A developer who has a Copilot Business seat starts using IntelliJ IDEA and wants inline suggestions there. What should she do first?
Install the GitHub Copilot plugin from the JetBrains Marketplace, restart, and sign in to GitHub
Add a .github/copilot-instructions.md file to the repository and restart the IDE
Install GitHub Copilot CLI and run the login command so the IDE can reuse its token
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.
Understand GitHub Copilot data and architecture
Sample question 3
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?
They are kept for 28 days, then deleted
They are not retained by default
They are kept for two years with usage data
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.
Apply prompt engineering and context crafting
Sample question 4
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?
Give only the function name and let Copilot infer the rest
List every edge case first and leave the goal implied
State the overall goal, then list the specific requirements
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.
Improve developer productivity with GitHub Copilot
Sample question 5
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?
/tests
/fix
/explain
/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.
Configure privacy, content exclusions, and safeguards
Sample question 6
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?
Content exclusion needs only the public code filter turned on
Content exclusion is under Copilot settings on her profile
Content exclusion is in a .github/copilot-exclude file she can add
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.
Use GitHub Copilot responsibly
Sample question 7
GitHub describes hallucination, output that sounds plausible but is incorrect or fabricated, as a key reason that ___.
the public code filter should always be set to Block
content exclusion must be enabled for every repository
human review of AI-generated output is important
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 8
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?
Install the copilot.vim plugin and point Visual Studio to its Node.js runtime
Install Copilot CLI with WinGet, then enable the CLI integration in Visual Studio
Download the Copilot extension from the Visual Studio Marketplace and install it by hand
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 9
A compliance team at a Copilot Enterprise customer reviews data retention in GitHub's Trust Center. Which statement is true?
User engagement data from IDE sessions is deleted as soon as each coding session ends.
Prompts and suggestions from IDE code completions are not retained by default for Enterprise.
Inputs and outputs from code completions are kept for 28 days for abuse monitoring.
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 10
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?
Split it across two sentences in the middle
Put it in a comment in an unrelated file
Move it to the start or end of the prompt
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.
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.