Flashcardsfor IT Certifications

Structured Output with Tool Use & JSON Schemas

Claude Certified Architect – Foundations (CCAR-F) exam practice questions · 10 flashcards

Question
Most reliable way to get schema-compliant output?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 Structured Output with Tool Use & JSON Schemas practice questions and answers
  1. Most reliable way to get schema-compliant output?
    Tool use with a JSON schema (structured output).
  2. Does tool-based structured output eliminate all errors?
    It eliminates JSON syntax errors, but not semantic errors (e.g. totals that don't add up).
  3. Unknown document type, several schemas. Which tool_choice?
    any, so a tool must be called.
  4. Must extract metadata first. Which tool_choice?
    Force the specific extraction tool.
  5. Why make fields nullable/optional?
    Prevents Claude fabricating values when the source lacks the information.
  6. How do you handle values outside fixed categories?
    Add an enum value like 'other' plus a detail string field.
  7. Why add an 'unclear' enum value?
    Lets Claude signal ambiguity instead of guessing.
  8. How do you handle inconsistent formats in source data?
    Include format normalization rules in the prompt alongside the schema.
  9. Required vs optional fields?
    Required only when always present in sources; otherwise optional.
  10. What are schema syntax errors vs semantic errors?
    Syntax: invalid JSON/structure. Semantic: valid structure but wrong or inconsistent values.