Claude Certified Architect – Foundations Practice Question 76: Citations Grounded Answers
Claude Certified Architect, Foundations · Test 8 · question 6 of 10
A contract-review assistant answers questions about PDFs supplied in the request. Reviewers must be able to click each claim and jump to the exact supporting passage, and the team wants those pointers to be guaranteed valid references into the supplied documents without paying output tokens to repeat long quotations. Which approach fits best?
Show answer and explanation
Answer:
Setting citations: {enabled: true} on document blocks makes the API return citations (such as page_location for PDFs) that point into the supplied documents. Because the API parses the citations and extracts cited_text itself, the pointers are guaranteed valid, and cited_text does not count toward output tokens. Anthropic's evaluations also found the feature more likely to cite the most relevant quotes than purely prompt-based approaches.
- A is wrong: prompt-based quoting spends output tokens on the quotes, and nothing guarantees a quote is verbatim or locatable. - B is wrong: citations and structured outputs are incompatible; enabling both on user documents returns a 400 error, and a quote field would still be model-generated text. - C is wrong: models are unreliable at counting character offsets, so the pointers could be wrong with no validity guarantee.
Reference: Citations