GH-300 study notes · 10–15% of the exam

Improve developer productivity with GitHub Copilot

First draft for review. Check details against Microsoft Learn before relying on them.

What this area covers

Using Copilot for everyday engineering work: generating, refactoring, documenting, learning, testing and securing code.

Key concepts

  • Code generation and refactoring: generate boilerplate, translate between languages, refactor for readability, and modernise legacy code (for example, updating deprecated APIs).
  • Documentation: docstrings, README sections and explanations of unfamiliar code with /explain.
  • Learning and less context switching: ask Chat in the IDE instead of searching the web, and onboard to new codebases faster.
  • Sample data: generate realistic test data, mocks and fixtures.
  • Testing: generate unit and integration tests with /tests, ask for edge cases (nulls, boundaries, errors) and write assertions. Review generated tests for meaningful checks.
  • Security and performance: ask for security improvements (input validation, parameterised queries) and performance optimisations. Pair Copilot with code scanning and Copilot Autofix.

Exam tips

  • Copilot speeds up writing tests, but you still decide what correct behaviour is.
  • If a question asks how to find edge cases you missed, ask Copilot Chat to list edge cases for the function, then write tests for them.