A bank wants an assistant that answers staff questions from 40,000 internal policies, must not show personal data, and must reply within three seconds. Which design fits these constraints?
- Exam domain
- Foundation Model Integration, Data Management, and Compliance31% of the exam
- Difficulty
- Hard
- In this mock
- 28 questions on this domainPractise this domain
Why the exam asks this
Task 1.1: Analyze requirements and design GenAI solutions.
Objective in the exam guide: Skill 1.1.1: Create comprehensive architectural designs that align with specific business needs and technical constraints (for example, by using appropriate FMs, integration patterns, deployment strategies).
Professional-level questions describe several constraints at once and ask for a design that meets all of them. Answering them well means mapping each constraint to a component, not picking the most impressive technology.
Why A is the answer
Bedrock Knowledge Bases for retrieval, Guardrails with a sensitive information filter, and streaming responses
Each constraint maps to a component: retrieval for the policies, Guardrails for personal data, streaming for perceived speed.
Remember: Design by mapping each requirement to a component.
How it works
A good GenAI design starts from the requirements: data, safety, latency and cost. Each requirement suggests a component.
Large, changing document sets point to retrieval. Personal data rules point to guardrails or masking. A latency target points to streaming, model choice and caching.
The design that meets every constraint wins, even if each part is simple.
Clues in the question
The words that point to the answer, and what each one tells you.
- 40,000 internal policies
- Too much for a prompt and changing over time: retrieval.
- Must not show personal data
- A sensitive information filter.
- Within three seconds
- Streaming and a responsive model.
In detail
- An architectural design starts from the requirements and picks a component for each one.
- Policies change, so retrieval suits them better than fine-tuning.
Side by side with look-alikes
| Requirement | Component |
|---|---|
| Answers from many policies | Bedrock Knowledge Bases |
| No personal data shown | Guardrails sensitive information filter |
| Reply within three seconds | Streaming and a fast model |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Bedrock Knowledge Bases for retrieval, Guardrails with a sensitive information filter, and streaming responsesRight
Design by mapping each requirement to a component.
B. Fine-tune a model on all 40,000 policies and call it with no retrievalWrongMost tempting
Fine-tuning goes stale as policies change, and nothing here blocks personal data.
Why it tempts: Fine-tuning sounds like the thorough, custom answer for a bank. But policies change, fine-tuned knowledge goes stale, and it does nothing for personal data.
C. One large prompt that includes every policy on each requestWrong
Forty thousand policies cannot fit in a prompt, and the cost per request would be huge.
D. A free-running agent with access to every internal systemWrong
Broad system access adds risk and does not address personal data or latency.
In practice
- Write the requirements down and map each to a component before choosing services.
- Prove the latency target with a proof of concept on real policies.
Use case
An illustrative scenario, not a real incident.
An architect lists four requirements on a whiteboard and writes one AWS component next to each before choosing anything else.
See how it works
flowchart LR R1["40,000 policies"] --> C1["Knowledge Bases"] R2["No personal data"] --> C2["Guardrails PII filter"] R3["Under 3 seconds"] --> C3["Streaming"] C1 --> A["Assistant"] C2 --> A C3 --> A
How to read this chart
- "40,000 policies" leads to "Knowledge Bases".
- "No personal data" leads to "Guardrails PII filter".
- "Under 3 seconds" leads to "Streaming".
- "Knowledge Bases" leads to "Assistant".
- "Guardrails PII filter" leads to "Assistant".
- "Streaming" leads to "Assistant".
Related questions
Learn more
- Our lesson: Models, data and retrieval
- Practise Foundation Model Integration, Data Management, and Compliance questions in the mock exam
- Source: Amazon Bedrock Knowledge Bases
- Source: Amazon Bedrock Guardrails
- Source: Amazon Bedrock: Converse API
- Bedrock Knowledge Bases
- Bedrock Prompt Management
- Generative AI Lens