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

Use GitHub Copilot responsibly

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

What this area covers

The limits and risks of AI coding assistants and how to use Copilot responsibly: review everything, test everything, and stay accountable for the code you ship.

Key concepts

  • Risks and limitations: generated code can be wrong, insecure, outdated or biased. It can sound confident and still be incorrect, and it may resemble public code.
  • Responsible AI principles (Microsoft and GitHub): fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.
  • Potential harms include security vulnerabilities, licence issues, leaking secrets in prompts, over-reliance and skills atrophy. Mitigate them with review, tests, code scanning, the public code filter and content exclusions.
  • Validate output: read and understand suggestions, run tests and linters, check against requirements, and never merge code you can't explain.
  • Operate responsibly: give clear context, keep secrets out of prompts, follow organisation policy, and report problematic suggestions using the feedback options.

Exam tips

  • The developer, not Copilot, is accountable for the code that ships.
  • If a question asks for the best way to make sure a suggestion is correct, the answer is to test and review it. Accepting it because it compiles is wrong.