Question 152
CCA-F is a newly released exam. These practice questions reflect our best current understanding — the exact wording and question formats may change in the live exam until the certification matures. Use them to learn the concepts, not to memorize.
Scenario: Structured Data Extraction - After switching to `tool_use` with a strict JSON Schema, output is always valid JSON. Yet an invoice extraction reports `total: 150` while the line items sum to 145, and similar arithmetic mismatches slip through to accounting. Why does this happen and what addresses it?
- AThis is a semantic error; schemas guarantee structure, not correctness — add validation checks plus retry-with-feedback or self-correction.
- BThe schema is malformed; tightening the field types will fix the arithmetic.
- CThe model needs `tool_choice: "any"` to compute the total correctly.
- DRaising `max_tokens` will give the model room to finish the calculation.