Question 104
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: Prompt Engineering and Structured Output - After switching to `tool_use` with a strict JSON Schema, output is always valid JSON, yet an invoice extraction still reports `total: 150` when the line items sum to 145. Why does this happen and what addresses it?
- AThis is a semantic error; JSON Schema guarantees structure, not correctness—add validation checks and retry-with-feedback or self-correction.
- BThe schema is malformed; tightening the schema types will fix the arithmetic.
- CThe model needs `tool_choice: "any"` to compute the total correctly.
- DRaising `max_tokens` will let the model finish the calculation.