Courseiva

CCAO-F Prompting and Context Engineering Practice Question

A legal firm is using Claude to summarize multi-hundred page litigation documents. The model occasionally ignores specific clauses or mixes up dates between different case files provided in the same prompt. Which context engineering technique would most effectively improve the model's extraction accuracy and structural understanding of these inputs?

⚠ Common exam trap

Candidates often assume that providing more context is enough. They fail to realize that without explicit XML delimiters, the model struggles to distinguish between instructions and data.

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 separate documents and instructions within distinct XML tags like <document> and <instructions>.

Claude performs significantly better when instructions are clearly separated from data using XML tags. This technique helps the model parse complex inputs without confusing the task description with the content being processed. In professional context engineering, structured prompts reduce ambiguity and improve reliability, especially when handling long-form text or multi-step reasoning tasks that require high precision.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Applying Chain-of-Thought reasoning by asking the model to think step-by-step before summarizing.

    Why it's wrong here

    Chain-of-Thought is excellent for logical reasoning but does not solve the fundamental problem of data segmentation in large contexts. Without proper structural markers, the model may still fail to correctly identify the boundaries of specific clauses or separate the different documents before it even begins the reasoning process.

  • ✓

    Wrapping separate documents and instructions within distinct XML tags like <document> and <instructions>.

    Why this is correct

    XML tags provide a clear structural boundary that Claude is specifically trained to recognize. By wrapping content in tags like <document> or <instructions>, you prevent the model from merging different parts of the prompt, ensuring it treats the data as an object to be processed rather than a command.

  • ✗

    Increasing the frequency of few-shot examples to demonstrate the desired summary format repeatedly.

    Why it's wrong here

    While few-shot examples help with formatting, they do not address the issue of document confusion within a large context window. Adding more examples also consumes tokens and may distract the model from the actual source material if the structural organization of the primary input remains messy or unstructured.

  • ✗

    Moving the most important instructions to the very beginning of the prompt to ensure maximum attention.

    Why it's wrong here

    Claude generally pays attention throughout the context, but placing instructions at the end often yields better performance for long documents. Simply moving text to the top does not provide the structural hierarchy needed to differentiate between multiple documents or complex data points within a high-density litigation file.

About these practice questions

One of 259 original CCAO-F practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.