nerdexam
MicrosoftMicrosoft

GH-300 · Question #54

GH-300 Question #54: Real Exam Question with Answer & Explanation

The correct answer is A: Use the ".Copilotignore" file to list files or paths to be excluded from Copilot context and. GitHub Copilot supports the ".Copilotignore" file, which allows users to explicitly exclude files or folders from being considered as context for suggestions and from being used for future model improvements. This is the appropriate way to protect proprietary code. https://learn.

Configure privacy, content exclusions, and safeguards

Question

Your development team is concerned about the use of proprietary code in GitHub Copilot's training dataset. To maintain privacy and protect intellectual property, they want to ensure that specific files or directories are not used by GitHub Copilot for training purposes. What should they configure to achieve this?

Options

  • AUse the ".Copilotignore" file to list files or paths to be excluded from Copilot context and
  • BAdd the files to ".gitignore" so Copilot doesn't access them
  • CDisable GitHub Copilot entirely from the organization settings
  • DPlace a comment in the file indicating it is confidential

Explanation

GitHub Copilot supports the ".Copilotignore" file, which allows users to explicitly exclude files or folders from being considered as context for suggestions and from being used for future model improvements. This is the appropriate way to protect proprietary code. https://learn.microsoft.com/en-us/training/modules/github-copilot-management-and- customizations/4-manage-content-exclusions https://marketplace.visualstudio.com/items?itemName=Mattickx.copilotignore-vscode

Topics

#GitHub Copilot exclusion#.Copilotignore#Data privacy#IP protection

Community Discussion

No community discussion yet for this question.

Full GH-300 PracticeBrowse All GH-300 Questions