Question 370
A developer asks Claude to produce a strict JSON Schema response with interleaved native citation blocks in the same output mode. What design adjustment is needed?
Explanation
Correct Answer
The current strict JSON output path cannot interleave platform-native citation blocks as free-standing text. Use a separate narrative response for native citations, or provide clearly labeled source identifiers and links inside supported JSON fields when the consumer needs machine-readable provenance. Keep evidence retrieval and citation verification distinct from mere schema compliance. This preserves source traceability without claiming the constrained decoder supports a mixed formatting mode that it does not. Verify which referenced files were truly retrieved before populating structured source fields.
Incorrect Answers
Making the schema larger cannot force native citation blocks to interleave with strict JSON when the platform declares those features incompatible. The generated value must obey one supported output framing contract. A more complex schema may create additional compilation cost or even exceed complexity limits, without making unsupported citation content legal. Separate citation-bearing narrative from structured JSON or put ordinary source-reference strings into explicitly documented fields as the integration requires.
A native citation block is structured platform content, not an arbitrary JSON string that can always be embedded in a schema-constrained response. Treating it as interchangeable with text can break the output contract or produce an API error. If source references belong in the JSON, define ordinary fields for supported URLs or identifiers and validate their provenance separately. The integration should follow documented feature compatibility rather than assume all content blocks are nestable.
Removing every provenance requirement would avoid the incompatibility only by destroying the user's ability to trace factual claims. JSON formatting and source validation address different needs; both can be retained with a compatible design. Produce a separate citation-bearing narrative or a machine-readable source-reference field populated from observed evidence. Do not infer that a syntactically valid JSON summary is independently sourced simply because its schema passed.



Claude Certified Architect - Foundations (CCA-F) Practice Tests