GITHUB-COPILOT practice question 3 of 15
What is the correct way to exclude specific files from being used by GitHub Copilot Business during code suggestions?
Full set: 65 questionsFor GitHub Copilot Business and Enterprise, content exclusion is managed centrally through the GitHub user interface. Administrators can specify paths to files or directories within a repository's or organization's settings. This prevents GitHub Copilot from accessing the content of those files for any user working within that repository. This server-side configuration ensures that policies are enforced consistently across the organization, regardless of individual user settings. This feature is specifically designed for businesses to maintain control over which codebases are used for suggestions.
A. The .gitignore file is for Git source control and is explicitly not used by GitHub Copilot for content exclusion, as confirmed by official documentation.
B. There is no officially documented feature or configuration file named copilot.ignore for managing content exclusions in GitHub Copilot.
D. Renaming files with a specific suffix like nocopilot is not a recognized or supported method for excluding content from GitHub Copilot. ---
1. GitHub Docs. (2024). "Configuring content exclusions for GitHub Copilot." GitHub Enterprise Cloud Documentation.
Reference Section: The entire document describes the process. Specifically, the introduction states, "You can configure content exclusions for GitHub Copilot in the settings for your repository or organization." The section "About content exclusions for GitHub Copilot" clarifies, "The content exclusion settings for GitHub Copilot are not inherited from the .gitignore file." This directly supports option C and refutes option A. The document makes no mention of methods described in options B or D.
Keep practicing
Take the free GITHUB-COPILOT practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-COPILOT practice questions
- Question 1What is the best way to share feedback about GitHub Copilot Chat when using it on GitHub …
- Question 2What types of prompts or code snippets might be flagged by the GitHub Copilot toxicity fi…
- Question 4How do you generate code suggestions with GitHub Copilot in the CLI?
- Question 5Which principle emphasizes that AI systems should be understandable and provide clear inf…
- Question 6What should developers consider when relying on GitHub Copilot for generating code that i…
- Question 7What is the process behind identifying public code matches when using a public code filte…
