Question 102
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 - You need consistent extraction of informal measurements like "two handfuls of rice" and "a pinch of salt" into a normalized structure. A purely descriptive instruction produces inconsistent results. Which technique works best here?
- AFew-shot examples that map several informal phrases to the exact desired output structure.
- BA longer prose description of how to handle informal units.
- CForcing `tool_choice: "any"` to guarantee JSON.
- DRaising temperature so the model is more creative with conversions.