Put the life of an inline suggestion in order, from typing to your code.
- Exam domain
- Understand GitHub Copilot data and architecture10–15% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Understand GitHub Copilot data and architecture: Understand lifecycle and limitations.
Objective in the exam guide: Visualize code suggestion lifecycle.
Knowing the lifecycle explains filtering and blocked suggestions. The exam checks the order.
Why A is the answer
Context is gathered, the prompt is built and sent through GitHub's service, the model responds, filters and public code checks run, the suggestion is shown, and you accept, edit or reject it
GitHub's application cards describe input processing, model response and post-processing with filters before the suggestion reaches you, and you decide what to do with it.
Remember: Suggestion lifecycle: context, prompt, model, post-processing, display, your decision.
How it works
Input processing combines code around the cursor with context such as open tabs into a prompt.
The model generates a suggestion, which passes through post-processing such as content filters and public code matching.
The suggestion is shown, and you accept, edit or reject it; nothing is committed automatically.
Clues in the question
The words that point to the answer, and what each one tells you.
- From typing to your code
- The full path.
In detail
- Content filters can block harmful or insecure output.
- Public code matching can block or annotate matches, depending on policy.
Side by side with look-alikes
| Ordering | Correct? |
|---|---|
| Context, prompt, model, filters, shown, your decision | Yes |
| Model searches drive and commits | No |
| Accept before generation | No |
| Auto-commit after filtering | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Context is gathered, the prompt is built and sent through GitHub's service, the model responds, filters and public code checks run, the suggestion is shown, and you accept, edit or reject itRight
Suggestion lifecycle: context, prompt, model, post-processing, display, your decision.
B. The model searches your hard drive, writes the file and commits itWrong
The model does not search your drive or commit code.
C. You accept the suggestion, then the model generates it, then filters runWrong
You cannot accept something before it is generated.
D. Filters run on your code first, then the model sees only the filtered result, and the suggestion is committed automaticallyWrongMost tempting
Suggestions are never committed automatically.
Why it tempts: It mentions filters and models, so it sounds technical. But nothing is committed automatically, and filters also run on the output.
In practice
- When a suggestion is missing, consider whether a filter or exclusion blocked it before assuming an outage.
Use case
An illustrative scenario, not a real incident.
A suggestion matching public code is blocked under the organization's policy before it ever appears.
See how it works
flowchart LR
T["You type"] --> C["Gather context"]
C --> P["Build prompt"]
P --> M["Model generates"]
M --> F["Filters and public code check"]
F --> S["Suggestion shown"]
S --> D{"Accept, edit or reject"}How to read this chart
- Read it in order: You type, then Gather context, then Build prompt, then Model generates, then Filters and public code check, then Suggestion shown, then Accept, edit or reject.