nerdexam
Microsoft

GH-300 · Question #12

What content can be configured to be excluded with content exclusions? (Each correct answer presents part of the solution. Choose three.)

The correct answer is B. Files C. Folders D. Repositories. GitHub Copilot content exclusions operate at three granularity levels: repositories (exclude an entire repo from being used as context), folders (exclude a specific directory and its contents), and files (exclude specific files by path or pattern). Individual lines within a…

Configure privacy, content exclusions, and safeguards

Question

What content can be configured to be excluded with content exclusions? (Each correct answer presents part of the solution. Choose three.)

Options

  • ALines in files
  • BFiles
  • CFolders
  • DRepositories
  • EGists

How the community answered

(55 responses)
  • A
    4% (2)
  • B
    93% (51)
  • E
    4% (2)

Explanation

GitHub Copilot content exclusions operate at three granularity levels: repositories (exclude an entire repo from being used as context), folders (exclude a specific directory and its contents), and files (exclude specific files by path or pattern). Individual lines within a file (A) cannot be targeted - the smallest unit is a file. Gists (E) are not supported by content exclusions because they are not part of a repository structure. Content exclusions use path-based rules in a configuration file, so they require a file system hierarchy (repo → folder → file) to function.

Topics

#Content exclusions#Exclusion configuration#GitHub Copilot privacy#Data exclusion

Community Discussion

No community discussion yet for this question.

Full GH-300 Practice