Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Claude Certified Developer - Foundations · Anthropic
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
- The supplied question selects D . If a downstream component requires an exact machine-readable structure, the expected structure must be communicated explicitly rather than left to Claude's discretion. The prompt should define required fields, types, nesting, permissible values where relevant, and instruct Claude not to emit surrounding prose. Anthropic's consistency guidance states that developers should precisely specify the desired output format when format consistency matters. More importantly, current Claude APIs provide Structured Outputs for cases requiring guaranteed JSON Schema conformance; Anthropic explicitly recommends Structured Outputs instead of prompt-only techniques when valid schema-compliant JSON is mandatory. Therefore, D is the strongest prompt choice among the listed alternatives. In a contemporary production implementation, the design can be strengthened further by supplying the schema through Claude's structured- output configuration and performing downstream semantic validation where business rules exceed JSON Schema. A permits arbitrary formatting. B intentionally creates inconsistent representations. C assumes post- processing can reliably reconstruct missing or ambiguously formatted information, which is significantly less robust than specifying the contract up front. Relevant Claude Developer topics: system prompts, JSON formatting, structured outputs, schema constraints, output contracts, validation, and downstream integration reliability .