問題文
A test asserts that a classification endpoint returns exactly the same JSON string for the same input. It passes locally but fails intermittently in CI. Which two assertions should replace it? (Select two.)
選択肢
- Retry the test up to five times and pass if any attempt matches the recorded string.
- Set the temperature to zero and keep asserting byte-identical output, since that makes generation deterministic.
- Assert that the returned category is one of the values the downstream router accepts.
- Assert that the response validates against the output schema, so structural defects fail the test regardless of wording.
- Record the first response as the expected value and update it whenever the test fails.