Understand GitHub Copilot data and architecture
Drill 20 practice questions focused entirely on Understand GitHub Copilot data and architecture for the GitHub GH-300 exam. Tap an answer for instant feedback and a full explanation — no sign-up, always free.
A developer at a company using GitHub Copilot Business asks Copilot Chat a question in the IDE: 'Why is this function throwing a null reference?' while a file is open in the editor. The developer wants to understand what data actually leaves their machine to answer this. Which description best reflects how Copilot builds and transmits the prompt for this chat request?
A developer notices that GitHub Copilot's inline completions in a very large file become slower and sometimes less relevant when they have dozens of unrelated tabs open. A teammate suggests that closing irrelevant tabs and keeping the cursor near related code helps. From an architecture standpoint, what best explains why the amount of context gathered on the client before a request is sent is deliberately bounded rather than including everything available?
A backend team upgrades to a major new version of a popular web framework that was released two weeks ago. As they write new endpoints, GitHub Copilot repeatedly suggests method signatures and configuration patterns from the previous major version, even though the code compiles against the new one. What is the most accurate explanation of why this happens?
A developer at a fintech company notices that when they ask GitHub Copilot's code completion to generate a function similar to one they wrote in a file they edited an hour ago (now closed), Copilot does not seem to 'remember' that earlier code and produces a structurally different result. They ask you why Copilot cannot recall their previous work session. Which explanation best describes this limitation of how Copilot completions work?
A developer on a GitHub Copilot Business plan is writing a new function in `payment_service.py`. They have several other files open in tabs, including a utility module they just edited. They notice that suggestions sometimes incorporate patterns from those other open files, not just the current file. When they ask you to explain the ordering of data that Copilot uses to build the prompt for a completion, which statement most accurately describes how the context is assembled and prioritized before it is sent to the model?
A developer notices that when they add a helper function at the very top of a large file, GitHub Copilot's inline completions further down the file don't seem to consistently use it, even though the function is clearly visible in the same file. They ask you why Copilot doesn't always incorporate every piece of code in the open file into its suggestions. Which explanation best describes how Copilot's prompt-building process handles this situation?
A developer working in a large monorepo asks why GitHub Copilot sometimes suggests a function signature that doesn't match a utility defined in a completely separate module that is not currently open in the editor. As the Copilot administrator explaining how completion prompts are built, which statement best describes the underlying cause?
A developer on your team is frustrated that GitHub Copilot's inline code completions sometimes suggest calls to functions that don't exist anywhere in their large monorepo, even though a correctly named helper function is defined in a file three directories away. They ask you why Copilot can't just reference every function in the entire repository when generating a suggestion. Which explanation best describes the underlying limitation of how Copilot builds its prompt for code completion?
A company is evaluating whether to purchase Copilot Business seats or let developers keep their Individual subscriptions. The security team's main concern is what happens to the code snippets sent as prompts for inline completions. Which statement accurately describes how prompt data is retained for Copilot Business compared to Copilot Individual?
A developer at a startup creates a brand-new, completely empty Python file and immediately begins typing the first line of code. They notice that Copilot's initial suggestions are generic and less tailored than what they normally receive when editing files in the middle of an established project. From an architecture and data-flow perspective, what best explains this difference in suggestion quality?
A developer is editing a partially written function in the IDE. Their cursor sits in the middle of the function body, with meaningful code both above and below the cursor. They notice that Copilot's inline suggestions seem to account for the lines that come after the cursor, not just the lines before it. When the Copilot client assembles the prompt for this completion request, how does it incorporate the code surrounding the cursor?
A security engineer at a fintech company is documenting how source code from developers' IDEs reaches the GitHub Copilot model when an inline completion is triggered. They need to confirm how the prompt data is protected while it moves between the editor and the Copilot backend. Which statement accurately describes the handling of this input data in transit?
A backend engineer notices that GitHub Copilot completions feel slower when working inside a very large monolithic file compared to smaller files. A teammate suggests this is because Copilot is 'sending the whole repository to be analyzed on every keystroke.' Which explanation most accurately describes what actually happens in the code-suggestion lifecycle?
A team lead notices that when two developers type the exact same function signature and comment in identical files, GitHub Copilot sometimes offers different code completions to each of them. One developer insists this is a bug that should be reported, arguing that identical inputs must always produce identical outputs. How should you best explain this behavior when educating the team about Copilot's underlying architecture and limitations?
A developer on the GitHub Copilot Free/Individual plan asks how their code prompts are treated by the service during a completion request. Assuming they have NOT changed any privacy settings, which statement most accurately describes how the prompt data is handled once the suggestion is returned?
A developer at a company using GitHub Copilot Business is concerned that the private code snippets pulled from their open files to build completion prompts will be used to train the underlying model, potentially exposing proprietary logic to other customers. What is the accurate explanation of how prompt input is handled for Copilot Business?
A privacy officer at a company using GitHub Copilot Business asks you to clarify what happens to the prompt data (surrounding code and context) that is sent to the model when a developer receives an inline code completion. Under the standard Copilot Business data handling model, how is this prompt data treated after a suggestion is generated?
A developer at a fintech company types code in their IDE and receives a Copilot ghost-text completion. Their security lead asks you to explain, in order, what happens to the request from the moment the developer pauses typing until the suggestion is displayed. Which sequence correctly describes the GitHub Copilot code-suggestion lifecycle?
A compliance officer at a company using GitHub Copilot Business asks you to explain what happens to the source code snippets sent as prompt context when a developer receives an inline completion. She specifically wants to know how the code is handled server-side after a suggestion is generated. Which statement most accurately describes the data flow for a Copilot Business subscription?
A developer on a GitHub Copilot Business plan is working in VS Code. As they type, Copilot shows an inline ghost-text completion, but the developer keeps typing and never presses Tab to accept it. Their organization has data retention concerns and asks how this rejected suggestion is handled by Copilot's architecture. What is the correct description of what happens to that unaccepted inline suggestion?
More GH-300 practice
Keep going with the other GitHub Copilot domains, or take a full timed mock exam.
← Back to GH-300 overview