フリー問題

Claude Certified Developer – Foundations のフリー問題 13 / 20 問目

問題文

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.)

選択肢

  1. Retry the test up to five times and pass if any attempt matches the recorded string.
  2. Set the temperature to zero and keep asserting byte-identical output, since that makes generation deterministic.
  3. Assert that the returned category is one of the values the downstream router accepts.
  4. Assert that the response validates against the output schema, so structural defects fail the test regardless of wording.
  5. Record the first response as the expected value and update it whenever the test fails.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。