Question 200
A model endpoint returns a JSON envelope but the application saves the entire envelope as the business answer. Following remediation, what safeguard BEST prevents a repeat of this specific failure?
Explanation
Correct Answer
Version and validate provider schemas. This guards against recurrence because HTTP response metadata and generated text are different parts of the payload. The direct remediation is: Parse the supported response schema and extract the correct generated content field.
Incorrect Answers
Implement safe fallback or manual review. The current task instead requires this action: version and validate provider schemas.
Audit outbound data scope and access context. The current task instead requires this action: version and validate provider schemas.
Test corpus freshness and unauthorized access. The current task instead requires this action: version and validate provider schemas.