CCARF Practice Question

Paper 3 · Question 52

D4 Prompt Engineering & Structured Output · Paper 3

[Scenario 6: Structured Data Extraction] You are building a structured data extraction system: pulling information from unstructured documents, validating output against JSON schemas, handling edge cases gracefully, and integrating with downstream systems. You have several extraction tools — one per document type — and incoming documents of unknown type. The model must always produce a structured extraction, choosing the appropriate schema itself, and never reply with conversational text. Which tool_choice setting is correct?

Show answer & explanations

Correct answer: A

Related Prompt Engineering & Structured Output questions

Paper 3 Q45[Scenario 5: Claude Code for Continuous Integration] You are integrating Claude Code into a CI/CD pipeline for automated code review, test g…Paper 3 Q46[Scenario 5: Claude Code for Continuous Integration] You are integrating Claude Code into a CI/CD pipeline for automated code review, test g…Paper 3 Q47[Scenario 5: Claude Code for Continuous Integration] You are integrating Claude Code into a CI/CD pipeline for automated code review, test g…Paper 3 Q48[Scenario 5: Claude Code for Continuous Integration] You are integrating Claude Code into a CI/CD pipeline for automated code review, test g…Paper 3 Q49[Scenario 5: Claude Code for Continuous Integration] You are integrating Claude Code into a CI/CD pipeline for automated code review, test g…

More: Paper 3 · All practice questions