Module 6 — Privacy, Content Exclusions, and Safeguards

Exam weight: 10–15% Study time: 30–45 minutes Lessons: Privacy & exclusions · Safeguards & troubleshooting · Course wrap-up

Exam tactic. Privacy and safeguards matter most in Enterprise environments. Exam questions usually ask at which level (user, org) a setting is controlled and what it affects.

L01 — Privacy settings and content exclusions

Why privacy matters

GitHub Copilot sends code context to GitHub services on Microsoft Azure. Without proper settings, sensitive material — passwords, API keys, customer data — can end up in Copilot's context.

Content Exclusions levels

LevelConfigured inWho can set it
OrganizationGitHub.com → Org Settings → CopilotOrg admin
RepositoryGitHub.com → Repo Settings → Copilot → Content exclusionRepo admin
UserIDE settingsIndividual user (limited)

Key exam point. Org-level exclusions take precedence — users cannot override them.

Configuring org-level exclusions

  1. GitHub.com → Organization → Settings → GitHub Copilot → Content exclusion.
  2. Add file paths or glob patterns (**/*.env, config/secrets/**).
  3. Changes can take up to 30 minutes to take effect (reload the IDE).

Repo-level exclusions

Configured at Repository → Settings → Copilot → Content exclusion. One path per line:

- "**/.env"
- "**/secrets/**"
- "**/*password*"
- "config/production.yml"

IDE-level settings

{
  "github.copilot.enable": {
    "*": true,
    "yaml": false,
    "plaintext": false,
    "markdown": false
  }
}

This disables Copilot in YAML, plaintext, and Markdown — useful for files that often hold sensitive data. Org-level settings still take precedence.

Output ownership and limits

L02 — Safeguards and troubleshooting

Duplication Detection

Duplication Detection checks whether a Copilot suggestion resembles known public code (e.g. open source on GitHub). Settings:

Configured at GitHub.com → Settings → GitHub Copilot → Suggestions matching public code (per user) or Org Settings → Copilot (per org).

Security warnings

Copilot can warn inline in the IDE about hard-coded secrets, SQL injection patterns, missing input validation, insecure HTTP, and weak/deprecated cryptography. Active automatically when Copilot is enabled (Business/Enterprise). These warnings are not exhaustive — pair with SAST tools.

Troubleshooting checklist

Copilot gives no suggestions:

  1. Is the extension installed and up to date?
  2. Does the user have an active subscription?
  3. Is the file type excluded (org or user setting)?
  4. Is the file excluded by Content Exclusions (org or repo)?
  5. Is Copilot temporarily disabled in the IDE status bar?

Copilot still suggests in an excluded file:

  1. Is the path/pattern correct?
  2. Have the changes propagated yet (up to 30 minutes)? Reload the IDE.
  3. Is this an org-level or repo-level exclusion?
  4. Run "Reload Window".

Duplication Detection not triggering:

  1. Is it set to Block or Allow with warning?
  2. Is the user on Business/Enterprise? (limited on Free)
  3. Is GitHub authentication still valid?

Org policies don't appear in the IDE:

  1. Is the IDE signed in to the right GitHub account?
  2. Is the user actually a member of the org?
  3. Have the changes propagated? Restart the IDE.

L03 — Course wrap-up

Whole-course summary

Exam preparation checklist

Pass score: 700/1000. Duration: 45–75 minutes. Validity: one year. Most weight is in M02 (~25–30%), then M01 (~15–20%), then the rest (10–15% each). Read questions carefully — many ask for the "BEST" or "MOST APPROPRIATE" answer.

Next steps after the certification

Passing GH-300 validates your knowledge. Using Copilot well in production is a methodology question. AI Architect Mastery teaches the AI Driven Development Methodology — also known as structured Vibe Coding — a structured PRD → PLAN → TASK → IMPLEMENTATION workflow that turns ad hoc Copilot use into repeatable, production-quality work.

See the methodology See AAM courses

Official source documents