From the source
Amazon's guide sets out eight best practices for writing Denied Topics in Amazon Bedrock Guardrails, which block a content category by plain-language description applied by meaning rather than keyword.
- The post says the same mechanism can match more than intended: a topic named Finance, meant to keep an assistant out of investment advice, also blocks "When does my direct deposit clear?".
- It attributes over- and under-blocking to four authoring patterns: topics framed around a subject domain, definitions built from keyword lists, examples that teach the wrong thing, and overlapping topics that interfere with each other.
- The practices are worked through on a fictional AnyCompany Bank assistant that answers account, transfer, card and mortgage questions and must refuse personalized investment recommendations, litigation guidance, insider-trading advice, weapon-building instructions, prompt-injection attempts and named competitor products.
- A topic has a name, a definition and up to five examples, and the guardrail evaluates all three together as a single unit.
- The name can be up to 100 characters, the definition up to 1,000 characters with 100–300 as the practical sweet spot, each example up to 100 characters, and a guardrail can hold up to 30 topics.
- The post closes with one limitation to plan for regardless of how well the practices are followed: results are not fully deterministic.






