Courseiva
Implementing AI SolutionsmediumMultiple ChoiceObjective-mapped

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?

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 steps with tool calls, allowing the agent to decide when to call a function and what arguments to 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.

  • Chain-of-thought prompting only

    Why it's wrong here

    CoT improves reasoning but does not provide a mechanism to call external tools — it only generates text.

  • Zero-shot prompting with JSON mode

    Why it's wrong here

    JSON mode ensures structured output but does not include tool selection or reasoning about when to call a function.

  • ReAct pattern with tool descriptions and function calling

    Why this is correct

    ReAct enables the agent to reason about the next action and call the appropriate tool with correct parameters.

  • Simple prompt with no tool descriptions

    Why it's wrong here

    Without tool descriptions, the agent cannot know which functions are available or how to call them.

About these practice questions

This AI0-001 question is part of Courseiva's 754-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 →

How Courseiva writes practice questions · Editorial policy

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.