Free GitHub Copilot practice — 6 questions on How GitHub Copilot Works and Handles Data, with explanations. No sign-up.
Full 12-question mixed test →
Question 1 of 6 · How GitHub Copilot Works and Handles Data
A security team at ExampleCorp, which uses GitHub Copilot Business, asks whether the proprietary source code their developers write while using Copilot could end up being used to train the underlying AI model for other customers. Which statement correctly describes GitHub's policy?
GitHub explicitly states that Copilot Business and Enterprise plans do not use customers' code (prompts or suggestions) to train the underlying models, which is a distinct guarantee from the default data-use terms on individual plans.
Question 2 of 6 · How GitHub Copilot Works and Handles Data
Which of the following best describes how GitHub Copilot assembles the context it sends to the language model when generating an inline code completion in the editor?
Copilot constructs a prompt using surrounding code in the active file along with context from neighboring open tabs/related files, giving the model localized but richer context without needing the whole repository.
Question 3 of 6 · How GitHub Copilot Works and Handles Data
An organization owner is configuring Copilot Business policies and sets the 'Suggestions matching public code' policy to Block. What effect does this have on Copilot's suggestion flow?
When set to Block, Copilot's service-side filtering compares candidate suggestions against public code and suppresses matches at or above roughly 150 characters before they ever reach the editor.
Question 4 of 6 · How GitHub Copilot Works and Handles Data
Developers at a Copilot Enterprise organization want Copilot Chat on GitHub.com to answer questions that reference internal documentation and code across multiple repositories, not just the file currently open. Which Copilot Enterprise capability enables this?
Copilot Enterprise knowledge bases build a semantic index over selected repositories/documentation, allowing Copilot Chat to pull relevant context from across the indexed sources rather than being limited to the currently open file.
Question 5 of 6 · How GitHub Copilot Works and Handles Data
Which statement most accurately reflects the underlying large language models (LLMs) that power GitHub Copilot as of 2026?
GitHub has expanded Copilot beyond a single OpenAI Codex model, offering model choice (including models from providers like Anthropic and Google in addition to OpenAI) for Copilot Chat in supported plans/IDEs, while inline completions use a default optimized model unless otherwise configured.
Question 6 of 6 · How GitHub Copilot Works and Handles Data
A Copilot Business admin configures a content exclusion rule for the path secrets/** across the organization's repositories. A developer opens a file under that path in their editor. What is the expected behavior?
Content exclusion rules are enforced as an organization-wide policy: matching files are excluded from being used as context and from receiving inline completions, consistently across developers and sessions wherever the policy applies.
Ready for the real thing?
The full course has two full-length practice tests, video lessons for every exam domain, hands-on labs and detailed answer explanations.