Answers about long contracts often ignore the final sections, and logs show prompts near the model's context limit. What is the likely cause, and the fix?
- Exam domain
- Testing, Validation, and Troubleshooting11% of the exam
- Difficulty
- Medium
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Task 5.2: Troubleshoot GenAI applications.
Objective in the exam guide: Skill 5.2.1: Resolve content handling issues to ensure that necessary information is processed completely (for example, by using context window overflow diagnostics, dynamic chunking strategies, prompt design optimization, truncation-related error analysis).
Truncation is a silent failure: the model answers confidently from part of the input. Recognizing the symptoms saves long investigations.
Why C is the answer
Context window overflow is truncating input; reduce what is sent, for example by retrieving fewer, better chunks or summarizing earlier parts
When input exceeds the context window it is cut, so later content never reaches the model.
Remember: Missing late content near the context limit: the input is being truncated.
How it works
A model can only read a fixed amount of input, its context window.
When the prompt exceeds it, content is rejected or cut, often the end, so later sections never reach the model.
The fix is to send less but better content: smaller, more relevant chunks, summaries of earlier parts, or a tighter prompt.
Clues in the question
The words that point to the answer, and what each one tells you.
- Ignore the final sections
- The end of the input is missing.
- Near the model's context limit
- Overflow and truncation.
In detail
- Truncation-related errors and quietly missing content both point to context limits.
- Dynamic chunking and prompt design keep the important content inside the window.
Side by side with look-alikes
| Diagnosis | Fits the symptoms? |
|---|---|
| Context overflow and truncation | Yes |
| Temperature too high | No |
| Not enough instances | No |
| Wrong language | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The model is too slow; add instancesWrongMost tempting
More instances do not enlarge the context window.
Why it tempts: Long documents are slow, so capacity sounds relevant. But instances do not change how much text one request can hold.
B. The contract is in the wrong language; translate itWrong
Nothing points to a language problem.
C. Context window overflow is truncating input; reduce what is sent, for example by retrieving fewer, better chunks or summarizing earlier partsRight
Missing late content near the context limit: the input is being truncated.
D. The model is too creative; raise the temperatureWrong
Temperature does not change what fits in the window.
In practice
- Log input token counts and alert when prompts approach the limit.
- Prefer retrieving relevant parts over sending whole documents.
Use case
An illustrative scenario, not a real incident.
A team retrieves the five most relevant clauses instead of whole contracts, and answers start covering the final sections.
See how it works
flowchart LR
P["Prompt: instructions plus whole contract"] --> W{"Fits in the context window?"}
W -->|"Yes"| M["Model reads everything"]
W -->|"No"| T["End is cut off: final sections lost"]
T --> F["Fix: send relevant chunks only"]How to read this chart
- "Prompt: instructions plus whole contract" leads to "Fits in the context window?".
- At "Fits in the context window?": if "Yes", go to "Model reads everything"; if "No", go to "End is cut off: final sections lost".
- "End is cut off: final sections lost" leads to "Fix: send relevant chunks only".