An ML application built on Bedrock must never return customers' card numbers and must refuse a list of off-limits topics. Which control meets both?
- Exam domain
- Operating, Monitoring, and Securing ML and AI Solutions24% of the exam
- Difficulty
- Easy
- In this mock
- 21 questions on this domainPractise this domain
Why the exam asks this
Task 4.3: Secure ML and AI workloads and model endpoints.
Objective in the exam guide: Skill 4.3.9: Implement safeguards and sensitive data protection to meet application requirements and responsible AI policies (for example, by using Amazon Bedrock Guardrails).
Leaking a card number or giving forbidden advice is a compliance incident. Enforced safeguards are required, not optional.
Why C is the answer
Amazon Bedrock Guardrails with sensitive information filters and denied topics
Guardrails can mask or block sensitive information and refuse denied topics, outside the model.
Remember: Sensitive data and off-limits topics: Bedrock Guardrails.
How it works
Amazon Bedrock Guardrails applies policies to model inputs and outputs.
Sensitive information filters detect data such as card numbers and block or mask it. Denied topics make the model refuse specified subjects.
Because they act outside the prompt, they hold even when users try to get around instructions.
Clues in the question
The words that point to the answer, and what each one tells you.
- Never return card numbers
- A sensitive information filter.
- Refuse off-limits topics
- Denied topics.
In detail
- Guardrails apply to inputs and outputs, and can be shared across applications.
- They support responsible AI policies as well as data protection.
Side by side with look-alikes
| Control | Enforced? |
|---|---|
| Guardrails filters and denied topics | Yes |
| Longer prompt | No |
| Larger model | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A longer system prompt onlyWrongMost tempting
Instructions alone can be bypassed.
Why it tempts: Prompt instructions are the first tool most developers reach for. But they can be bypassed and do not reliably catch every card number.
B. More training epochsWrong
Training epochs do not apply to a managed foundation model's run-time behavior.
C. Amazon Bedrock Guardrails with sensitive information filters and denied topicsRight
Sensitive data and off-limits topics: Bedrock Guardrails.
D. A larger modelWrong
Model size does not enforce rules.
In practice
- Test the guardrail with real-looking card numbers and topic variations.
Use case
An illustrative scenario, not a real incident.
A bank's assistant masks any card number in replies and refuses investment advice through one guardrail.
See how it works
flowchart LR
U["User message"] --> G1{"Denied topic?"}
G1 -->|"Yes"| R["Refuse"]
G1 -->|"No"| M["Model"]
M --> G2{"Card number in reply?"}
G2 -->|"Yes"| K["Mask it"]
G2 -->|"No"| O["Reply"]
K --> OHow to read this chart
- "User message" leads to "Denied topic?".
- At "Denied topic?": if "Yes", go to "Refuse"; if "No", go to "Model".
- "Model" leads to "Card number in reply?".
- At "Card number in reply?": if "Yes", go to "Mask it"; if "No", go to "Reply".
- "Mask it" leads to "Reply".