GitHub Copilot Certification — Question 5

What is the correct way to exclude specific files from being used by GitHub Copilot Business during code suggestions?

Answer options

Correct answer: C

Explanation

The correct method to exclude files from GitHub Copilot Business is by using the GitHub Copilot settings in the user interface. Modifying the .gitignore file or adding files to a copilot.ignore file does not directly affect Copilot's behavior, and renaming files with a suffix does not provide a mechanism for exclusion.