Github Copilot · Free Practice Question Medium
Question 26
GitHub Copilot uses machine learning to provide code suggestions based on context within a code editor. Which of the following best describes how Copilot generates these suggestions while handling user data?
-
A
It runs a local model on the user's device, generating suggestions by processing the codebase within the local file system only.
-
B
It sends portions of user code to a cloud-based model where the code is processed, and suggestions are returned. GitHub Copilot does not store this code data long-term.
-
C
It stores all user code and interactions indefinitely in the cloud, making it accessible to improve its machine learning model and generate future suggestions.
-
D
It uses a static model that generates suggestions solely based on hardcoded rules without any internet connectivity or data exchange with GitHub's servers.
Reveal correct answer
Correct answer: B
A.
It is incorrect because Copilot’s model is not locally run; it utilizes a cloud-based OpenAI Codex model, meaning data must be transmitted to GitHub's servers for processing and suggestion generation.
B.
GitHub Copilot sends snippets of code to a cloud-based model, processes the data, and provides real-time code suggestions. It does not retain these snippets in a way that would allow direct reuse or access later.
C.
It is incorrect because GitHub Copilot follows strict data retention policies. User code is not stored indefinitely; only snippets may be temporarily stored for immediate processing, following data privacy and security protocols.
D.
It is incorrect because GitHub Copilot relies on a dynamic machine learning model hosted on the cloud, which generates real-time suggestions. It doesn’t use hardcoded rules or a purely local setup.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
