Courseiva
Using the Claude API →mediumMultiple Choice

CCAO-F Using the Claude API Practice Question

A developer is adding a retrieval step so Claude can answer questions over a 200-page internal policy manual. The full manual exceeds the context window, so the application must select relevant sections to include in each Messages API request. Which strategy best keeps answers accurate while staying within the context limit?

⚠ Common exam trap

Candidates often confuse max_tokens with input capacity, when max_tokens only limits generated output and never enlarges the model's context window.

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

✓

Embed the manual into chunks, retrieve the top-matching chunks for each question, and include only those excerpts in the request.

When source material exceeds the context window, retrieval-augmented generation is the appropriate pattern: split the document into retrievable chunks, select the passages most similar to the incoming question, and place only those excerpts in the request. This bounds token usage while keeping the answer grounded in the passages most likely to contain the relevant policy.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Embed the manual into chunks, retrieve the top-matching chunks for each question, and include only those excerpts in the request.

    Why this is correct

    Chunking plus similarity retrieval places the passages most likely to contain the answer into the context window while keeping total tokens bounded, which is the standard retrieval-augmented pattern for documents larger than the context limit. It scales to manuals of any size because only the retrieved excerpts are sent. Accuracy depends on chunk sizing and retrieval quality, but this directly addresses both the size constraint and the grounding requirement.

  • ✗

    Truncate the manual to the first N tokens that fit and always send that same prefix with every question.

    Why it's wrong here

    A fixed prefix ignores where the relevant policy actually lives, so questions about later chapters receive no grounding and Claude will answer from parametric knowledge or refuse. Truncation is cheap but degrades accuracy in exactly the cases that matter most for a large manual. It also wastes context on early sections that may be irrelevant to the current question, crowding out genuinely useful text.

  • ✗

    Increase the max_tokens parameter on each request so the model can internally hold more of the manual.

    Why it's wrong here

    max_tokens caps how many tokens the model may generate in its reply; it has no effect on how much input the model can attend to. Raising it lengthens possible answers but does nothing about the oversized document, so the request would still fail or omit content. Input capacity is governed by the model's context window, not by the output token ceiling, making this setting irrelevant to the problem.

  • ✗

    Summarize the entire manual once with Claude, cache the summary, and send the summary with every question instead of the source text.

    Why it's wrong here

    A whole-manual summary necessarily discards specifics such as exact clause numbers, thresholds, and exceptions, which are precisely what policy questions ask about. Answers generated from a lossy summary can sound authoritative while being subtly wrong, and there is no way to trace a statement back to the source. Summarization compresses size but sacrifices the fidelity that grounded question answering requires.

About these practice questions

This CCAO-F question is part of Courseiva's 259-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.