Study guide

7.1 Guardrails Architecture, Denied Topics & Content Filters

AWS Certified Generative AI Developer - Professional AIP-C01

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Exam Overview & Foundation Model Fundamentals

1.1 AIP-C01 Exam Structure, Logistics & Passing Strategy 1.2 AIP-C01 Scoring & Professional Decision Strategy 1.3 Foundation Model Landscape & Model Selection on Amazon Bedrock 1.4 Model Abstraction, Controlled Switching & Resilience 1.5 Customization Spectrum: Prompting vs RAG vs Fine-Tuning vs Continued Pre-training 1.6 Custom Model Deployment & Lifecycle Management

2 Chapter 2: Bedrock Knowledge Bases & RAG Architectures

2.1 Managed RAG Architecture with Bedrock Knowledge Bases 2.2 Knowledge Source Integration, Synchronization & Freshness 2.3 Data Ingestion, Parsing & Chunking Strategies 2.4 Embedding Models & Vector Representations 2.5 Vector Index Scale, Migration & Retrieval Evaluation 2.6 Vector Database Selection: OpenSearch Serverless vs Aurora pgvector vs Managed Stores 2.7 Vector Store Security, Multi-Tenancy & Connectivity

3 Chapter 3: Advanced Vector Search, Indexing & Data Compliance

3.1 Hybrid Search, Metadata Filtering & Semantic Reranking 3.2 Metadata Filtering, Reranking & Query Transformation 3.3 Fine-Tuning & Continued Pre-Training Data Pipeline Engineering 3.4 Data Validation, Multimodal Processing & Model Formatting 3.5 Data Privacy, Data Residency & Compliance Governance 3.6 Privacy Preservation, Source Lineage & Audit Evidence

4 Chapter 4: Prompt Engineering & Bedrock Runtime APIs

4.1 Advanced Prompt Engineering Techniques & Inference Parameters 4.2 Inference Parameters, Prompt Governance & Regression 4.3 Converse API vs InvokeModel API & Message Formatting 4.4 Tool Calling, FM API Resilience & Model Routing 4.5 Streaming Architectures & Asynchronous Event Processing 4.6 Resilient Streaming, Deployment & Asynchronous Processing

5 Chapter 5: Amazon Bedrock Agents & Tool Integration

5.1 Agentic Architecture, ReAct Reasoning Loops & Orchestration 5.2 Agent Frameworks, MCP & Lifecycle Management 5.3 Action Groups, OpenAPI Schemas & AWS Lambda Integration 5.4 Agent Memory, Session State & Multi-Agent Collaboration Patterns 5.5 Persistent State & Multi-Agent Coordination 5.6 Advanced Agent Prompt Templates & Flow Customization 5.7 Agent Safeguards, Tool Reliability & Cost Control

6 Chapter 6: Workflow Orchestration & Application Integration

6.1 Amazon Bedrock Prompt Flows & Visual Orchestration 6.2 Step Functions Orchestration & Human-in-the-Loop Workflows 6.3 Enterprise Integration: API Gateway, AppSync, and EventBridge 6.4 Hybrid Integration, GenAI Gateways & CI/CD Tooling

7 Chapter 7: AI Safety & Guardrails for Amazon Bedrock

7.1 Guardrails Architecture, Denied Topics & Content Filters 7.2 Content Safety, Defense in Depth & Threat Detection 7.3 Sensitive Information Filters & PII Redaction/Masking 7.4 Contextual Grounding Checks & Hallucination Prevention

8 Chapter 8: Security, Access Control & Network Architecture

8.1 IAM Least Privilege & Resource Policies for Bedrock 8.2 PrivateLink VPC Endpoints & Network Isolation 8.3 Encryption with AWS KMS & Cross-Account Access Patterns

9 Chapter 9: Governance, Auditing & Operational Logging

9.1 SageMaker Model Cards & AI Governance Frameworks 9.2 Lineage, Fairness, Transparency & Continuous Governance 9.3 Invocation Logging, CloudTrail Auditing & Observability 9.4 Responsible AI, Bias Mitigation & Red Teaming Methodologies

10 Chapter 10: Performance, Throughput & Cost Optimization

10.1 On-Demand vs Provisioned Throughput & Capacity Planning 10.2 Capacity Measurement, Scaling Patterns & Resilience 10.3 Batch Inference & Bedrock Intelligent Prompt Routing 10.4 Intelligent Prompt Routing & Application Eligibility 10.5 Prompt Caching, Token Optimization & Latency Reduction

11 Chapter 11: Testing, Evaluation & Troubleshooting GenAI Solutions

11.1 Amazon Bedrock Model Evaluation (Automatic & Human Workflows) 11.2 Human, RAG & Continuous Evaluation 11.3 Evaluation Metrics & RAG Quality Benchmarking (Ragas, ROUGE, BLEU) 11.4 RAG and Agent Performance Evaluation 11.5 CloudWatch Metrics, Throttling & Operational Observability 11.6 Quota Diagnosis, Retry Control & Operational Troubleshooting 11.7 Troubleshooting Common GenAI Failure Modes & Agent Traces 11.8 Prompt Maintenance, Content Handling & Deployment Validation

7.1 Guardrails Architecture, Denied Topics & Content Filters

Key Takeaways Explain This Topic AI

Guardrails for Amazon Bedrock provides an independent, centralized AI governance and safety layer that enforces policies across foundation models, custom fine-tuned models, Bedrock Agents, Knowledge Bases, and external applications via the ApplyGuardrail API.

Denied Topics evaluate user prompts and model completions against natural language topic definitions and representative sample phrases, intercepting out-of-scope discussions with customizable blocked messaging.

Content Filters detect and intercept harmful interactions across six managed categories: Hate, Insults, Sexual, Violence, Misconduct, and Prompt Attack / Jailbreak.

Content Filter strengths (NONE, LOW, MEDIUM, HIGH) can be configured independently for user input prompts and model-generated completions to align with distinct risk tolerances.

The Prompt Attack filter is exclusively applied to input prompts to detect and neutralize adversarial jailbreak attempts, direct prompt injections, system prompt extraction, and role-play bypasses before foundation model invocation.

Last updated: September 2026

7.1 Guardrails Architecture, Denied Topics & Content Filters

This independent study guide by ExamFinch helps candidates prepare for the AWS Certified Generative AI Developer - Professional (AIP-C01) examination. Foundation models (FMs) hosted on Amazon Bedrock undergo baseline safety alignment (such as Reinforcement Learning from Human Feedback, or RLHF) conducted by model providers. However, provider-level alignment is generalized and cannot accommodate organization-specific compliance rules, brand safety policies, or domain-specific boundaries. Under the AWS Shared Responsibility Model for Generative AI, developers and enterprise architects are responsible for defining, enforcing, and auditing application-level safety boundaries.

Guardrails for Amazon Bedrock provides a fully managed, model-agnostic governance capability that evaluates both user inputs and model outputs against customized safety policies. Operating outside the model's internal weights, Guardrails provides consistent, deterministic policy enforcement across all Amazon Bedrock foundation models, custom imported models, Bedrock Agents, Bedrock Knowledge Bases, and even external models invoked through standalone evaluation APIs.

Multi-Layered Guardrails Architecture

