↓ Try a sample question (with explanation)

Microsoft · Practice questions

GH-300: GitHub Copilot

Study 102 GH-300: GitHub Copilot practice questions with explanations. 20 of them are free to try, no sign-up needed.

Buy to unlock all questions, full reading mode and PDFs.

About this question bank

Questions
102 in total
Free to try
20 questions (no sign-up)
Exam domains
7 domains
Price
JPY 1,500 (≈ US$10; shown in your local currency at checkout) · one-time payment · 3 months
PDF
Japanese–English · Chinese–English · Korean–English · English (for buyers)
Data version
2026-11

About this exam

This is the exam for the GitHub Copilot certification from GitHub. It is aimed at developers who use GitHub Copilot and at those who manage its rollout in an organization, and covers responsible AI, Copilot plans and features, prompt crafting, development use cases, and privacy and content exclusion.

Try a sample question

This is an original sample question written by itmoshi based on the exam objectives.

An organization uses GitHub Copilot Business. For files under the config/secrets/ directory of one repository, and for files with the .pem extension, it must meet these requirements: Copilot inline suggestions and chat must not directly use their contents; the rule must apply to every member of the organization; and Copilot must stay available for all other files. What should you do?

  1. AAdd the target paths and extension to the repository's .gitignore file
  2. BAdd the target paths to content exclusion in the repository's Copilot settings
  3. CDisable Copilot access for all members in the organization settings
  4. DAdd a comment at the top of each target file telling Copilot not to read it
Show answer and explanation

Answer:B Use content exclusion to keep specific files out of Copilot's context.

Why it is correct

Copilot Business and Copilot Enterprise let you configure content exclusion in repository or organization settings. Excluded files are no longer used to generate inline suggestions or chat responses, and no suggestions are offered while editing them. The setting applies to every member who gets a Copilot seat through the organization, and Copilot keeps working for all other files. Keep in mind that it cannot stop semantic information the IDE supplies indirectly, such as type information, and it is not a substitute for file system access controls.

The other options

  • ✗ A .gitignore keeps untracked files from being added to Git by default; it is not a Copilot context setting (and it does not affect files Git already tracks). Use it to keep build output or local config files out of commits.
  • ✗ C Disabling Copilot blocks it for every file, not just the sensitive ones, which breaks the requirement. Use it when the organization wants to stop using Copilot altogether.
  • ✗ D A comment can guide a completion, but it cannot enforce a rule the way content exclusion does. Comments are prompts that tell Copilot what you want it to write.

Key takeaway

Keep certain files out of Copilot's direct use → content exclusion (Business/Enterprise; not a security boundary). Keep people from using Copilot → policies or disabling access. Keep files out of Git → .gitignore.

Try 20 questions like this for free

Most frequent topics

  1. Copilot features such as code completion, pull request summaries and knowledge bases17 questions
  2. Copilot's role in completion, debugging, refactoring and multi-language support15 questions
  3. Risks, limitations and bias of generative AI11 questions
  4. Copilot use cases in real development workflows10 questions
  5. Best practices for clear, effective prompts8 questions
  6. Managing content exclusion and data ownership7 questions

Number of questions per topic among the 102 in this bank (top topics), as classified by itmoshi.

Exam domains

  1. Responsible AI and Ethical Use of Copilot16 questions
  2. GitHub Copilot Plans and Features24 questions
  3. How GitHub Copilot Works and Handles Data14 questions
  4. Prompt Crafting and Prompt Engineering11 questions
  5. Developer Use Cases for AI-Assisted Coding25 questions
  6. Testing with GitHub Copilot1 questions
  7. Privacy Fundamentals and Context Exclusions11 questions

Other Microsoft exams

← All exams

itmoshi is an unofficial study service and is not affiliated with Microsoft or any exam provider.