Implementation and Integration A free question from our original AIP-C01 practice exam. Try it, then open the answer to see why each option is right or wrong.
An insurance company's claims assistant answers adjusters' questions about open claims. It can call three internal tools: one looks up the policy, one returns payment history, and one reads the adjuster's notes. The right tool to call next often depends on what the previous tool returned, so the team cannot fix the sequence of calls in advance.
Every answer must rest only on facts returned by the tools, and the company's audit team needs a record of why each tool was called.
The team is reviewing how the agent loop should be structured.
Which agent loop design meets these requirements?
Choose one answer.
AA. Ask the model for a complete plan of every tool call in one response, run the calls in the planned order, and then ask the model for the final answer once all results are back.
BB. Call all three tools for every question in parallel, put every result into one prompt, and ask the model to write the answer in a single pass.
CC. Run a loop in which the model writes a reasoning step and one tool call, the application runs the call and returns the result, and the loop repeats until a final answer.
DD. Let the model answer each question from its training knowledge first, then call the tools only to check the answer, and rewrite the answer if a check fails.
Show the answer and explanation
Answer: C
A. Wrong: A fixed plan cannot change course when a result is unexpected, such as a missing policy number. The plan can record intent, but a plan made before any results exist is weaker evidence for an audit.
B. Wrong: Calling every tool for every question wastes calls and adds latency, and the model never decides which tool to use. The audit trail shows the same calls each time, so it does not record why a tool was chosen.
C. Right: This ReAct-style loop lets each tool call depend on the previous observation, and the final answer rests on returned results. Logging each reasoning step, tool call and observation gives the audit team the trace it needs.
D. Wrong: The model would answer before seeing any claim data, so the answer is not grounded in tool results. Checking afterward also leaves the first answer in the trace, which is confusing for an auditor.
Explanation
A ReAct-style loop alternates between reasoning, a tool call, and an observation of the tool's result, so each next step adapts to what the last tool returned. The final answer then rests only on returned facts, and every step can be logged. A fixed plan, parallel calls or answering first each break at least one of these requirements.
Want more on Agent reasoning patterns (ReAct, planning, Step Functions orchestration)? The 5 full-length practice sets have 5 more Agent reasoning patterns (ReAct, planning, Step Functions orchestration) questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →