AI0-001 Implementing AI Solutions Practice Question
A developer is building an AI agent that needs to call external APIs to complete user requests. The agent must decide which API to call based on the user's natural language input. Which technique should the developer use to enable the agent to invoke APIs?
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
✓
Function calling
Function calling is a technique where the LLM outputs a structured request to call a predefined function/API, enabling 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.
- ✗
Fine-tuning the LLM on API documentation
Why it's wrong here
Fine-tuning may help but is not the standard technique for dynamic API invocation; function calling is purpose-built.
- ✗
Chain-of-thought reasoning
Why it's wrong here
Chain-of-thought improves reasoning but does not directly enable API invocation.
- ✗
Few-shot prompting with examples of API calls
Why it's wrong here
Few-shot prompting can show examples but without structured output, it's unreliable for automated invocation.
- ✓
Function calling
Why this is correct
Function calling allows the model to output a structured JSON that triggers an API call.
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 →
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.