GitHub Advanced Security — Question 12
How does GitHub Copilot identify matching code and ensure that public code is appropriately handled or blocked? Each correct answer presents part of the solution. (Choose two.)
Answer options
- A. Implementing safeguards to detect and avoid suggesting verbatim snippets from public code
- B. Filtering out suggestions that match code from public repositories
- C. Using machine learning models trained only on private repositories
- D. Reviewing and storing user-specific private repository data for future suggestions
Correct answer: A, B
Explanation
The correct answers, A and B, describe how GitHub Copilot implements measures to avoid suggesting exact matches from public code and filters out such suggestions. Options C and D are incorrect because they refer to the use of private repositories, which does not align with the public code handling aspect of GitHub Copilot's functionality.