Courseiva
mediumMultiple Choice

AIF-C01 Practice Question: A developer is building a customer support…

A developer is building a customer support chatbot using Amazon Bedrock Agents. The agent needs to retrieve order status by calling an external API. Which configuration enables the agent to call the API?

⚠ Common exam trap

AWS often tests the distinction between static data retrieval (knowledge bases) and dynamic action execution (action groups), so candidates mistakenly think a knowledge base can be used to call APIs when it only stores and retrieves pre-indexed content.

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

✓

Define an action group with an API schema and Lambda function

Amazon Bedrock Agents use action groups to define custom actions that the agent can invoke, such as calling an external API. An action group requires an API schema (in OpenAPI 3.0 format) to describe the API operations and a Lambda function to execute the API call and return the result. This configuration enables the agent to dynamically retrieve order status by invoking the Lambda function based on the user's request.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Define an action group with an API schema and Lambda function

    Why this is correct

    An action group with an API schema and Lambda function defines the external API's operations and provides the execution code that calls it. This is the mechanism enabling the agent to invoke the order status API during a session.

  • ✗

    Configure a knowledge base with the API documentation

    Why it's wrong here

    A knowledge base performs semantic retrieval over indexed documents; it cannot execute HTTP requests, so the agent never reaches the order API. It is tempting because knowledge bases ground responses in API documentation, which suits question-answering over static reference material rather than live order lookups.

  • ✗

    Use a guardrail to allow API calls

    Why it's wrong here

    Guardrails filter and block content against defined policies; they do not grant or perform outbound API invocation, so the call never occurs. It is tempting because guardrails govern what an agent may say or do, which suits enforcing safety and compliance boundaries rather than enabling action-group connectivity.

  • ✗

    Enable model caching for the API endpoint

    Why it's wrong here

    Model caching stores repeated inference responses; it does not invoke an external endpoint, so no order status is ever fetched. It is tempting because caching reduces latency and cost for repeated identical prompts, which suits high-volume inference workloads rather than outbound API integration.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

One of 862 original AIF-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 AIF-C01 practice question is part of Courseiva's free Amazon Web Services 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 AIF-C01 exam.