Github Copilot · Free Practice Question Easy
Question 36
You are working in a private repository, and you use GitHub Copilot to assist in writing code. You're concerned about how Copilot handles the data within the repository. You want to ensure that none of your proprietary code is shared externally. How does GitHub Copilot handle data from private repositories?
-
A
Copilot reads all private repository code and uses it to train its public models.
-
B
Copilot processes code locally on your machine, and no data from the repository is sent to the cloud.
-
C
Copilot does not access or use the code from private repositories to train models or suggest it to others.
-
D
Copilot can suggest code from your private repository to other users working on similar projects.
Reveal correct answer
Correct answer: C
A.
This statement is false. GitHub Copilot does not use code from private repositories to train its models. It is trained on public codebases, and any data from private repositories is not used for training or improving the model's suggestions.
B.
GitHub Copilot processes code through cloud-based models, not locally on your machine. Copilot relies on cloud services for its AI functionality, though GitHub takes steps to ensure private repository data is not misused. There may be confusion with how local IDE plugins work, but Copilot itself is cloud-based.
C.
This is the correct answer. GitHub Copilot is designed to respect the privacy of private repositories. It does not use the code from private repositories to train its models or suggest that code to other users. Copilot only uses publicly available repositories for model training and suggestions.
D.
Copilot does not share your private repository's code with other users. The model provides suggestions based on its training on publicly available data but does not suggest your private code to others. There is a misconception that AI models like Copilot "share" code between users, which is not true.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
