Question 500
Two independently scoped GitHub Copilot requirements are being reviewed. Requirement A: A team uses external agents with broad repository write access in a Copilot workflow. Requirement B: A developer wants to know whether a suggested code snippet matches public code. Choose TWO changes that directly cover A and B.
Explanation
Correct Answers
This action addresses requirement B: A developer wants to know whether a suggested code snippet matches public code. Copilot matching-code references are conditional provenance hints, not complete source inventories, automatic attribution, or a legal approval. Verify by observing: The referenced repository and obligations are reviewed when found, and the absence of a reference is not documented as proof no matching code exists.
This action addresses requirement A: A team uses external agents with broad repository write access in a Copilot workflow. Agent tool permissions and external MCP server privileges must be independently bounded; Copilot content exclusion does not automatically govern those tools. Verify by observing: A negative test cannot write outside the allowlisted directory or invoke an unapproved MCP method, while in-scope changes produce a reviewable tested PR.
Incorrect Answers
This response targets another problem: A company wants organization-level exclusion rules to govern every assigned Copilot seat. It does not directly satisfy either stated requirement A or B. Organization owner/enterprise policies can cover assigned seats, while repository-only rules and feature-support gaps have narrower effective reach.
This response targets another problem: A security lead wants a controlled way to review generated snippets that resemble public repositories. It does not directly satisfy either stated requirement A or B. Matching-code references reflect a periodically refreshed GitHub public index and must not be equated with comprehensive copyright clearance or security scanning.
This response targets another problem: A Copilot Business organization wants to stop inline suggestions from reading an internal secrets directory. It does not directly satisfy either stated requirement A or B. Copilot Business/Enterprise content exclusions depend on configured paths, client support and feature mode; they are not a general access-control substitute.