Courseiva
mediumMultiple Choice

AIF-C01 Practice Question: A developer is using Amazon Bedrock Agents to…

A developer is using Amazon Bedrock Agents to build a multi-step reasoning workflow. The agent needs to query an external REST API to fetch data. What must the developer define in the agent configuration?

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

✓

An action group with the API schema and a Lambda function

Action groups allow agents to invoke external APIs (via AWS Lambda) or knowledge bases. The developer must define an action group that describes the API operations the agent can call, along with the Lambda function that implements the API integration.

Answer analysis

Option-by-option breakdown

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

  • ✗

    A prompt template with the API endpoint URL

    Why it's wrong here

    A prompt template only shapes the text sent to the foundation model; it does not register callable operations, so the agent has no action to invoke against the REST API. It is tempting because prompt templates are the correct configuration when the agent only needs to reformat or constrain model output, not call external services.

  • ✗

    A knowledge base with the API schema

    Why it's wrong here

    A knowledge base stores embedded documents for retrieval-augmented generation; it cannot describe REST endpoints or parameter schemas, so the agent could never invoke the API. It is tempting because knowledge bases are the correct configuration when the agent must answer from an indexed document corpus rather than call live services.

  • ✓

    An action group with the API schema and a Lambda function

    Why this is correct

    An action group binds the REST API to the agent by supplying its OpenAPI schema, which tells the agent which operations exist and their parameters, plus a Lambda function that executes the call and returns results. This satisfies the stem's requirement to query an external REST API during multi-step reasoning.

  • ✗

    A guardrail to filter API responses

    Why it's wrong here

    Guardrails filter and block model inputs and outputs against defined policies; they do not define callable API operations, so the agent still cannot fetch external data. It is tempting because guardrails are the correct configuration when the requirement is content safety or PII redaction rather than external API invocation.

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

This AIF-C01 question is part of Courseiva's 862-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 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.