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
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
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 →
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.