GitHub Copilot (GH-300) · 18% practice allocation

GitHub GH-300: Use GitHub Copilot Responsibly Practice Questions

5 free sample questions from the Use GitHub Copilot Responsibly domain, with answers and explanations. The full GH-300 bank has 115 questions across 6 domains. Questions are scenario-based and written from the official GitHub exam guide.

1.

Your organization uses GitHub Copilot for Business. A compliance officer asks whether GitHub stores the code snippets sent to Copilot to train future versions of the model. Which statement accurately reflects the data handling policy for Copilot for Business?

  • A. Prompts and suggestions are not retained by GitHub and are not used to train the underlying model✓ Correct
  • B. Code snippets are retained indefinitely but anonymized before being used for training
  • C. Only suggestions that the developer accepts are retained and used for model fine-tuning
  • D. Code snippets (prompts and suggestions) are retained for 28 days and then used for model training
Explanation

Correct: For GitHub Copilot for Business (and Enterprise), prompts and suggestions are not retained beyond fulfilling the request and are explicitly not used to train the underlying model — a key privacy differentiator from the Individual plan's default settings. | Wrong - Retained for 28 days: This misrepresents the policy; Business/Enterprise plans do not retain snippets for training at all. | Wrong - Retained indefinitely but anonymized: Anonymization is irrelevant here because Business/Enterprise data is not retained for training regardless of anonymization. | Wrong - Only accepted suggestions: This describes a plausible-sounding partial policy, but it is incorrect; Copilot for Business does not retain any prompts or suggestions for training purposes.

2.

An organization administrator is reviewing GitHub's Responsible AI principles as they apply to Copilot. Which TWO of the following principles are explicitly part of Microsoft/GitHub's Responsible AI framework that governs Copilot's design?

  • A. Competitive advantage — AI systems should be designed to outperform rival products
  • B. Maximum throughput — AI systems should prioritize the highest number of tokens generated per second
  • C. Fairness — AI systems should treat all people equitably and avoid harmful bias✓ Correct
  • D. Vendor lock-in minimization — AI systems should be portable across cloud providers
  • E. Reliability and safety — AI systems should perform consistently and avoid causing harm✓ Correct
  • F. Open-source compliance — all AI models must release their weights under an open license
Explanation

Correct - Fairness: Fairness is one of the six core Microsoft Responsible AI principles, requiring that AI systems treat people equitably and minimize bias in outputs. Correct - Reliability and Safety: Also one of the six core principles, it requires that AI behaves predictably, safely, and consistently across conditions. | Wrong - Maximum throughput: Throughput is an engineering performance metric, not a Responsible AI principle; it has no place in ethical AI frameworks. | Wrong - Competitive advantage: Business strategy goals are not Responsible AI principles; responsible AI is about societal benefit and harm prevention, not market competition. | Wrong - Open-source compliance: While openness can be valued, requiring open weights is not part of Microsoft's Responsible AI framework. | Wrong - Vendor lock-in minimization: Portability is a cloud architecture concern, not a Responsible AI principle.

3.

A legal team raises concerns that a software developer may unknowingly ship Copilot-generated code that reproduces copyrighted third-party code. Which THREE features or practices does GitHub provide or recommend to mitigate this intellectual property risk?

  • A. Disable all Copilot suggestions in files that import third-party packages
  • B. Review and understand the licenses of any recognized code before incorporating suggestions into production✓ Correct
  • C. Rely solely on Copilot's auto-generated unit tests to verify a suggestion is original
  • D. Consult the GitHub Copilot Trust Center for transparency information on data use and IP policies✓ Correct
  • E. Use content exclusions to prevent sensitive internal code from being used as context
  • F. Enable the duplicate detection (public code matching) filter to block or flag suggestions resembling public code✓ Correct
Explanation

