GitHub Copilot certification · GH-300 · Skills outline of August 7, 2026 · Official skills outline · Original practice content
Free GH-300 practice questions: Configure privacy, content exclusions, and safeguards
Reviewed by the FlashGenius certification content team · Last updated: December 5, 2026 · Aligned to the published GH-300 skills outline and weights
The Configure privacy, content exclusions, and safeguards domain is 10-15% of the GH-300 exam and covers content exclusions and editor settings, ownership and limits of output, the public code filter, and fixing problems with suggestions and exclusions. Review each answer and explanation as you practice.
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.
What Configure privacy, content exclusions, and safeguards covers on the GH-300 exam
This domain is 10-15% of the GH-300 exam (about 9 questions in a 60-question mock). The official skills outline includes:
Configuring content exclusions and editor settings
Ownership and limitations of Copilot output
Enabling filtering of suggestions that match public code
Troubleshooting suggestions and content exclusions
How to study Configure privacy, content exclusions, and safeguards
Learn what content exclusions do not cover; GitHub documents several limits, and questions test them.
Know both public code settings: block matching suggestions, or allow them and show a code reference.
GH-300 Configure privacy, content exclusions, and safeguards sample questions with answers
Configure privacy, content exclusions, and safeguards
Sample question 1
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.
Configure privacy, content exclusions, and safeguards
Sample question 2
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 ___.
Collaborators, then remove Copilot's access to the folder
Branches, then Branch protection, and add the folder as a rule
Copilot, then Content exclusion, and add the paths to exclude
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.
Configure privacy, content exclusions, and safeguards
Sample question 3
An organization owner adds a content exclusion for a file in a Copilot Business organization. A developer with a seat from that organization opens the file in VS Code after the setting has loaded. What happens?
Copilot offers no inline suggestions in that file
Copilot hides the file from the editor's file explorer
Copilot still suggests code but adds a licence warning
Copilot deletes the file from the developer's local clone
Show correct answer and explanation
Correct answer: A. Copilot offers no inline suggestions in that file
A is correct because excluded files get no inline suggestions, and their content is not used to inform suggestions or chat answers elsewhere. B is incorrect because content exclusion only affects Copilot; the file stays visible and editable in the IDE. C is incorrect because excluded files receive no inline suggestions at all; licence notices relate to code referencing. D is incorrect because content exclusion never changes or removes files; it only stops Copilot from using them. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
Configure privacy, content exclusions, and safeguards
Sample question 4
A startup's lawyer asks who owns code that developers accept from Copilot suggestions. Which statement reflects GitHub's position?
GitHub does not claim ownership of Copilot outputs, and the developer is responsible for what they accept.
GitHub owns all Copilot outputs and licenses them to users under the terms of their Copilot plan.
Copilot outputs belong to the authors of the public code the model was trained on.
Copilot outputs automatically enter the public domain, so no licence questions can ever arise.
Show correct answer and explanation
Correct answer: A. GitHub does not claim ownership of Copilot outputs, and the developer is responsible for what they accept.
A is correct because the Trust Center says GitHub does not claim ownership of an output, and it is the user's responsibility to assess and safeguard what they use. B is incorrect because GitHub states that it does not claim ownership of outputs. C is incorrect because outputs are generated, not copied by default, and GitHub does not assign them to training-data authors. D is incorrect because matches with public code can occur and carry licences, which is why code referencing and the filter exist. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
Configure privacy, content exclusions, and safeguards
Sample question 5
A developer in VS Code wants Copilot inline suggestions in Python and TypeScript, but not while editing YAML files. What is the documented way to do this?
Turn off the Inline Suggest Enable setting in VS Code
Ask an organization owner to exclude all YAML files
Set Suggestions matching public code to Block
Set YAML to false in the github.copilot.enable setting
Show correct answer and explanation
Correct answer: D. Set YAML to false in the github.copilot.enable setting
D is correct because the github.copilot.enable setting takes a language list, so keeping all languages true and setting YAML to false disables suggestions only for YAML. A is incorrect because that setting turns off inline suggestions for every language, not only YAML. B is incorrect because content exclusion is an admin policy for protecting content; a per-language editor preference belongs in the editor settings. C is incorrect because that setting filters suggestions that match public code; it does not turn off suggestions by language. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
Configure privacy, content exclusions, and safeguards
Sample question 6
A developer on a Copilot Pro plan does not want her Copilot interaction data used for AI model training. In her personal Copilot settings, she should ___.
set the Suggestions matching public code option to Block
disable "Allow GitHub to use my data for AI model training"
add each of her repositories to a content exclusion list
turn off the Copilot access to Bing setting for web search
Show correct answer and explanation
Correct answer: B. disable "Allow GitHub to use my data for AI model training"
B is correct because individual plans include an opt-out setting for model training in personal Copilot settings. A is incorrect because that setting controls matching public code in suggestions, not the use of her data for training. C is incorrect because content exclusion is not available on Copilot Pro and does not control training. D is incorrect because that setting controls web search in Copilot Chat, not model training. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
Configure privacy, content exclusions, and safeguards
Sample question 7
A company on Copilot Enterprise asks whether its developers' prompts and code will be used to train GitHub's AI models. What is the correct answer?
Yes, unless each developer opts out in personal settings
Yes, but only for code in the company's public repositories
No; Business and Enterprise data is not used for training
No, but only when content exclusion covers all repositories
Show correct answer and explanation
Correct answer: C. No; Business and Enterprise data is not used for training
C is correct because GitHub does not use Copilot Business or Enterprise customer data to train AI models, and the training setting does not appear for those plans. A is incorrect because the personal opt-out applies to individual plans; Business and Enterprise data is not used for training at all. B is incorrect because the no-training commitment covers Business and Enterprise customer data regardless of repository visibility. D is incorrect because the training commitment does not depend on content exclusion settings. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
Configure privacy, content exclusions, and safeguards
Sample question 8
An enterprise owner wants a rule that excludes every environment file in every repository for all Copilot users in the enterprise, including users who get their seats from different organizations. Where should the rule be set?
In the enterprise's AI controls, under Copilot > Content exclusion
In each developer's personal Copilot settings on GitHub.com
In one organization's settings, under Copilot > Content exclusion
In each repository's Settings, under Copilot > Content exclusion
Show correct answer and explanation
Correct answer: A. In the enterprise's AI controls, under Copilot > Content exclusion
A is correct because enterprise-level exclusions apply to all Copilot users in the enterprise, whereas organization rules apply only to users with a seat from that organization. B is incorrect because there is no personal content exclusion setting, and users could change it themselves. C is incorrect because an organization's rules apply only to users who get their seat from that organization. D is incorrect because repository rules cover only that repository; setting them everywhere is slow and misses new repositories. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
Configure privacy, content exclusions, and safeguards
Sample question 9
An organization owner wants to exclude a sensitive folder in a repository hosted on another Git service, not GitHub. Developers clone it with SSH. How can the owner express this in the organization's content exclusion settings?
Ask each developer to clone with HTTPS, then add a GitHub URL
It cannot be done, because exclusions work only for repositories on GitHub
Add the folder name to the repository's .gitignore file
Use the repository's Git URL as the key and list the paths under it
Show correct answer and explanation
Correct answer: D. Use the repository's Git URL as the key and list the paths under it
D is correct because organization-level rules can reference repositories by https, git, ssh or user@host:path forms, and Copilot matches them however the repository was cloned. A is incorrect because Copilot matches the repository whichever protocol was used to clone it, and the host is not GitHub. B is incorrect because organization-level rules can target repositories on other Git hosts by their URL. C is incorrect because .gitignore controls what Git tracks; it is not a Copilot content exclusion. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
Configure privacy, content exclusions, and safeguards
Sample question 10
A security architect reviews content exclusion before relying on it for confidential files. Which statement is true?
It encrypts excluded files on each developer's machine so that no AI tool can read them.
It applies to all plans once a repository owner adds the paths in repository settings.
It stops every extension in the IDE from reading the files, including non-Copilot tools.
It is not a filesystem security boundary, and third-party MCP servers may not respect it.
Show correct answer and explanation
Correct answer: D. It is not a filesystem security boundary, and third-party MCP servers may not respect it.
D is correct because GitHub documents that exclusion is no substitute for operating-system permissions or access controls and is not guaranteed for third-party MCP servers or clients. A is incorrect because exclusion changes nothing on disk; it only tells Copilot not to use the content. B is incorrect because content exclusion is available only on Copilot Business and Copilot Enterprise. C is incorrect because exclusion is a Copilot setting; other extensions and tools are not governed by it. Skills measured: Configure privacy, content exclusions, and safeguards > Manage privacy settings and exclusions.
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.