Courseiva
mediumMultiple Choice

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

A developer is using Bedrock Agents to create a travel planning assistant. The agent needs to call a hotel booking API and a flight API. What is the correct way to define these external API calls in Bedrock Agents?

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

✓

Create action groups with the API schemas and Lambda functions

Action groups in Bedrock Agents define the tools (APIs) that the agent can call, including the OpenAPI schema and Lambda function integration. Knowledge Bases are for RAG, not API calls. Guardrails are for content filtering. The playground is for testing prompts.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Create action groups with the API schemas and Lambda functions

    Why this is correct

    Action groups bind an OpenAPI schema describing each API's operations to a Lambda function that executes the call. Defining the hotel and flight APIs this way lets the Bedrock agent invoke them during orchestration, satisfying the requirement for external API calls.

  • ✗

    Hardcode the API endpoints in the agent's prompt

    Why it's wrong here

    Hardcoding endpoints in the prompt bypasses Bedrock Agents' action groups, which define APIs via OpenAPI schemas so the agent can invoke them as tools with validated parameters. Prompt text cannot execute HTTP calls. Hardcoding suits static instructions, not dynamic tool invocation.

  • ✗

    Configure the APIs as guardrails content filters

    Why it's wrong here

    Guardrails content filters screen prompts and responses for harmful or restricted content; they cannot invoke external APIs. It tempts because guardrails are configured per agent, and would be correct when the requirement is blocking unsafe topics rather than calling booking and flight services.

  • ✗

    Define the APIs as knowledge base data sources

    Why it's wrong here

    Knowledge bases supply retrieved reference data for grounding responses; they perform no outbound API invocation. It tempts because both are agent-attached resources configured in Bedrock, and a knowledge base would be correct when the requirement is answering from indexed documents rather than executing bookings.

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.