Courseiva
Context and Reliability →mediumMultiple Choice

CCAR-F Context and Reliability Practice Question

An enterprise application uses Claude to summarize complex legal documents. The system occasionally hallucinates specific clause numbers when the context window contains multiple similar contracts. Which strategy most effectively improves factual reliability for specific data extraction?

⚠ Common exam trap

Candidates often try to feed entire documents into the context window, assuming the model can handle it, which leads to 'lost in the middle' issues and increased hallucination risk.

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

✓

Use a retrieval-augmented generation (RAG) architecture to inject only relevant text segments into the context window.

Grounding the model with high-precision retrieval augmented generation (RAG) is the gold standard for reducing hallucinations in document processing. By forcing the model to operate strictly within the provided retrieved context, the probability of hallucinating external data decreases significantly. This approach is essential for architectural reliability, as it bounds the model's creative potential, ensuring that legal summaries remain tethered to the provided document artifacts rather than probabilistic memory.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Increase the system prompt's temperature setting to 1.0 to ensure more creative clause identification.

    Why it's wrong here

    Increasing temperature broadens the search space for token selection, which directly increases the likelihood of hallucination in factual extraction tasks. High temperature is suitable for creative writing but counterproductive for legal document analysis where precision and deterministic output are required to maintain business-level reliability and consistency.

  • ✗

    Implement a few-shot prompting strategy using examples of common legal clause structures.

    Why it's wrong here

    While few-shot prompting improves structural adherence, it does not guarantee factual grounding in the specific context provided. Without a retrieval mechanism to limit the model's scope to the current document, the model might still conflate information from the examples with the actual document content being processed.

  • ✓

    Use a retrieval-augmented generation (RAG) architecture to inject only relevant text segments into the context window.

    Why this is correct

    RAG reduces hallucination by grounding the model's generation in verified, retrieved source material. By narrowing the scope of available data to specific relevant segments, the model is less likely to synthesize incorrect information. This architecture is vital for maintaining truthfulness and auditability in high-stakes legal document summarization workflows.

  • ✗

    Enable verbose chain-of-thought prompting to force the model to explain its reasoning process.

    Why it's wrong here

    Chain-of-thought encourages the model to document its internal logic, which is helpful for complex reasoning. However, it does not prevent the model from using incorrect internal knowledge to support that reasoning. If the premise or context is not strictly controlled via RAG, the model can logically justify a hallucination.

About these practice questions

This CCAR-F question is part of Courseiva's 271-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 CCAR-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 CCAR-F exam.