Courseiva
Implementing AI Solutions →mediumMultiple Choice

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?

⚠ Common exam trap

AI0-001 often tests the confusion between prompting techniques (few-shot, chain-of-thought) and native API capabilities (function calling) — candidates pick prompting because it sounds flexible, missing that function calling is the purpose-built mechanism.

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 (also called tool use) is the native mechanism by which modern LLM APIs let the model emit structured JSON describing which function to invoke and with what arguments. The developer defines a schema for each API, and the model decides at runtime which function to call based on the user's natural language input. This is the standard, purpose-built technique for agentic API invocation.

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 bakes API documentation into model weights, but it cannot emit structured tool calls or select endpoints dynamically at runtime. Fine-tuning is correct when adapting a model's tone or domain vocabulary, not for invoking external APIs during inference.

  • ✗

    Chain-of-thought reasoning

    Why it's wrong here

    Chain-of-thought reasoning structures the model's internal deliberation but produces no mechanism for emitting a callable function name and arguments. It is the right technique for multi-step arithmetic or logic problems, not for binding natural language to API invocation.

  • ✗

    Few-shot prompting with examples of API calls

    Why it's wrong here

    Few-shot prompting supplies example input/output pairs, but without a declared tool schema the model cannot emit a structured call the runtime can execute. Few-shot prompting is correct for steering output format or style, not for enabling API invocation.

  • ✓

    Function calling

    Why this is correct

    Function calling lets the model emit structured JSON specifying which API to invoke and with which arguments, based on the user's natural-language request. The runtime executes that call and returns results, enabling reliable external API invocation without parsing free-form text.

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 →

How Courseiva writes practice questions · Editorial policy

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.