Question 240
A production diagnostic for a healthcare document service starts from: A request frequently ends with max_tokens while the parser treats incomplete JSON as authoritative. Which FIRST check would BEST distinguish the relevant failure or configuration problem?
Explanation
Correct Answer
Inspect stop_reason and output validation failures. This isolates the initial issue, a request frequently ends with max_tokens while the parser treats incomplete JSON as authoritative. It guides the corrective approach: detect max-token truncation and retry with a sufficient response budget or shorter task.
Incorrect Answers
That diagnostic helps when an app sends valid text but requests a model alias unavailable on its chosen third-party provider. It is not the best first discriminator for this task; check instead: inspect stop_reason and output validation failures.
That diagnostic helps when a developer enables extended thinking without budgeting its output and hits token limits. It is not the best first discriminator for this task; check instead: inspect stop_reason and output validation failures.
That diagnostic helps when a Python app appends a text tool result without linking it to the original tool call. It is not the best first discriminator for this task; check instead: inspect stop_reason and output validation failures.



Claude Certified Developer - Foundations (CCDV-F) Practice Tests