โ† Back to Dashboard
1. Guardrails Concepts2. Policy Testing and Failure Modes

Guardrails Concepts

๐Ÿ“š Safety and Guardrailsโฑ 11 minโญ 75 XP

Defense Layers Around the Model

Amazon Bedrock Guardrails is a configurable, model-agnostic safety layer you can attach to any inference call or run standalone via ApplyGuardrail (no model invocation needed). It ships six safeguard types:

  • Content filters โ€” hate, insults, sexual, violence, misconduct, and prompt-attack detection with per-category strength tuning.
  • Denied topics โ€” natural-language descriptions of subjects to block entirely.
  • Word filters โ€” exact-match custom word/phrase blocklists (e.g. competitor names, profanity).
  • Sensitive information filters โ€” probabilistic PII detection plus custom regex, with block or mask actions.
  • Contextual grounding checks โ€” flag RAG responses that aren't grounded in retrieved source or don't answer the query.
  • Automated Reasoning checks โ€” validate model claims against formal logical rules you define, surfacing hallucinations and unstated assumptions with mathematical certainty rather than a probabilistic guess.

Guardrails ship in Classic and Standard safeguard tiers (Standard extends detection into code elements like comments and identifiers), support cross-Region inference distribution, and can be enforced cross-account. Do not rely on model behavior alone for safety-critical decisions.

๐Ÿงช Knowledge Check
Press 1-4 to select1 of 3
What is a primary purpose of guardrails?
Speed up VPC networking
Apply policy controls on prompt/response content
Replace IAM roles
Provision databases
Guardrails Concepts Tutorial | Safety and Guardrails โ€” AWS Bedrock Academy