Courseiva

CCAO-F Prompting and Context Engineering Practice Question

You are building a customer support bot using Claude. Users frequently provide long, rambling narratives that dilute the core request. Which prompting strategy best ensures the model stays focused on the actionable request?

⚠ Common exam trap

Candidates often pass raw, unformatted user narratives directly into the prompt without delimiters, causing the model to get distracted by conversational noise and irrelevant details.

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

✓

Wrap the user input in XML tags and instruct the model to analyze the content within those tags for actionable steps.

Using a XML tag wrapper like <user_input> for the narrative helps Claude delineate between structural instructions and variable content. By framing the prompt to instruct Claude to first summarize the narrative and then extract the specific support request, you minimize task drift. This technique is critical because it forces the model to process information sequentially, reducing the cognitive load and preventing the model from becoming distracted by irrelevant conversational noise.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Add a System Prompt instruction to ignore all text longer than 200 words.

    Why it's wrong here

    Claude does not have a hard word-count filter mechanism through system instructions alone. Truncating input arbitrarily might strip away critical context needed for accurate resolution. This approach lacks the nuance required to handle complex support queries that naturally require more detail to resolve effectively and accurately.

  • ✗

    Provide several few-shot examples where the model outputs 'I cannot understand' for long inputs.

    Why it's wrong here

    Few-shot prompting for refusal is counterproductive for a support bot. The goal is to extract information, not to reject user input. Using examples to train the model to refuse assistance will degrade the user experience and reduce the overall utility of the support automation system.

  • ✓

    Wrap the user input in XML tags and instruct the model to analyze the content within those tags for actionable steps.

    Why this is correct

    XML tags provide clear delimiters that Claude can distinguish from the rest of the prompt structure. Instructing the model to specifically parse the content within those tags ensures that the logic remains focused on the user's data while keeping the instructions separate, improving accuracy and reliability.

  • ✗

    Increase the temperature to 1.0 to encourage the model to be more creative in identifying requests.

    Why it's wrong here

    Higher temperature settings increase randomness, which is the opposite of what is needed for a reliable support bot. For extraction tasks, a lower temperature is preferred to ensure consistency and prevent the model from hallucinating or misinterpreting the user's intent during the extraction process.

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.