Question 610
A report generator repeatedly breaks a specified JSON schema. Which TWO practices together provide an evidence-based acceptance check and an enduring safeguard against recurrence? Select TWO answers.
Explanation
Correct Answers
Parse output with a validator and review invalid example cases. This directly checks an observed result rather than assuming a well-formed request is enough. Machine-readable output must meet schema contracts rather than approximate their shape.
Reject malformed records before writing them to a production system. This sets a continuing restriction so that later uses of this same task do not bypass the relevant control. Machine-readable output must meet schema contracts rather than approximate their shape.
Incorrect Answers
Ongoing practice: Constrain output to the required fields and validate the schema before using it. This may prevent some failures, but it does not quantify the actual result. Both specified practices are required, not an isolated inspection.
Ongoing practice: Inspect whether free-form commentary appears outside the JSON structure. This is diagnostic evidence rather than proof of successful delivery. The needed pair includes complementary evidence and a continuing constraint.