Configure Privacy, Content Exclusions & Safeguards

This skill area accounts for 10–15% of the exam. It covers content exclusion configuration, output ownership, duplication detection, security warnings, and troubleshooting suggestion issues.

Disclaimer: These are personal study notes. Always verify against the official study guide.

Manage Privacy Settings & Exclusions

Content Exclusions & Editor Settings

Content exclusions are a key admin control on Business/Enterprise plans. Reference: Excluding content from GitHub Copilot.

Configuration Scopes

LevelLocation in GitHubScope of Effect
RepositoryRepo Settings → Copilot → Content exclusionThat repository only
OrganizationOrg Settings → Copilot → Content exclusionAll users with seats from that org
EnterpriseEnterprise AI controls → Copilot → Content exclusionAll orgs and users in the enterprise

What Gets Excluded

When a file matches an exclusion rule, Copilot:

Pattern Syntax — fnmatch (case-insensitive)

Exclusion paths use fnmatch pattern matching notation:

PatternMatches
*Any string of characters (within one path segment)
?Any single character
[abc]Any one of the listed characters
[a-z]Any character in the range
{server,session}*Brace expansion: files starting with "server" or "session"
**/directory/**Recursive match: any file under "directory" at any depth

Example Configuration Syntax

Repository-level (one path per line):

# Exclude secrets and config files
secrets.json
secret*
*.cfg
**/.env
/scripts/**

Organization/Enterprise-level (YAML, keyed by repo):

"*":
  - "**/.env"

my-repo:
  - "/src/internal/kernel.rs"
  - "secrets.json"

https://github.com/org/repo.git:
  - "/PATH/TO/FILE"
⚠ Critical Exam Fact — CLI & Agent Mode Exception

"GitHub Copilot CLI, Copilot cloud agent, and Agent mode in Copilot Chat in IDEs, do not support content exclusion." — This is a major caveat that is very likely to be tested. Content exclusions only apply to IDE inline suggestions and Chat (non-agent mode).

Propagation & Verification

API Management

Editor-Level User Settings

⚠ Exam Tip — Scope & Plan

Content exclusions are Business and Enterprise plans only — not available on Free, Pro, Pro+, or Max (Max is still an individual plan, no matter how expensive — it gets no org-admin controls). Also know the three configuration levels (repo, org, enterprise) and their relative scope.

Ownership & Limitations of Outputs

Who Owns AI-Generated Code?

Limitations to Remember

Apply Safeguards & Troubleshoot

Duplication Detection & Security Warnings

"Suggestions Matching Public Code" (Duplication Detection / Code Referencing)

The exam guide names this policy "suggestions matching public code filtering" — Copilot compares a suggestion plus ~150 characters of surrounding code against public code on GitHub, and can block or allow matches:

SettingBehaviourUse Case
BlockSuppress suggestions that match (or near-match) public code; user sees no suggestionStrict IP compliance, open-source projects
AllowShow matching suggestions and let the user view the matched repositories ("code referencing")Maximum productivity, less IP-sensitive projects

Security Warnings

ⓘ Key Distinction: Duplication Detection vs. Content Exclusions
Content ExclusionsDuplication Detection
What it doesPrevents Copilot from accessing specific files/reposChecks if suggestions match publicly available code
DirectionControls input (what Copilot can see)Controls output (what Copilot can suggest)
Plan requiredBusiness / EnterpriseAll plans (configurable)
Configured byOrg/Enterprise adminIndividual (if unaffiliated) or Org/Enterprise admin (policy is inherited if affiliated)

Troubleshooting Suggestions & Exclusions

SymptomLikely CauseResolution
No suggestions in any file Extension disabled, no valid subscription, authentication error Check extension toggle, verify account/subscription, re-authenticate
No suggestions in a specific file File matches a content exclusion rule, or duplication detection is blocking Check org/repo exclusion settings; check duplication detection policy
Low-quality or irrelevant suggestions Insufficient context (few open files, vague prompt) Open relevant files, write descriptive comments, use few-shot examples
Exclusions not taking effect 30-minute propagation delay, incorrect glob pattern, wrong scope level Wait 30 min or force reload IDE; verify pattern syntax and config scope
Excluded file still referenced in Chat Cache delay or stale IDE session Reload IDE window; re-open the chat session
Chat rate limit reached Premium request quota exhausted for the month Wait for quota reset (monthly); upgrade plan or purchase additional requests
Agent/CLI ignoring exclusions Content exclusions do not apply to CLI, cloud agent, or Agent Mode This is by design — use alternative safeguards for agentic workflows

Study Resources