Courseiva
Context and Reliability →mediumMultiple Choice

CCAR-F Context and Reliability Practice Question

An enterprise financial application uses Claude to parse unstructured invoice PDFs into structured JSON data. Occasionally, minor transcription errors alter numeric totals, posing significant compliance and auditing risks. Which context-engineering technique provides the most reliable mitigation for these transactional discrepancies?

⚠ Common exam trap

Candidates often rely on verbose, descriptive instructions to guide extraction, failing to realize that few-shot examples are significantly more effective at enforcing consistent formatting and numeric accuracy.

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

✓

Incorporate diverse, verified few-shot examples demonstrating accurate parsing of complex invoices directly into the prompt context.

Injecting explicit few-shot examples pairing raw invoice fragments with verified JSON outputs drastically improves adherence to exact formatting and numeric preservation constraints. Providing concrete input-output pairings establishes a clear behavioral template, helping Claude maintain high contextual reliability during complex data extraction tasks where precision is paramount.

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 temperature parameter to 1.0 to encourage diverse exploration of potential numeric values in the document.

    Why it's wrong here

    Elevating the temperature parameter introduces stochastic variance into token selection, which increases the probability of hallucination or random transposition in critical financial figures. Maintaining lower temperature settings ensures deterministic and mathematically faithful extractions from source documents.

  • ✓

    Incorporate diverse, verified few-shot examples demonstrating accurate parsing of complex invoices directly into the prompt context.

    Why this is correct

    Few-shot examples anchor the model behavior by showing exact expected patterns for tricky edge cases like tax calculations and discount applications. This grounds the generations in concrete demonstrations, significantly reducing numeric drift and improving structural reliability across batch processing.

  • ✗

    Rely entirely on system prompts enforcing brevity to prevent the model from generating unnecessary conversational filler text.

    Why it's wrong here

    While system prompts establish baseline persona and formatting boundaries, they lack the specific contextual demonstrations needed to resolve ambiguous line-item layouts or multi-column financial tables reliably. System instructions alone fail to correct persistent arithmetic hallucination patterns.

  • ✗

    Reduce the maximum token limit to aggressively truncate any errant tokens generated during the JSON serialization process.

    Why it's wrong here

    Truncating the maximum tokens abruptly cuts off generation mid-stream, resulting in malformed, invalid JSON payloads that fail programmatic parsing. This approach treats symptoms of generation failure rather than improving underlying model reliability or semantic accuracy.

About these practice questions

Courseiva writes every CCAR-F question from scratch — 271 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 →

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.