Skip to content

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 โ€‹

FeatureIndividualBusinessEnterprise
IDE suggestions & chatโœ…โœ…โœ…
Org policy managementโŒโœ…โœ…
Content exclusionsโŒโœ…โœ…
Audit logsโŒโœ…โœ…
Knowledge BasesโŒโŒโœ…
Copilot on GitHub.comโŒโŒโœ…

Mode Quick Reference โ€‹

Mode / InterfaceBest For
Inline suggestionsCode as you type in IDE
Copilot Chat (IDE)Questions, refactors, explanations
Agent ModeAutonomous multi-step tasks
Edit ModeCross-file edits, review each change
Plan ModePreview Copilot's plan before execution
Copilot CLITerminal command help
Copilot on GitHub.comPR 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 โ€‹

SafeguardWhat it does
Content exclusionsPrevents Copilot using specific files as context
Duplication detectionFilters suggestions matching public GitHub code
Security warningsFlags 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

โ† Overview ยท โ† Exam Guide

Happy Studying! ๐Ÿš€ โ€ข Privacy-friendly analytics โ€” no cookies, no personal data
Privacy Policy โ€ข AI Disclaimer โ€ข Report an issue