Question 700
A model endpoint returns a JSON envelope but the application saves the entire envelope as the business answer. Which test result BEST demonstrates that the intended solution is working?
Explanation
Correct Answer
A fixture response yields the expected text without transport headers. This is the decisive observable evidence after implementing parse the supported response schema and extract the correct generated content field. It tests the underlying requirement: HTTP response metadata and generated text are different parts of the payload.
Incorrect Answers
Malformed output is quarantined and valid output produces typed records. However, that result would not establish the required outcome: a fixture response yields the expected text without transport headers.
The approved identity receives a 2xx response while an unauthorized one fails. However, that result would not establish the required outcome: a fixture response yields the expected text without transport headers.
A JSON parser reconstructs the intended order IDs and amounts. However, that result would not establish the required outcome: a fixture response yields the expected text without transport headers.