フリー問題

Claude Certified Architect – Foundations のフリー問題 5 / 20 問目

問題文

An architect is implementing the agentic loop for a customer support agent using the Claude Agent SDK. The agent must keep calling tools until it has enough information to answer the customer. Which loop control condition correctly determines whether the agent should continue?

選択肢

  1. Continue the loop while the assistant message contains any text content, and exit when the text is empty.
  2. Continue the loop for a fixed maximum of five iterations, then return whatever the agent has produced so far.
  3. Ask Claude at each step whether it is finished, and parse the natural language reply for words like "done" or "complete".
  4. Continue the loop while stop_reason is "tool_use", and exit when stop_reason is "end_turn".

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

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