AI0-001 Implementing AI Solutions Practice Question
An AI developer is building an agent that can book flights and hotels by calling external APIs. The agent needs to decide which API to call and in what order based on user requests. Which pattern is BEST suited for this multi-step reasoning and tool use?
⚠ Common exam trap
The trap is confusing RAG (retrieval for knowledge) or fine-tuning (static behavior) with agentic reasoning; the exam tests whether you recognize that multi-step tool use requires an iterative reason-act loop like ReAct.
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
✓
Apply the ReAct pattern (Reasoning and Acting)
The ReAct (Reasoning and Acting) pattern interleaves natural-language reasoning traces with tool/API calls, allowing the agent to decide which API to invoke, observe the result, and reason about the next step. This iterative loop is ideal for multi-step tasks like booking flights and hotels, where the sequence depends on intermediate results (e.g., flight availability before hotel dates). It is the best-suited pattern for dynamic, multi-step tool use.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Implement a simple Retrieval-Augmented Generation (RAG) pipeline
Why it's wrong here
A RAG pipeline retrieves documents to ground generated text; it cannot select APIs, sequence calls or act on results. It is tempting because RAG is the standard pattern for knowledge-grounded answers, and would be correct where the task is answering from an internal corpus rather than executing multi-step tool workflows.
- ✗
Fine-tune a model to output API call sequences directly
Why it's wrong here
Fine-tuning bakes fixed API sequences into model weights, so it cannot adapt call order to novel requests or react to API responses mid-task. It suits stable, repetitive classification or extraction tasks with labelled examples, not dynamic multi-step orchestration where the model must choose tools at runtime.
- ✗
Use function calling with a fixed sequence of API calls
Why it's wrong here
A fixed call sequence cannot adapt to user requests, so the agent cannot choose which API to invoke or reorder steps. It is tempting because fixed chains are deterministic and easy to test, and would be correct where the workflow is invariant and every request follows identical steps.
- ✓
Apply the ReAct pattern (Reasoning and Acting)
Why this is correct
ReAct interleaves chain-of-thought reasoning with tool calls, letting the agent decide which API to invoke and in what order, then feed results back into reasoning. This satisfies the stem's need for multi-step reasoning plus external API orchestration.
About these practice questions
Courseiva writes every AI0-001 question from scratch — 962 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.