GH-300 / GitHub · professional

GH-300: GitHub Copilot

Prepare for GH-300 with GitHub Copilot exercises and 320 questions in English and Spanish.

For developers who already use GitHub and want to work with Copilot in the editor, terminal, and on GitHub.com. The outline covers everyday coding workflows as well as administration and data controls.

View the Microsoft Learn exam outline

The outline effective August 7, 2026 still includes GitHub Spark. GitHub retired the Spark experience on github.com in August 2026. Practice cases distinguish its historical role from the options available for new projects. Read the GitHub announcement

Exam outline and priorities

Exam areaOfficial weight
Use GitHub Copilot responsibly15–20 %
Use GitHub Copilot features25–30 %
Understand Copilot data and architecture10–15 %
Design prompts and craft context10–15 %
Improve developer productivity10–15 %
Configure privacy, exclusions, and safeguards10–15 %

Use the weights to allocate study time and review every area. Spend more practice time on errors you can reproduce and explain.

Certification practice project

Use a practice repository with a small parser and synthetic data. Define its contract, fix an edge case with Copilot, create repository instructions and a reusable prompt, and prepare a small PR. Keep the diff, test results, and a record of the context, tools, and permissions used at each step.

Responsible use and human verification

Output can look plausible and be wrong. Review code, documentation, and tests against independent requirements. Keep secrets out of prompts and document decisions that affect security, accessibility, and quality.

Practical exercise

Request a validation implementation with two requirements. Add one empty-input test and one boundary test. Identify any suggestion assumptions not found in the contract.

Check your understanding

You can explain why you accepted each change and what evidence verifies the behavior.

Technical documentation on Microsoft Learn

IDE, CLI, agents, and PR review

Use inline suggestions to complete a block, Chat to investigate a question, and agent mode to change a set of files. Distinguish a local session from work delegated to the cloud, and review tools, files, and changes. Separate Copilot feedback from approval required by the branch.

Practical exercise

Try a question about a file in the IDE and a CLI session on a practice repository. Resume the session, inspect its tools, and generate a PR summary that you verify against the diff.

Check your understanding

You can choose the surface for a task and show which decisions remain with its reviewer.

Technical documentation on Microsoft Learn

What context and data Copilot uses

Distinguish prompt preparation from generation and downstream checks. Effective context depends on the surface and may include relevant snippets or history. Separate processing needed for a reply from model-training use under GitHub’s documented plan policies.

Practical exercise

Compare an explanation with no attachments to one given only the needed snippet from a fictional repository. Note what references change, what facts the model still cannot know, and how you verify them.

Check your understanding

You can explain why a contextually plausible output can still fail due to a nonexistent API or an untested condition.

Technical documentation on Microsoft Learn

Reusable prompts and shared instructions

Include the goal, constraints, useful examples, and criteria for evaluating output. Repository instructions provide conventions in supported interactions. Prompt files are for tasks you choose to invoke.

Practical exercise

Request a refactor with a short prompt, then add an expected input and output. Save the successful procedure as a prompt file and a stable convention as an instruction. Verify when each takes effect.

Check your understanding

You can isolate the effect of an example, instruction, or code snippet while iterating.

Technical documentation on Microsoft Learn

Testing, refactoring, and documentation

Derive expected results from the contract and review generated tests that merely copy the implementation. Use integration tests for component boundaries, regression cases to preserve behavior, and comparable measurements to justify performance changes.

Practical exercise

Ask for parser unit tests and an integration test with its consumer. Deliberately change a boundary and confirm that at least one test fails for the right reason. Complete the usage instructions by running them in a clean environment.

Check your understanding

You can locate evidence that the change works without relying on Copilot’s completion status.

Technical documentation on Microsoft Learn

Plans, policies, privacy, and auditing

Distinguish seats from policies and seat inventory from audit history. Content exclusion and public-code matching controls serve different goals. Check which surfaces support them and retain independent access controls.

Practical exercise

Design a two-team pilot. List the policy to verify in the IDE, CLI, and code review. Test an excluded and an allowed path using synthetic data, and identify the event you would use to audit a seat assignment.

Check your understanding

You can explain what the application control limits and what must be prevented with system or provider permissions.

Technical documentation on Microsoft Learn

Practice with the simulator

The bank includes 320 questions in Spanish and English. Start with a short session, review explanations, and reproduce missed decisions in your project.

Practice answer selection, yes/no tables, step ordering, and matching. In a case study, identify the goal, permissions, and constraints before choosing an option.

Open the GH-300 simulator

Before taking the exam

  • Review official objectives and their effective date.
  • Complete the project and keep evidence of relevant error, permission, and deployment tests.
  • Explain decisions using case requirements and consult documentation when unsure.
  • Repeat a timed session after addressing weak areas.

Explore the Microsoft exam sandbox