About this exam
This is the exam for the GitHub Copilot certification from GitHub. It is aimed at developers who use GitHub Copilot and at those who manage its rollout in an organization, and covers responsible AI, Copilot plans and features, prompt crafting, development use cases, and privacy and content exclusion.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
An organization uses GitHub Copilot Business. For files under the config/secrets/ directory of one repository, and for files with the .pem extension, it must meet these requirements: Copilot inline suggestions and chat must not directly use their contents; the rule must apply to every member of the organization; and Copilot must stay available for all other files. What should you do?
- AAdd the target paths and extension to the repository's .gitignore file
- BAdd the target paths to content exclusion in the repository's Copilot settings
- CDisable Copilot access for all members in the organization settings
- DAdd a comment at the top of each target file telling Copilot not to read it
Show answer and explanation
Answer:B Use content exclusion to keep specific files out of Copilot's context.
Why it is correct
Copilot Business and Copilot Enterprise let you configure content exclusion in repository or organization settings. Excluded files are no longer used to generate inline suggestions or chat responses, and no suggestions are offered while editing them. The setting applies to every member who gets a Copilot seat through the organization, and Copilot keeps working for all other files. Keep in mind that it cannot stop semantic information the IDE supplies indirectly, such as type information, and it is not a substitute for file system access controls.
The other options
- ✗ A .gitignore keeps untracked files from being added to Git by default; it is not a Copilot context setting (and it does not affect files Git already tracks). Use it to keep build output or local config files out of commits.
- ✗ C Disabling Copilot blocks it for every file, not just the sensitive ones, which breaks the requirement. Use it when the organization wants to stop using Copilot altogether.
- ✗ D A comment can guide a completion, but it cannot enforce a rule the way content exclusion does. Comments are prompts that tell Copilot what you want it to write.
Key takeaway
Keep certain files out of Copilot's direct use → content exclusion (Business/Enterprise; not a security boundary). Keep people from using Copilot → policies or disabling access. Keep files out of Git → .gitignore.
Try 20 questions like this for free
itmoshi is an unofficial study service and is not affiliated with Microsoft or any exam provider.