Question 410
A reviewer needs a focused diagnosis and proof of resolution for: An AI suggestion looks like an exact copy of a public helper even though the user's current file was private. Which check-to-acceptance pair addresses that specific condition?
Explanation
Correct Answer
The read-only check (inspect available code references and the configured public-code-match policy) isolates the relevant issue, and the acceptance evidence (no unreviewed publicly matched implementation is merged into private code) shows that its corresponding fix worked.
Incorrect Answers
This diagnostic and result belong to a different incident: A Copilot answer proposes a change in a file that was not open, selected or provided to the chat. For 'An AI suggestion looks like an exact copy of a public helper even though the user's current file was private', examine inspect available code references and the configured public-code-match policy and confirm that no unreviewed publicly matched implementation is merged into private code.
This diagnostic and result belong to a different incident: A chat request references a production credential stored in a repository file and asks for a sample connection string. For 'An AI suggestion looks like an exact copy of a public helper even though the user's current file was private', examine inspect available code references and the configured public-code-match policy and confirm that no unreviewed publicly matched implementation is merged into private code.
This diagnostic and result belong to a different incident: A developer assumes that every Copilot plan retains chat prompts and uses them for training in the same way. For 'An AI suggestion looks like an exact copy of a public helper even though the user's current file was private', examine inspect available code references and the configured public-code-match policy and confirm that no unreviewed publicly matched implementation is merged into private code.



GitHub Copilot Practice Tests