hardMultiple Choice
AIF-C01 Practice Question: A financial services company uses Bedrock Agents…
A financial services company uses Bedrock Agents to automate a multi-step loan approval process. The agent needs to call an external credit scoring API and a compliance database, then combine results. The agent currently fails when the API returns a 503 error. How should the practitioner address this?
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
✓
Implement a custom Lambda function for the action group to handle errors and retries
Lambda functions integrated with action groups can implement retry logic, error handling, and custom processing. Granularity tuning or trace truncation does not handle errors. Guardrails are for content filtering, not API error handling.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Adjust the Bedrock Agent's granularity setting to 'high'
Why it's wrong here
Granularity governs how finely the agent decomposes tasks into steps, not how it reacts to transient HTTP failures. Raising it would be correct when a complex workflow needs finer action planning and clearer step separation.
- ✗
Reduce the agent's trace truncation limit to shorten the context
Why it's wrong here
Trace truncation limits only control how much reasoning detail is logged for debugging; they do not change how the agent handles a 503 response. It would be relevant when traces exceed CloudWatch size limits and diagnostics need trimming.
- ✓
Implement a custom Lambda function for the action group to handle errors and retries
Why this is correct
A custom Lambda backing the action group lets the practitioner catch the 503, apply retry with backoff, and return a structured response the agent can act on. Bedrock Agents' built-in invocation offers no such error handling, so this satisfies the resilience constraint.
- ✗
Use Bedrock Guardrails with a topic denial rule for error messages
Why it's wrong here
Guardrails filter or deny content by topic; they cannot retry a failed API call or absorb a 503. Topic denial would be correct when the agent must refuse requests about prohibited subjects such as unlicensed financial advice.
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.