Question 151
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 - An extraction service intermittently returns malformed JSON — missing braces and trailing commas — which breaks the downstream parser about 2% of the time. The team currently asks the model in the prompt to "return valid JSON only." What is the most reliable way to eliminate these syntax errors?
- AStrengthen the prompt wording and add "do not include markdown fences."
- BPost-process the text with a regex that repairs braces and commas.
- CUse `tool_use` with a JSON Schema so output is guaranteed syntactically valid and schema-conformant.
- DLower the temperature to 0 to avoid formatting mistakes.