GitHub Copilot Certification — Question 41
What is the main purpose of the duplication detection filter in GitHub Copilot?
Answer options
- A. To encourage the user to follow coding best practices preventing code duplication.
- B. To compare user-generated code against a private repository for potential matches.
- C. To allow administrators to control which suggestions are visible to developers based on custom criteria.
- D. To detect and block suggestions that match public code snippets on GitHub if they contain about 150 characters.
Correct answer: D
Explanation
The correct answer, D, is accurate because the duplication detection filter specifically aims to recognize and block suggestions that correspond to public code snippets on GitHub, particularly those that are approximately 150 characters in length. Options A, B, and C do not accurately describe the main role of the filter, as they focus on promoting best practices, comparing with private repositories, and controlling suggestion visibility, respectively.