An assistant answers from retrieved policy documents, but sometimes adds claims the documents do not support. Which Amazon Bedrock feature can filter those responses?
- Exam domain
- Security, Compliance, and Governance for AI Solutions14% of the exam
- Difficulty
- Hard
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Task Statement 5.1: Explain methods to secure AI systems.
Objective in the exam guide: Describe hallucination detection methods and grounding techniques to improve output accuracy (for example, Retrieval Augmented Generation [RAG] grounding, output validation, confidence scoring).
Even with RAG, a model can add details its sources do not contain. Catching those automatically is what makes an assistant safe to put in front of employees or customers.
Why A is the answer
Guardrails contextual grounding check
A contextual grounding check compares the response with the reference source and filters responses that are not grounded in it.
Remember: Responses straying from the source documents: use a contextual grounding check.
How it works
RAG grounds a model by giving it source documents, but the model can still add unsupported claims.
Amazon Bedrock Guardrails offers a contextual grounding check. Given a reference source and the user's query, it checks whether the response is grounded in the source and relevant to the query.
Responses that fail can be blocked before they reach the user.
Clues in the question
The words that point to the answer, and what each one tells you.
- Answers from retrieved documents
- There is a reference source to check against.
- Claims the documents do not support
- Ungrounded content, which a grounding check catches.
In detail
- The check also tests whether the response is relevant to the user's question.
- Grounding with RAG and validating output are the methods the exam guide lists for reducing hallucinations.
Side by side with look-alikes
| Feature | Checks responses against sources? |
|---|---|
| Guardrails contextual grounding check | Yes |
| Prompt Management | No |
| Provisioned Throughput | No |
| Model Cards | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Guardrails contextual grounding checkRight
Responses straying from the source documents: use a contextual grounding check.
B. Provisioned ThroughputWrong
Provisioned Throughput reserves capacity; it does not check content.
C. Prompt ManagementWrongMost tempting
Prompt Management stores prompts; it does not check responses.
Why it tempts: A better prompt can reduce hallucinations, so it feels relevant. But it does not check or filter a response after it is generated.
D. SageMaker Model CardsWrong
Model Cards document a model.
In practice
- Pass the retrieved passages to the grounding check as the reference source.
- Tune the threshold on real examples, balancing blocked good answers against missed bad ones.
Use case
An illustrative scenario, not a real incident.
An HR assistant's answers are checked against the retrieved policy, and an answer that adds an unsupported leave rule is blocked.
See how it works
flowchart LR
Q["Question"] --> R["Retrieve policy text"]
R --> M["Model writes an answer"]
M --> G{"Grounded in the policy and relevant?"}
G -->|"Yes"| U["Show the answer"]
G -->|"No"| B["Block it and show a safe reply"]How to read this chart
- "Question" leads to "Retrieve policy text".
- "Retrieve policy text" leads to "Model writes an answer".
- "Model writes an answer" leads to "Grounded in the policy and relevant?".
- At "Grounded in the policy and relevant?": if "Yes", go to "Show the answer"; if "No", go to "Block it and show a safe reply".