AI0-001 Implementing AI Solutions Practice Question
An AI agent is designed to book flights by calling an external API. The agent must decide which tool to call based on user input, then generate the correct API parameters. Which pattern is MOST appropriate for this workflow?
⚠ Common exam trap
AI0-001 often tests the misconception that chain-of-thought or JSON mode alone enables tool use, when in fact tool selection and parameter generation require the ReAct pattern with tool descriptions and function calling.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
ReAct pattern with tool descriptions and function calling
The ReAct (Reasoning + Acting) pattern interleaves reasoning traces with tool calls, allowing the agent to decide which tool to invoke based on user input, observe the result, and iterate. Combined with function calling and tool descriptions, the model can select the correct API and generate structured parameters (e.g., JSON schema-conformant arguments) for the flight booking API. This is the canonical pattern for tool-using agents that must choose among multiple tools and produce correct parameters.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Chain-of-thought prompting only
Why it's wrong here
Chain-of-thought prompting only structures reasoning; it neither selects among tools nor emits schema-valid API parameters, so the agent cannot reliably invoke the booking API. It is the right pattern for arithmetic or multi-step reasoning tasks where no external function call is required.
- ✗
Zero-shot prompting with JSON mode
Why it's wrong here
Zero-shot prompting with JSON mode constrains output syntax but supplies no tool schemas, so the model cannot choose the correct function or populate its required arguments. It is the right pattern for single-turn extraction or classification returning structured JSON without tool invocation.
- ✓
ReAct pattern with tool descriptions and function calling
Why this is correct
ReAct interleaves reasoning with tool invocation, while function calling supplies the schema that constrains generated API parameters. Together they let the agent select the correct booking tool from its descriptions and emit valid arguments, satisfying the stem's decision and parameter-generation requirements.
- ✗
Simple prompt with no tool descriptions
Why it's wrong here
Omitting tool descriptions leaves the model unaware of available functions and their parameter schemas, so tool selection and argument generation fail. It is the right pattern for closed-book text generation where no external API call is expected.
About these practice questions
This AI0-001 question is part of Courseiva's 962-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
This AI0-001 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI0-001 exam.