Correct - Duplicate detection: Enabling the public code matching filter is the primary technical control to catch suggestions that closely replicate licensed public code. Correct - Review licenses: GitHub advises developers to treat Copilot suggestions like any third-party code and review applicable licenses before shipping — a key recommended practice. Correct - Trust Center: The GitHub Copilot Trust Center provides official transparency documentation on IP policies, helping legal teams understand GitHub's position and developer obligations. | Wrong - Rely on unit tests: Unit tests verify correctness and behavior, not originality or copyright status; they cannot determine if code is a reproduction of copyrighted material. | Wrong - Content exclusions for IP: Content exclusions prevent private files from influencing context; they are a privacy/security tool, not an IP originality checker for outgoing suggestions. | Wrong - Disable in files with imports: This is an overly broad and unsupported practice; importing third-party packages does not mean Copilot will reproduce their licensed code, and blanket disabling would eliminate legitimate productivity benefits.

4.

A developer advocate is writing internal documentation about GitHub Copilot's Responsible AI commitments. They want to correctly explain which of the following behaviors reflect GitHub's stated Responsible AI principles for Copilot. (Select THREE)

  • A. GitHub guarantees that Copilot will never generate code containing security vulnerabilities
  • B. GitHub certifies that all Copilot suggestions are free of intellectual property encumbrances
  • C. GitHub applies content filters to reduce the likelihood of Copilot producing harmful or offensive output✓ Correct
  • D. GitHub publishes transparency documentation about how Copilot works through its Trust Center✓ Correct
  • E. GitHub's Responsible AI principles include fairness, reliability, privacy, security, and inclusiveness as guiding values for Copilot
  • F. GitHub provides mechanisms for users to opt out of having their data used to improve Copilot models (for Individual plan users)✓ Correct
Explanation

Three correct responsible AI behaviors: (F) GitHub does provide opt-out mechanisms for Individual plan users regarding data use for model improvement — this reflects the Privacy principle. (D) The GitHub Copilot Trust Center is a real transparency resource documenting data handling, telemetry, and opt-outs — reflecting Transparency/Accountability. (C) Content filters are applied to reduce harmful or offensive outputs — reflecting Safety and Reliability principles. Option A is incorrect: GitHub explicitly does not guarantee that Copilot suggestions are free of security vulnerabilities; developers are responsible for reviewing suggestions. Option B is incorrect: GitHub explicitly does not certify suggestions as free of IP encumbrances; the duplicate detection filter helps but provides no legal guarantee. Option E is partially correct in listing the principles, but as a blanket statement it conflates listing principles with demonstrating behaviors — and 'accountability' and 'transparency' are also part of Microsoft's Responsible AI framework that GitHub references; the statement is too vague to be a specific demonstrated behavior.

5.

A multinational enterprise is evaluating GitHub Copilot for Business. Their data governance team wants to know which of the following data-handling commitments GitHub makes for this plan. (Select TWO)

  • A. Prompts and suggestions are transmitted over encrypted connections (TLS) and are not retained after a suggestion is returned✓ Correct
  • B. GitHub provides a Data Protection Agreement (DPA) for Copilot for Business customers upon request
  • C. GitHub does not use prompts or suggestions from Copilot for Business to train or improve the underlying AI models✓ Correct
  • D. Copilot for Business automatically redacts personally identifiable information (PII) from all suggestions before delivery
  • E. All source code sent to Copilot for Business is encrypted at rest in a dedicated per-organization vault
Explanation

GitHub Copilot for Business commits to: (1) not using prompts or suggestions to train AI models, and (2) transmitting data over TLS and not retaining prompts/suggestions after the response is delivered. Option E is incorrect: GitHub does not provision dedicated per-organization encrypted vaults for source code; this is not a documented commitment. Option D is incorrect: Copilot does not automatically redact PII from suggestions; developers are responsible for avoiding sensitive data in prompts. Option B is partially plausible but is not one of the two most directly documented data-handling commitments specific to how the service processes code — it relates more to contractual arrangements than to technical data handling.

Test yourself across every GH-300 domain

The free GH-300 practice test mixes about 20 questions weighted like the exam. The full 115-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Use GitHub Copilot Responsibly study guide (GH-300) →

Other GH-300 domains

← All GitHub Copilot study resources