AI0-001 Implementing AI Solutions Practice Question
A team is developing an AI agent that can answer questions by querying a SQL database and a REST API. The agent should decide which tool to call, parse the response, and reason about the next step. Which THREE concepts should be implemented to build this agent?
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 for iterative reasoning and tool use
The ReAct pattern (Reasoning + Acting) enables iterative tool selection. Function calling allows the LLM to output structured tool calls. Planning agents can decompose a question into subtasks. Chain-of-thought is a reasoning technique but not a full agent framework; content filtering is not needed.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
ReAct pattern for iterative reasoning and tool use
Why this is correct
The ReAct pattern interleaves reasoning traces with tool-call actions, so the agent observes each SQL or REST response and reasons toward the next step. This directly satisfies the stem's requirement to decide which tool to call, parse results and reason iteratively.
- ✗
Content filtering to sanitize database results
Why it's wrong here
Content filtering screens generated or ingested text for harmful material; it neither selects tools nor parses API or SQL responses, so it adds nothing to the agent's decision loop. It is tempting because it hardens AI outputs, and would be correct where the requirement is moderating user-facing content rather than orchestrating tool calls.
- ✓
Function calling to enable the LLM to invoke SQL and API tools
Why this is correct
Function calling exposes SQL and REST operations as callable schemas, letting the LLM emit structured arguments the runtime executes and returns. This satisfies the stem's requirement that the agent invoke both a database and an API tool reliably.
- ✗
Chain-of-thought prompting without tool integration
Why it's wrong here
Chain-of-thought prompting structures reasoning but provides no mechanism to invoke the SQL database or REST API, so the agent cannot act on its conclusions. It is tempting because it improves multi-step reasoning quality, and would be the right choice for a purely text-based reasoning task where no external tools are required.
- ✓
Planning agent that decomposes the question into sub-tasks
Why this is correct
A planning agent decomposes the user's question into ordered sub-tasks, deciding which of the SQL or REST tools to invoke at each stage. This satisfies the stem's requirement to reason about the next step across multiple heterogeneous data sources.
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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.