Chapter 16 — Securing AI Systems, and Controlling Hallucination
Certification Blueprint
| Field | Coverage |
|---|---|
| Exam | AWS Certified AI Practitioner (AIF-C01), exam guide v1.1 |
| Domain | Content Domain 5 — Security, Compliance, and Governance for AI Solutions |
| Exam weight | 14% of scored content |
| Task statement | 5.1 Explain methods to secure AI systems |
| Objectives | 5.1.1 AWS services and features to secure AI systems · 5.1.2 source citation and documenting data origins · 5.1.3 best practices for secure data engineering · 5.1.4 security and privacy considerations · 5.1.5 hallucination detection and grounding |
| Service families | AWS IAM · AWS KMS and encryption · Amazon Macie · AWS PrivateLink · Amazon Bedrock Guardrails · Amazon Bedrock AgentCore Identity and Policy · Amazon SageMaker Model Cards |
What This Chapter Covers
Five earlier chapters made a promise and pointed here. Chapter 07 named hallucination as a disadvantage of generative AI and did not say what to do about it. Chapter 09 built a knowledge base and deferred securing it. Chapter 10 taught four prompt risks, said plainly that prompt-level defences are advisory rather than enforcing, and handed the real controls to Domain 5. This chapter is where all of that is paid off.
Everything in it follows from one observation, and it is worth stating before any service name:
An AI system is an ordinary system plus one component that can be confidently wrong. Every control you would apply to any other application still applies, unchanged — identity, encryption, network isolation, data access control. What is new is that the model is not a trusted component: it will repeat what it was shown, obey whatever text reaches it, and assert things that were never in its inputs.
That single difference explains the shape of the whole task statement. Six of the ten considerations in Objective 5.1.4 are ordinary security applied to an AI workload. Four exist only because a foundation model sits in the path. Being able to tell which kind a question is asking about decides a surprising number of marks.
What to remember from this diagram: the model sits in the middle, labelled untrusted, and there are controls on both sides of it. Everything above it is security you already know. Everything below it exists because the thing in the middle cannot be relied upon to be right. A scenario that describes a problem after generation is asking about the lower half.
Objective 5.1.1 — The Services, by the Layer They Defend
The objective names eight things. Memorising them as a list is the slow way; each one defends a specific layer, and the layer is what a scenario actually describes.
| Service or feature | Layer | What it answers |
|---|---|---|
| IAM roles, policies, permissions | Identity | Who may invoke the model, read the data, or call the tool |
| Encryption (at rest and in transit) | Data | Whether readable data survives a stolen disk or an intercepted connection |
| Amazon Macie | Data | What sensitive data is actually in there — discovery and classification in Amazon S3 |
| AWS PrivateLink | Network | Whether traffic to the service crosses the public internet at all |
| AWS shared responsibility model | All | Where AWS's obligation stops and yours starts |
| Amazon Bedrock AgentCore Identity | Identity | Who an agent is when it acts on a user's behalf |
| Policy in AgentCore | Identity | What that agent is permitted to do once identified |
| Amazon Bedrock Guardrails | Input and output | What content is allowed to reach, or leave, the model |
The shared responsibility model, and the line that moves
AWS secures the cloud; you secure what you put in it. For AI workloads the exam cares about where the line sits for different consumption models, because it moves.
What to remember from this diagram: three things never become AWS's problem no matter which service you pick — who may call it, what data you chose to send, and what you do with the output. A distractor that assigns any of those three to AWS is wrong regardless of the service in the stem.
| You are running | AWS secures | You secure |
|---|---|---|
| A managed API (Amazon Bedrock) | Model hosting, patching, the underlying infrastructure | Access control, the data you send, the use of the output |
| A self-hosted model (SageMaker AI, EC2) | The facility, hardware, hypervisor | The OS, the container, patching — plus everything in the managed column |
The exam signal: a scenario that moves from Bedrock to a self-hosted model and asks what changes is asking about this table. The answer is that responsibilities are added, never removed.
Identity for agents — AgentCore Identity and Policy
Chapter 06 introduced agents that call tools and reach external systems. That raises a question ordinary IAM was not designed for: when an agent acts for a user, who is acting?
- AgentCore Identity establishes the agent's identity as a first-class thing — so an agent's actions can be attributed rather than appearing as one shared service principal.
- Policy in AgentCore constrains what the identified agent may do, which is where least privilege actually gets enforced for agentic workloads.
Why this matters and is examinable: an agent that can call tools is an agent that can be made to call tools by injected text. Identity and policy are what stop a hijacked agent from doing anything worse than producing bad text. This is the enforcing control that Chapter 10 said the prompt could not provide.
Amazon Macie and AWS PrivateLink
Two named services that are easy to confuse because both sound like general protection.
| Amazon Macie | AWS PrivateLink | |
|---|---|---|
| Question it answers | What sensitive data is in my storage? | Does my traffic touch the public internet? |
| Layer | Data | Network |
| Typical scenario wording | "We do not know whether personal data reached the training set" | "Traffic to the model endpoint must not traverse the internet" |
Macie discovers and classifies — it finds the sensitive data you did not know you had, which is the control that prevents an entire class of problem in Objective 5.1.3.
Objective 5.1.2 — Source Citation and Documenting Data Origins
Three named mechanisms, and the reliable way to keep them apart is the question each one answers.
What to remember from this diagram: the chain ends at a single question — where did this answer come from? Each mechanism answers one link of it, and a scenario usually names the broken link rather than the mechanism.
| Mechanism | The question it answers | Broken when |
|---|---|---|
| Data cataloging | What data do we have, and where does it live? | Nobody can say what is in the corpus at all |
| Data lineage | Where did this particular record come from, and what transformed it on the way? | A bad record is found and its origin cannot be traced |
| Source citation | Which source produced this specific claim in this answer? | The answer is plausible and unattributable |
| SageMaker Model Cards | What was this model built from, what is it for, and what are its limits? | Nobody can say what the deployed model was trained on |
Source citation is the one with a second job. It documents origin, and it also gives a reader the means to check — which makes it a hallucination control as well as a provenance one. That overlap is why Objective 5.1.5 and this objective touch, and the exam does exploit it.
The distinction that is tested: lineage is about data on the way in; citation is about claims on the way out. A scenario asking how a wrong figure got into the corpus is lineage. A scenario asking how a reader could verify a figure in an answer is citation.
Objective 5.1.3 — Secure Data Engineering
Four named practices. Each one prevents a specific, nameable failure.
| Practice | What it means | The failure it prevents |
|---|---|---|
| Assessing data quality | Checking that data is accurate, complete, current and representative before it is used | A model confidently trained or grounded on wrong data — and a wrong answer with no bug anywhere in the code |
| Implementing privacy-enhancing technologies | Anonymisation, pseudonymisation, masking, tokenisation, aggregation — reducing what identifies a person while keeping the data useful | Personal data reaching a model that will later repeat it |
| Data access control | Least privilege over the data itself, not only the application | Broad read access turning one compromised credential into full corpus exposure |
| Data integrity | Ensuring data has not been altered without authorisation, in transit or at rest | Poisoned or tampered source material silently changing what the model says |
Data quality is a security practice here, not only a model-accuracy one. This surprises people. The exam guide places it in a secure data engineering objective because unverified data is an untrusted input, and an untrusted input that reaches a model becomes an untrusted output. Chapter 10 called the same phenomenon poisoning; this is the discipline that prevents it.
Privacy-enhancing technologies are the pairing with Macie. Macie finds the sensitive data; PETs are what you then do about it. A scenario naming both a discovery problem and a remediation is usually naming these two in sequence.
Objective 5.1.4 — The Considerations, Split Two Ways
The objective names ten things. Six are ordinary security; four exist only because a model is in the system. This split is the single most useful thing to carry into the exam from this objective.
| Conventional — would exist without any AI | AI-specific — exists because of the model |
|---|---|
| Application security | Prompt injection |
| Threat detection | Data leakage prevention |
| Vulnerability management | Output filtering and validation |
| Infrastructure protection | Toxicity |
| Encryption at rest and in transit | |
| Audit trail and logging (but with an AI twist — see below) |
The conventional five, stated briefly
They are examinable but they are not the difficulty. Application security covers the API, authentication and the usual web surface. Threat detection and vulnerability management are the ongoing disciplines of noticing attacks and fixing known weaknesses. Infrastructure protection is network and host controls. Encryption at rest and in transit protects data in storage and on the wire.
The exam's use for them is mostly as correct-but-irrelevant distractors: an option offering "enable encryption at rest" against a scenario describing a model repeating another customer's data is proposing a real control for the wrong problem.
The four that are genuinely new
Prompt injection. Chapter 10 classified it. This chapter defends against it.
What to remember from this diagram: every control shown sits outside the prompt. That is the whole difference between Chapter 10 and this chapter. Telling the model to resist override attempts is more text in the same string; validating input, constraining what the application may do, and filtering output are enforcing controls that do not depend on the model cooperating.
The most important of the four defences is the third, and it is the one candidates skip: least privilege on what the application may do with the answer. If a hijacked model can only produce text, the damage is bounded. If it can trigger a payment because the application executes whatever the model returns, the injection became a transaction. Chapter 06's agents are exactly this risk, which is why AgentCore Policy appears in Objective 5.1.1.
Data leakage prevention. The model repeats what it was given — training data, retrieved context, another user's session. Controls: keep sensitive data out (PETs, Macie), scope retrieval to what the requesting user may see, and filter output.
⚠️ The retrieval scoping point is the one most often missed. A knowledge base that retrieves from the whole corpus regardless of who is asking will happily ground an answer in a document the asker has no right to read. Access control has to apply at retrieval time, not only at the document store. This is the specific control Chapter 09 deferred to this chapter.
Output filtering and validation. Inspecting what the model produced before it reaches anyone. This is where Amazon Bedrock Guardrails does security work: content filters, denied topics, sensitive-information filtering and redaction. Note the contrast Chapter 10 drew — a negative prompt asks the model to avoid something; output filtering removes it after generation. Only the second is enforcing.
Toxicity. Harmful, abusive or otherwise unacceptable content, either reaching the model or leaving it. Guardrails filters it in both directions. It is named separately from output filtering because it is a category of content rather than a mechanism.
Audit trail and logging for AI interactions
Logging is ordinary. Logging AI interactions is not, and the objective names it specifically.
| An AI audit trail must capture | Why |
|---|---|
| The prompt as assembled, including retrieved context | The input is constructed at request time and is not reproducible from the user's text alone |
| The model and version invoked | The same prompt against a different model is a different system |
| The response returned | The output is non-deterministic, so it cannot be regenerated for an investigation |
| Which sources were retrieved | Without this, no claim in the answer can be traced |
The exam signal: a scenario asking how you would investigate an incident after the fact in a generative system is naming this. The trap answer is "reproduce it" — you cannot, because generation is non-deterministic and the assembled prompt no longer exists unless it was logged.
Objective 5.1.5 — Controlling Hallucination
Chapter 07 named hallucination as a disadvantage of generative AI. This objective turns it into something you engineer against. It names three techniques, and they are three rungs of one ladder, not three alternatives.
What to remember from this diagram: there are two decision diamonds after the model generates. Grounding alone stops at the box labelled "generates" — everything that actually verifies happens downstream of it.
| Rung | Technique | What it does | What it does not do |
|---|---|---|---|
| 1 | RAG grounding | Supplies real retrieved passages the answer must be built from, so the model is recalling rather than inventing | Guarantee the model used them, or used them correctly |
| 2 | Output validation | Checks each claim in the answer against the retrieved sources, and suppresses or refuses what is unsupported | Judge how confident the system should be |
| 3 | Confidence scoring | Attaches a strength-of-support score, so low-confidence answers route to human review instead of to the user | Make the answer correct — it decides who sees it |
Grounding is a reduction, not a guarantee. This is the examinable point and it is why the objective names three things rather than one. A grounded model can still misread a passage, blend two sources, or answer from parametric memory when retrieval returned nothing useful. If a scenario demands that an incorrect answer must never reach a customer, grounding alone is not the answer — validation and a human path are.
Source citation appears again here, and that is not an accident. Citing the passage behind each claim is simultaneously a provenance mechanism (5.1.2) and a hallucination control, because an unattributable claim is exactly what an unsupported one looks like. If a question offers citation as an option, check which objective the stem is really in.
Amazon Bedrock Guardrails does hallucination work too — its contextual grounding check evaluates whether a response is actually grounded in the supplied source material. That makes Guardrails the one service in this task statement that appears at three separate points: input filtering, output filtering, and grounding verification.
Decision Rules and Exam Signals
Rule 1 — an AI system is an ordinary system plus one untrusted component. Every classic control still applies; the new ones exist because the model may repeat, obey, or invent.
Rule 2 — classify the control by the layer it acts on. Identity, network, data, input, output, grounding. The layer named in the scenario picks the service.
Rule 3 — three things never move to AWS: who may call it, what data you send, what you do with the output. Any option assigning those to AWS is wrong.
Rule 4 — self-hosting adds responsibilities and removes none.
Rule 5 — lineage is data on the way in; citation is claims on the way out.
Rule 6 — data quality is a security practice. Unverified data is an untrusted input, and an untrusted input becomes an untrusted output.
Rule 7 — six of the ten considerations are ordinary security. Ask whether the control would exist if there were no model. If yes, it is conventional and probably not what a model-specific scenario is testing.
Rule 8 — enforcing controls live outside the prompt. Input validation, least privilege on actions, output filtering. An instruction to the model is advisory.
Rule 9 — bound what the model can do, not only what it can say. A hijacked model that can only emit text is a content problem; one wired to execute is an incident.
Rule 10 — access control must apply at retrieval time. Otherwise the knowledge base grounds answers in documents the asker may not read.
Rule 11 — you cannot reproduce a generative incident. Log the assembled prompt, the model and version, the retrieved sources, and the response.
Rule 12 — grounding reduces hallucination; it does not eliminate it. If the requirement is a guarantee, the answer includes validation and a human path.
Distractor Patterns
| Pattern | What it looks like | How to defuse it |
|---|---|---|
| The right control for the wrong problem | "Enable encryption at rest" against a model repeating another user's data | Encryption protects stored bytes; it does nothing about what a model says. Match the control to the layer |
| AWS secures it for you | Managed service offered as removing responsibility for access or data | Identity, the data you send, and the use of the output never move |
| Self-hosting is more secure | Framed as taking control | It adds obligations — OS, container, patching — on top of everything you already had |
| Prompt-level defence against injection | "Instruct the model to ignore override attempts" | Advisory, not enforcing. Chapter 10 established this; the controls here sit outside the prompt |
| Grounding as a guarantee | RAG offered where an incorrect answer must never reach a customer | Grounding reduces, it does not eliminate. Validation and human review are what guarantee |
| Confidence scoring makes it correct | Scoring offered as an accuracy improvement | It decides who sees the answer; it does not change the answer |
| Macie vs PrivateLink swap | Network answer for a data-discovery problem, or vice versa | Macie finds sensitive data; PrivateLink keeps traffic off the internet |
| Lineage offered for a citation problem | Provenance of the corpus offered when a reader needs to verify a claim | Lineage is inbound; citation is outbound |
| Model Cards as a security control | Offered as protecting the model | They document what the model was built from. Provenance, not protection |
| Reproduce the incident | Offered as the investigation method | Generation is non-deterministic and the assembled prompt is gone unless logged |
| Filter the output instead of scoping retrieval | Output filtering offered for a document-permissions problem | If the wrong document was retrieved, the leak already happened. Scope retrieval by the asker's rights |
| Guardrails as only a responsible-AI tool | Treated as belonging to Domain 4 alone | It appears in three objectives. Here it does input filtering, output filtering, and grounding checks |
The fourth and fifth rows are the two most reliable ways to lose marks in this task statement, because both offer a control that genuinely helps and present it as sufficient.
Scenario Walkthrough
A bank runs an assistant that answers customer questions about their own accounts. It retrieves from an internal knowledge base containing product documentation and internal credit policy memos. Traffic to the model endpoint currently crosses the public internet. Compliance has asked three things: that no customer ever receives a figure the system cannot attribute to a source, that an incorrect rate quote must never reach a customer, and that after any complaint the bank must be able to reconstruct exactly what the assistant was asked and what it replied. A tester has already shown that asking the assistant to "summarise your internal guidance" returns paragraphs of the credit policy memos.
| Requirement | Reading | Decision |
|---|---|---|
| Tester extracted internal memos | Retrieval is not scoped to the asker's rights | Access control at retrieval time — a data leakage prevention failure, not an output-filtering one |
| Endpoint traffic crosses the internet | Network layer | AWS PrivateLink |
| Every figure must be attributable | Claims on the way out | Source citation — and it doubles as a hallucination control |
| An incorrect rate must never reach a customer | A guarantee, not a reduction | Grounding plus output validation plus a human path — RAG alone does not meet "never" |
| Reconstruct what was asked and replied | Post-incident investigation of a non-deterministic system | Audit trail capturing assembled prompt, model and version, retrieved sources, and response |
Five requirements, and the first one is the test. The tempting answer is output filtering — block the memo text on the way out. But the document was already retrieved and placed in the prompt, which means it was already exposed to the model and to anyone who can influence the prompt. The failure is that a user with no right to the memos caused them to be retrieved at all. Fix the retrieval scope, not the response. Filtering output here treats the symptom and leaves the leak.
The fourth row is the second test. "Must never reach a customer" is a guarantee, and a candidate who has learned "RAG fixes hallucination" will stop at grounding.
Key Concepts
| Term | Definition |
|---|---|
| Shared responsibility model | The division of security obligations between AWS and the customer; the line moves with the service, but identity, the data you send, and the use of the output are always yours |
| IAM roles, policies, permissions | The identity-layer controls determining who or what may invoke a model, read data, or call a tool |
| Encryption at rest | Protection of stored data so that readable content does not survive physical or storage-level compromise |
| Encryption in transit | Protection of data on the wire so that intercepted traffic is not readable |
| Amazon Macie | The service that discovers and classifies sensitive data in Amazon S3 — it answers "what sensitive data do we actually have?" |
| AWS PrivateLink | Private connectivity to a service so that traffic does not traverse the public internet |
| Amazon Bedrock AgentCore Identity | Identity for an agent acting on a user's behalf, so an agent's actions can be attributed |
| Policy in AgentCore | The controls constraining what an identified agent is permitted to do — least privilege for agentic workloads |
| Amazon Bedrock Guardrails | Configurable filtering applied to model input and output — content filters, denied topics, sensitive-information redaction, and contextual grounding checks |
| Data cataloging | A record of what data exists and where it lives |
| Data lineage | A record of where a given record came from and what transformed it on the way |
| Source citation | Attribution of a specific claim in an answer to the specific source that supports it; both a provenance mechanism and a hallucination control |
| Amazon SageMaker Model Cards | Documentation of what a model was built from, its intended use, and its limitations |
| Privacy-enhancing technologies | Techniques such as anonymisation, masking, tokenisation and aggregation that reduce identifiability while keeping data useful |
| Data integrity | Assurance that data has not been altered without authorisation, in transit or at rest |
| Prompt injection | Untrusted text reaching the prompt and being read as instruction; defended outside the prompt, never within it |
| Data leakage prevention | Controls stopping the model from surfacing training data, retrieved context, or another user's data |
| Output filtering and validation | Inspection of generated content before release — enforcing, unlike a negative prompt |
| Toxicity | Harmful, abusive or unacceptable content, filtered on the way in and on the way out |
| RAG grounding | Supplying retrieved source passages the answer must be built from, so the model recalls rather than invents |
| Output validation | Checking each claim in a response against the retrieved sources and suppressing what is unsupported |
| Confidence scoring | Attaching a strength-of-support score so low-confidence answers route to human review rather than to the user |
Revision Flashcards
Say the answer aloud before revealing it.
1. State the one sentence this whole chapter follows from. → An AI system is an ordinary system plus one component that can be confidently wrong. Every classic control — identity, encryption, network isolation, data access control — applies unchanged. What is new is that the model is untrusted: it repeats what it was shown, obeys whatever text reaches it, and asserts things that were never in its inputs.
2. Which three responsibilities never move to AWS, whichever service you choose? → Who may call it, what data you choose to send, and what you do with the output. The shared responsibility line moves with the service — a managed API takes hosting and patching off your plate — but those three are always the customer's, and an option assigning any of them to AWS is wrong regardless of the stem.
3. What changes when you move from a managed API to a self-hosted model? → Responsibilities are added, never removed. You take on the operating system, the container and patching, on top of everything you already owned in the managed case. "Self-hosting is more secure because we control it" is a distractor; control and obligation are the same thing here.
4. Distinguish Amazon Macie from AWS PrivateLink. → Macie is a data-layer control that discovers and classifies sensitive data in Amazon S3 — it answers "what sensitive data do we actually have?" PrivateLink is a network-layer control determining whether traffic to a service crosses the public internet. They are swapped in distractors precisely because both sound like general protection.
5. What do AgentCore Identity and Policy in AgentCore each provide? → AgentCore Identity establishes who an agent is when it acts on a user's behalf, so its actions can be attributed rather than appearing as one shared principal. Policy in AgentCore constrains what that agent may do. Together they are the enforcing control that bounds a hijacked agent — the thing Chapter 10 said a prompt could not provide.
6. Tell data cataloging, data lineage and source citation apart. → Cataloging answers "what data do we have and where does it live?" Lineage answers "where did this particular record come from and what transformed it?" Citation answers "which source produced this specific claim?" Lineage is data on the way in; citation is claims on the way out.
7. Why is assessing data quality placed in a secure data engineering objective? → Because unverified data is an untrusted input, and an untrusted input that reaches a model becomes an untrusted output. A model grounded on wrong data produces a wrong answer with no bug anywhere in the code. Chapter 10 called the deliberate version of this poisoning; data quality assessment is the discipline that prevents both the deliberate and accidental forms.
8. Objective 5.1.4 names ten considerations. What is the split, and why does it matter? → Six are ordinary security that would exist without any AI — application security, threat detection, vulnerability management, infrastructure protection, encryption at rest and in transit, and audit logging. Four exist only because a model is present: prompt injection, data leakage prevention, output filtering and validation, and toxicity. Questions are frequently decided by noticing which kind the scenario describes, because the conventional ones make excellent correct-but-irrelevant distractors.
9. Where do enforcing defences against prompt injection live, and name the one most often skipped. → Outside the prompt — input validation, Guardrails on the input, output filtering, and least privilege on what the application may do with the answer. That last one is the skipped one and the most important: if a hijacked model can only produce text the damage is bounded, but if the application executes what the model returns, the injection became a transaction.
10. A knowledge base retrieves from the whole corpus regardless of who is asking. What is the failure, and what is the wrong fix? → The failure is data leakage through unscoped retrieval — access control must apply at retrieval time, not only at the document store. The wrong fix is output filtering: by the time you are filtering the response, the document has already been retrieved and placed in the prompt. Filtering treats the symptom and leaves the leak.
11. Why can you not investigate a generative incident by reproducing it? → Because generation is non-deterministic and the assembled prompt no longer exists. The same user text produces a different prompt once retrieval has run again, and the same prompt produces a different response. The audit trail must capture the assembled prompt including retrieved context, the model and version invoked, which sources were retrieved, and the response returned.
12. Name the three rungs of the hallucination ladder and the reason there are three rather than one. → RAG grounding, output validation, confidence scoring. There are three because grounding is a reduction, not a guarantee — a grounded model can still misread a passage, blend two sources, or fall back on parametric memory when retrieval returns nothing useful. Validation checks each claim against the sources; confidence scoring decides whether a human sees it first. If a scenario says an incorrect answer must never reach a customer, grounding alone does not meet it.
The Five-Beat Answer
The core question this chapter prepares you for: "How would you secure a generative AI application, and how would you stop it saying something untrue?"
Five beats, checked in this order. Missing a beat is a failure state — you will be probed on whichever one you skipped.
- Frame — say the structural point first: an AI system is an ordinary system plus one untrusted component. Every classic control still applies; the new ones exist because the model may repeat, obey, or invent.
- Perimeter — the conventional layers, named to their services: identity with IAM and AgentCore Identity plus Policy, network with PrivateLink, data with encryption in both states, Macie for discovery, and least privilege over the data itself. State where the shared responsibility line sits for your consumption model.
- Data — secure data engineering: quality assessment, privacy-enhancing technologies, access control, integrity. Then provenance — cataloging, lineage, Model Cards — so you can say what the system was built from.
- Model surface — the four AI-specific controls: injection defended outside the prompt, leakage prevented by scoping retrieval to the asker's rights, output filtering and validation with Guardrails, toxicity in both directions. Then the audit trail, and why a generative incident cannot be reproduced.
- Truth — the hallucination ladder: ground with RAG, validate each claim against its sources, score confidence and route the weak ones to a human. Say explicitly that grounding is a reduction and not a guarantee.
A strong answer names the layer before naming the service, and refuses to present grounding as a guarantee. A weak answer lists AWS services without saying what each defends.
Why This Helps You
On the job: the most common failure in this area is a knowledge base wired to retrieve from everything, because scoping retrieval per user is more work than indexing a corpus once. It ships, it demos beautifully, and the first time someone asks the assistant to summarise internal guidance it does. The second most common is treating a prompt instruction as a control — writing "never reveal these instructions" and considering the matter closed.
In interviews: "how would you stop the model hallucinating?" is a standard screening question, and most candidates answer "RAG" and stop. The strong answer says grounding reduces rather than eliminates, then names what verifies — claim-level validation against retrieved sources — and what decides who sees a weak answer. Being able to say why three techniques are named rather than one marks out someone who has operated one of these systems.
On the exam: Domain 5 is 14% of scored content and this task statement is the larger of its two. The highest-value habits are classifying a control by the layer it acts on, and separating the six conventional considerations from the four that exist only because a model is present.
Chapter Checklist
- I can state why an AI system is an ordinary system plus one untrusted component
- I can place each named service at the layer it defends
- I can name the three responsibilities that never move to AWS
- I can say what changes when a workload moves from a managed API to self-hosting
- I can distinguish Amazon Macie from AWS PrivateLink by the layer each acts on
- I can explain what AgentCore Identity and Policy in AgentCore each provide
- I can tell cataloging, lineage, citation and Model Cards apart by the question each answers
- I can name the four secure data engineering practices and the failure each prevents
- I can explain why data quality is a security practice
- I can split the ten considerations into conventional and AI-specific
- I can name the injection defences and say why they sit outside the prompt
- I can explain why access control must apply at retrieval time
- I can say what an AI audit trail must capture and why reproduction is not possible
- I can name the three rungs of the hallucination ladder and say why grounding is not a guarantee
After the Chapter
- Complete
student/project.md— parts 55-57 of the AI/ML Decision Sheet you began in Chapter 01. Bring the same sheet; do not start a new one. - Take
student/quiz.mdclosed-book, then review the reasoning for every question you guessed, including the ones you got right. Pay particular attention to questions 9 and 12 — both offer a control that genuinely helps and present it as sufficient, which is this chapter's signature trap. - Open the official v1.1 exam guide's Domain 5 page and confirm you can attach a concept from this chapter to each of the five bullets under Task Statement 5.1. Note how many distinct services the first bullet names — eight — and check you can say which layer each one defends.
- Next: Chapter 17 — Governance, Compliance, and Audit (Domain 5, Task 5.2). This chapter built the controls; Chapter 17 is about evidencing them — the services that demonstrate compliance to an auditor, data governance across lifecycle and retention, and the governance protocols themselves including the Generative AI Security Scoping Matrix.