On the exam every option in this domain is a sensible practice; these traps decide most questions. Each trap page has a simulator and exam-style practice.
Context meter Who escalates Several customer matches Empty result or failure Large codebase Confidence and sampling Sources
Practice: 43 plain-style questions on D5, each with “Explain simply” and “Think it through”. New here? Start here.
This is the curriculum hub for Domain 5. Each subtopic below is a self-contained, architect-level page: concept → diagram → real API/code → trade-offs → exam traps → practice questions. Every number, error code, header, and field is verified against the Messages API and the official docs. Work top-to-bottom, or jump to any cluster.
1 · Tokens & Budgeting 2 · Prompt Caching 3 · Long Conversations 4 · Long Context 5 · Errors & Retries 6 · Degradation 7 · Cost & Latency 8 · Observability
end_turn, no flag, still wrong) — hallucination, logic errors, wrong tool args, and how
to make them loud with evals, a verifier & deterministic checks.examples/context_bloat_techniques.py
— every technique done without breaking integrity or reliability (README).Ready to test yourself? Head to the Domain 5 Mock Exam Bank.