CCAO-F Prompting and Context Engineering Practice Question
A developer is optimizing a RAG (Retrieval-Augmented Generation) pipeline using Claude 3.5 Sonnet. Which TWO techniques will most significantly improve the model's ability to extract accurate information from a 50,000-token context window?
⚠ Common exam trap
Candidates often rely purely on raw, unstructured context text, forgetting that LLMs require explicit structural markers and deliberate reasoning steps in dense environments.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Wrapping each retrieved document in distinct XML tags.
Handling large contexts requires structural clarity and logical transparency. XML tags help the model distinguish between different documents, while Chain of Thought (CoT) prompting forces the model to deliberate on the retrieved information before formulating a final answer. Together, these techniques reduce hallucinations and improve the precision of information extraction in dense context environments.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Wrapping each retrieved document in distinct XML tags.
Why this is correct
XML tags provide a clear hierarchy and boundaries for the model to follow. By encapsulating each document separately, the model can easily reference specific parts of the context, which is critical for maintaining high retrieval accuracy and avoiding the mixing of information from different source documents.
- ✗
Setting top_k to a value of 1 to minimize output variety.
Why it's wrong here
While setting top_k to 1 makes the output deterministic, it does not improve the model's internal ability to extract or understand context. In fact, overly restrictive sampling can sometimes prevent the model from articulating complex reasoning steps necessary to correctly synthesize information from a large dataset.
- ✓
Asking the model to think step-by-step before providing the answer.
Why this is correct
Requesting a step-by-step reasoning process encourages the model to verify facts against the context before committing to an answer. This 'Chain of Thought' approach is proven to increase performance on complex extraction tasks where the answer might be buried deep within a massive volume of text.
- ✗
Converting all text to uppercase to improve character recognition.
Why it's wrong here
Converting text to uppercase actually removes important semantic information and casing cues that help the model understand language. It does nothing to improve performance and may actually degrade the model's ability to process the text naturally, as it deviates from the standard training data format.
- ✗
Reducing the temperature to exactly 0.5 for balanced reasoning.
Why it's wrong here
A temperature of 0.5 is a general-purpose setting and does not specifically optimize for context extraction. For high-precision extraction tasks, a lower temperature closer to 0 is generally preferred, but temperature adjustment alone is far less impactful than structural changes like XML tagging or CoT.
About these practice questions
Courseiva writes every CCAO-F question from scratch — 259 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Anthropic exam blueprint
This CCAO-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCAO-F exam.