AWS Certified AI Practitioner (AIF-C01) free question 9 / 10 · Domain 4: Guidelines for Responsible AI
A bank does not want its teller assistant to engage in conversations about investment advice or cryptocurrency. The team wants to detect such topics in both user questions and model responses and block them. What should they configure in Amazon Bedrock Guardrails?
- Register a regular expression for account numbers in the sensitive information filter
- Register a name and a definition under Denied topics
- Register the phrases to block as exact matches in a word filter
- Raise the strength of Misconduct in the content filters
Show the answer and explanation
Answer: B
Why this is correct
The denied topics page says that in the context of a generative AI application you can specify undesirable topics as denied topics, and gives as an example that a bank may want its AI assistant to avoid conversations related to investment advice or cryptocurrency. Prompts and responses are evaluated against each denied topic, and if one matches, the configured blocked message is returned. A denied topic is created with a name (a noun or phrase), a definition of up to 200 characters, and optionally up to five sample phrases.
Why the other options are wrong
"Register the phrases to block as exact matches in a word filter" … Word filters block words and phrases registered as exact matches, which suits blocking competitor names or inappropriate words. A topic such as investment advice, which can be phrased in countless ways, cannot be captured with a list of words alone.
"Raise the strength of Misconduct in the content filters" … Content filters detect predefined harmful categories (hate, insults, sexual, violence, misconduct, and prompt attacks) by strength. Investment advice is not a harmful category but a topic the bank's business wants to avoid, so it is handled with a denied topic.
"Register a regular expression for account numbers in the sensitive information filter" … The sensitive information filter blocks or masks personally identifiable information (PII) and can detect custom patterns with regular expressions. It can hide account numbers, but it does not stop the topic of investment advice itself.
Key point
The page's best practice is to make the definition of a denied topic clear and unambiguous, and not to include examples or instructions in it (such as "Block all contents associated to cryptocurrency"). An instruction is not a definition, and including one lowers detection accuracy.