GH-300: Cheatsheet โ
โ Overview ยท โ Exam Guide
Exam Day Reference
Review this page 5 minutes before the exam.
Responsible AI Core (HVA) โ
- Human-in-the-loop โ Always validate AI output before using it
- Validate โ Test, read, and review every suggestion
- Accountable โ The developer is responsible, not the AI
Copilot Plans at a Glance โ
| Feature | Individual | Business | Enterprise |
|---|---|---|---|
| IDE suggestions & chat | โ | โ | โ |
| Org policy management | โ | โ | โ |
| Content exclusions | โ | โ | โ |
| Audit logs | โ | โ | โ |
| Knowledge Bases | โ | โ | โ |
| Copilot on GitHub.com | โ | โ | โ |
Mode Quick Reference โ
| Mode / Interface | Best For |
|---|---|
| Inline suggestions | Code as you type in IDE |
| Copilot Chat (IDE) | Questions, refactors, explanations |
| Agent Mode | Autonomous multi-step tasks |
| Edit Mode | Cross-file edits, review each change |
| Plan Mode | Preview Copilot's plan before execution |
| Copilot CLI | Terminal command help |
| Copilot on GitHub.com | PR summaries, code review (Enterprise) |
Chat Commands โ
/explainโ Explain selected code/fixโ Suggest a fix for selected code/testsโ Generate unit tests for selected code/docโ Generate documentation for selected code@workspaceโ Search across the entire project
Prompt Engineering (GCSF) โ
- Goal โ What to do
- Context โ Why/where
- Source โ What data/files to reference
- Format โ Output style, types, error handling
Few-shot: Provide 1-3 examples before asking Zero-shot: Just describe the task Prompt file: .github/copilot-instructions.md for workspace-wide conventions
Safeguards Quick Reference โ
| Safeguard | What it does |
|---|---|
| Content exclusions | Prevents Copilot using specific files as context |
| Duplication detection | Filters suggestions matching public GitHub code |
| Security warnings | Flags suggestions with vulnerability patterns |
Quick Decision Rules โ
Autonomous multi-step task? โ Agent Mode
Cross-file refactor, want to review each change? โ Edit Mode
Need Copilot to use external service data? โ MCP (Model Context Protocol)
Need persistent org-wide Copilot instructions? โ .github/copilot-instructions.md
Org wants to block a sensitive directory from Copilot? โ Content exclusions (requires Business/Enterprise)
Suggestion matches public open source code? โ Duplication detection enabled โ suggestion filtered
AI output seems wrong / hallucination? โ Validate output independently; refine prompt with more context
Terminology Check โ
- Hallucination: Confident but incorrect AI output (wrong API names, invented functions)
- Zero-shot prompting: Task request with no examples โ model uses training knowledge alone
- Few-shot prompting: Providing examples to guide the model's pattern
- Duplication detection: Filter for suggestions matching public GitHub repos verbatim
- Content exclusions: Admin config preventing specific files from being used as Copilot context
- MCP: Model Context Protocol โ connects Copilot to external data sources at runtime
- Agent Mode: Copilot autonomously runs multi-step tasks including terminal commands
- Edit Mode: Copilot proposes cross-file edits; user reviews each change individually
- Prompt file:
.github/copilot-instructions.mdโ persistent workspace instructions for Copilot