CCAR-F Context and Reliability Practice Question
A regulated insurance workflow requires Claude to extract coverage limits from policy documents and return them as JSON. During testing, the model occasionally emits prose commentary before the JSON, breaking the downstream parser. The team cannot change the parser and must guarantee the response begins with a valid JSON object. Which technique most reliably enforces that?
⚠ Common exam trap
The trap here is treating 'respond only in JSON' as a guarantee, when instructions are probabilistic and only constraining the assistant turn deterministically fixes the first token.
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
✓
Prefill the assistant turn with an opening brace so Claude continues from that point.
Prefilling the assistant turn with an opening brace constrains generation so the response starts inside a JSON object, satisfying a parser that cannot tolerate leading prose. Instructions and retries are probabilistic, temperature changes add variance, and shortening inputs does not affect output formatting. For a hard formatting guarantee, the prefill is the reliable control.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Shorten the policy documents before extraction so the model has less text to summarize.
Why it's wrong here
Reducing input length may lower cost but does not control whether the model prefixes commentary. The failure is about output formatting, not input volume, so trimming documents leaves the root cause untouched. It also risks dropping coverage limits that the extraction must capture. The parser requirement is about the first characters of the response, which document length does not influence.
- ✗
Add the phrase 'respond only in JSON' to the end of the system prompt and retry on parse failure.
Why it's wrong here
Instruction alone is probabilistic; Claude may still prepend a sentence, especially on ambiguous documents. Retrying on failure adds latency and cost and does not guarantee the first byte is a brace. In a regulated workflow with a fixed parser, a best-effort instruction plus retries is insufficient because a single malformed response can break the pipeline. The team needs a deterministic constraint on the start of the output.
- ✓
Prefill the assistant turn with an opening brace so Claude continues from that point.
Why this is correct
Prefilling the assistant message with an opening brace forces the model to continue the response from that exact token, so the output cannot begin with prose. This gives a hard guarantee that the first character is part of a JSON object. Combined with a clear extraction instruction, it reliably satisfies the fixed parser without retries. Prefilling is the deterministic control the scenario demands.
- ✗
Raise the temperature to encourage the model to explore more structured output formats.
Why it's wrong here
Higher temperature increases variability, making stray prose more likely, not less. Structured output is a formatting constraint, not a creativity problem, so sampling diversity works against the requirement. The scenario needs the response to begin with a brace every time, and random sampling cannot provide that guarantee. Raising temperature directly worsens the reported failure.
About these practice questions
One of 271 original CCAR-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 →
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.