Amazon Bedrock Guardrails acts as an inline security inspection layer positioned between client applications and the inference runtime. Rather than embedding complex safety rules into system prompts—which consumes valuable context window tokens and remains vulnerable to prompt injections—Guardrails decouples safety policies into independent, version-controlled AWS resources. [User Input Prompt]

  • │
  • ▼
  • ┌────────────────────────────────────────────────────────┐
  • │ Amazon Bedrock Guardrail (Input Evaluation) │
  • │ ├── 1. Prompt Attack / Jailbreak Filter (Input Only) │
  • │ ├── 2. Denied Topics Policy │
  • │ ├── 3. Content Filters (Hate, Insults, Violence...) │
  • │ ├── 4. Sensitive Information Filters (PII / Regex) │
  • │ └── 5. Word Filters (Profanity & Custom Word Lists) │
  • └──────────────────────────┬─────────────────────────────┘
  • │ (Passed / Redacted)
  • ▼
  • [Foundation Model / Agent / RAG]
  • │ (Model Output Text)
  • ▼
  • ┌────────────────────────────────────────────────────────┐
  • │ Amazon Bedrock Guardrail (Output Evaluation) │
  • │ ├── 1. Denied Topics Policy │
  • │ ├── 2. Content Filters (Hate, Insults, Violence...) │
  • │ ├── 3. Sensitive Information Filters (PII / Regex) │
  • │ ├── 4. Word Filters (Profanity & Custom Word Lists) │
  • │ └── 5. Contextual Grounding Policy (RAG Factuality) │
  • └──────────────────────────┬─────────────────────────────┘
  • │ (Passed / Redacted / Blocked)
  • ▼
  • [Final Application Output]
  • Core Touchpoints & Integrations

Native Foundation Model Invocation: Integrated directly within Converse , ConverseStream , InvokeModel , and InvokeModelWithResponseStream APIs by supplying a guardrailConfig payload.

Amazon Bedrock Agents: Bound directly to an agent configuration. The Guardrail inspects user input before the agent orchestrator invokes ReAct reasoning loops, and inspects final agent responses before returning them to the user.

Amazon Bedrock Knowledge Bases: Applied during RetrieveAndGenerate calls to sanitize retrieval queries and validate generated RAG responses against safety policies.

Standalone Evaluation ( ApplyGuardrail API): Allows developers to evaluate arbitrary text payloads against guardrail policies independently of model inference. This enables sanitizing legacy databases, verifying outputs from external third-party models, or inspecting user inputs in custom middleware.

Denied Topics Policy

The Denied Topics Policy enables organizations to define strict subject-matter boundaries. If a user attempts to steer a conversation into an unauthorized domain—or if a model begins generating content related to a prohibited subject—the Guardrail intercepts the transaction and returns a predefined response.

How Denied Topics Work

Unlike naive keyword-matching or regex engines, Bedrock Guardrails uses a managed natural language semantic classification model to evaluate whether text falls within a denied topic. Each denied topic requires:

Topic Name: A unique administrative identifier (e.g., InvestmentAdvice , LegalCounsel , MedicalDiagnosis ).

Topic Definition: A detailed natural language description of what constitutes the prohibited topic. The definition must clearly outline the scope and boundaries of the restricted subject.

Sample Phrases: A curated list of representative user phrases (typically 3 to 10 sample inputs) that illustrate how users might attempt to request information on the denied topic, including colloquialisms, slang, and edge cases.

Input vs. Output Denied Topic Enforcement

Input Evaluation: If the user's prompt matches a denied topic definition, Bedrock halts execution immediately. When an attached guardrail intervenes on the input, Bedrock returns the configured blocked response and discards foundation-model inference. Validate the exact integration path and current charging behavior rather than generalizing this to every separate guardrail check.

Output Evaluation: If the foundation model generates completion text that wanders into a denied topic (for example, in response to an adversarial prompt that bypassed input checks), the output filter catches the violation, discards the generated text, and returns the configured message.

Custom Blocked Messaging ( blockedMessaging )

When a Denied Topic is triggered, Guardrails suppresses the standard response and emits a user-configured message. Developers can specify distinct messages for input and output violations:

Input Block Message: E.g., "I am designed to assist exclusively with retail banking inquiries. For investment advice, please consult a licensed financial advisor."

Output Block Message: E.g., "The generated response was withheld because it contains unauthorized financial advisory guidance."

Loading diagram... Amazon Bedrock Guardrail End-to-End Evaluation Pipeline