Github Copilot · Free Practice Question Medium
Question 13
Taylor, a software engineer at a startup, uses GitHub Copilot to help accelerate development. However, Taylor’s manager raises concerns about whether Copilot-generated code might violate licensing terms or include copyrighted material. Which statement best describes GitHub Copilot's limitations regarding legal and ethical compliance?
-
A
GitHub Copilot includes a built-in mechanism to detect and block copyrighted code from being generated.
-
B
GitHub Copilot may generate code snippets that resemble publicly available code, so developers must verify licensing compliance before using it in commercial projects.
-
C
Using GitHub Copilot eliminates the need to check for compliance with company-specific coding policies and industry regulations.
-
D
Since Copilot is trained on open-source repositories, all generated code is automatically open-source and free for commercial use.
Reveal correct answer
Correct answer: B
A.
While GitHub has implemented measures to reduce verbatim copying, Copilot does not guarantee that generated code is free from copyright concerns. Some code may still be similar to existing codebases.
B.
Copilot can generate code that is similar to existing public code, but it does not track or enforce license compliance. Developers must verify that the generated code adheres to applicable licenses.
C.
Developers must still ensure that generated code meets internal policies, security standards, and industry regulations, as Copilot does not enforce compliance checks.
D.
Copilot does not enforce open-source licenses. Some generated code may be derived from sources with restrictive licenses, which could lead to legal issues if used improperly.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
