Domain 2 of 6

Context Engineering and RAG

Budget the context window, select and compress information, ground answers in evidence and measure a retrieval pipeline.

7
Concepts
~18%
Of the exam
16
Practice questions
Concepts in this domain
01Context Engineering vs Prompt Engineering: A Practical GuideLearn what context engineering means, how it differs from prompt engineering and how to assemble instructions, retrieval, memory and tools for an LLM.02LLM Context Windows: Token Limits and BudgetingUnderstand LLM context window limits and build a token budget for instructions, retrieved documents, history, tool results and generated output.03Context Engineering Strategies: Write, Select, Compress, IsolateFour context management strategies for LLM applications, which are external storage, relevant selection, careful compression and isolated task contexts.04LLM Context Rot: Long-Context Failures and FixesUnderstand context rot, lost in the middle effects, conflicting evidence and polluted agent memory, with practical tests for long context reliability.05LLM Grounding Explained: Sources, Citations and HallucinationsLearn how LLM grounding connects answers to evidence, how it differs from RAG and how to check citations, source quality and unsupported claims.06What Is RAG? Retrieval-Augmented Generation ExplainedLearn how RAG works, from chunking and embeddings to hybrid search, reranking and evaluation, with clear distinctions between recall and hit rate.07Build and Evaluate a RAG Retrieval Pipeline in PythonBuild a small retrieval pipeline, filter stale and private documents, measure recall and precision, and optionally generate an answer with checked citations.
Try a question from this domain

A request contains 180 instruction tokens and 1,082 tokens of tools, sources and history. What does that breakdown establish?

  • AMost input tokens come from context beyond the instruction; traces are needed to locate errors.
  • BInstruction wording cannot be responsible for any failure.
  • CThe largest context component is necessarily the least useful.
  • DRewriting the shortest component will always have the smallest effect.
16 questions on this domain.

One per page, with a worked explanation.

Start the set