Study guide

6.4 Hybrid Integration, GenAI Gateways & CI/CD Tooling

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

6.4 Hybrid Integration, GenAI Gateways & CI/CD Tooling

Key Takeaways Explain This Topic AI

Outposts and Wavelength are integration examples, not proof that every Bedrock feature runs locally.

A GenAI gateway can centralize model allowlists, token limits, Guardrails, routing, logging, and budgets.

Bedrock Data Automation and Amazon Q Developer accelerate workflows but do not replace review, tests, or ownership.

Last updated: September 2026

  • 6.4 Hybrid Integration, GenAI Gateways & CI/CD Tooling
  • AWS AppSync & GraphQL Real-Time Token Streaming

AWS AppSync is an enterprise-managed GraphQL service that excels in generative AI applications requiring structured, typed data schemas and real-time streaming.

Real-Time Streaming with GraphQL Subscriptions

In conversational AI applications, waiting several seconds for a full paragraph to generate degrades user experience. AppSync provides real-time streaming using GraphQL Subscriptions over WebSockets .

Architecture Flow:

Mobile/Web client subscribes to a GraphQL subscription (e.g., onTokenGenerated(conversationId) ).

Client executes a GraphQL mutation sendMessage(prompt, conversationId) .

An AppSync resolver invokes an AWS Lambda function that calls Bedrock using InvokeModelWithResponseStream .

As Bedrock emits token chunks, the Lambda function publishes mutation events back to AppSync.

AppSync broadcasts the tokens in real time across the active WebSocket subscription to the client.

Fine-Grained Authorization: AppSync provides built-in multi-auth support, combining Amazon Cognito User Pools (user authentication), AWS IAM (backend service access), and API keys within a single GraphQL API.

Amazon EventBridge: Event-Driven Generative AI Architectures

Amazon EventBridge serves as the serverless event bus that decouples GenAI microservices. Rather than tightly coupling applications via synchronous HTTP calls, systems emit events that trigger AI workflows asynchronously. [Amazon S3: Document Uploaded]

  • │ (S3 Event Notification)
  • ▼
  • [Amazon EventBridge Default Bus]
  • │
  • ┌───────┴───────────────────────┐
  • │ EventBridge Rule │
  • │ Filter: detail.object.key │
  • │ ends with ".pdf" │
  • └───────┬───────────────────────┘
  • │ (Target Invocation)
  • ▼
  • [AWS Step Functions: GenAI Extraction & Bedrock KB Sync]
  • │
  • ┌─────┴───────────────┐
  • ▼ ▼
  • [Amazon SNS Alert] [SQS Dead-Letter Queue (DLQ)]

Key EventBridge Patterns for GenAI:

Automated Knowledge Base Synchronization: When new documents are uploaded to an S3 data source, S3 emits an EventBridge event. An EventBridge rule filters for document formats ( .pdf , .docx ) and triggers an AWS Step Functions state machine or Lambda function that calls StartIngestionJob on Amazon Bedrock Knowledge Bases.

Content-Based Routing: EventBridge rules inspect the JSON event envelope. For example, routing high-priority claims to an immediate Bedrock processing pipeline while routing standard compliance logs to overnight batch inference.

EventBridge Pipes with Enrichment: EventBridge Pipes provides point-to-point integrations connecting event sources (e.g., Amazon DynamoDB Streams or Amazon SQS) directly to Bedrock-orchestrated Step Functions, with built-in Lambda enrichment steps to pre-process prompts before model execution.

Dead-Letter Queues (DLQs): EventBridge targets should be configured with an Amazon SQS DLQ to preserve failed invocation events caused by downstream model rate-limiting or service outages.

Rate Limiting, Usage Plans, and Cost Protection

Foundation models represent significant compute investments. Unprotected API endpoints can result in catastrophic financial charges (denial-of-wallet attacks) or exhaust Bedrock account quotas, disrupting critical enterprise services.

API Gateway Protection Controls

Token Bucket Throttling: Configured at the API Gateway stage or method level.

Steady-State Rate (RPS): The target sustained number of requests per second.

Burst Capacity: The maximum number of concurrent requests API Gateway accepts in a millisecond burst before returning HTTP 429 Too Many Requests .

Usage Plans & API Keys:

Enterprises bundle API keys into Usage Plans (e.g., Bronze: 100 requests/day, Gold: 10,000 requests/day).

API Gateway validates API keys and enforces daily/monthly quota limits before routing requests to backend Bedrock models.

API Gateway Response Caching:

Frequently repeated user queries (e.g., "What are the standard customer return terms?") can be cached at the API Gateway layer (TTL configurable from 0 to 3,600 seconds).

Cached responses return within single-digit milliseconds, completely bypassing Lambda and Bedrock, drastically reducing token consumption and inference cost.

Common Exam Traps & High-Stakes Scenarios

Trap: Treating an old timeout value as universal. Check the endpoint type and current API Gateway feature. REST response streaming, supported timeout increases, WebSockets, and asynchronous 202-plus-polling satisfy different client contracts.

Trap: Assuming a REST API streams automatically. A supported REST proxy integration must set response transfer mode to STREAM ; WebSocket APIs, AppSync, and Lambda Function URLs remain alternatives.

Trap: Missing Throttling Controls on Bedrock APIs. Exposing a foundation model directly to external clients without API Gateway Usage Plans or rate-limiting allows malicious actors or runaway scripts to exhaust Bedrock provisioned or on-demand throughput quotas.

Hybrid integration, CI/CD gateways, and developer tools

For jurisdiction-bound or on-premises data, keep the restricted data plane where policy requires and expose only an approved interface to the model path. The blueprint cites AWS Outposts and AWS Wavelength as possible cross-environment patterns; they do not make every Bedrock feature local. Document where prompts, retrieved evidence, logs, and model inference occur, and secure routing with private connectivity, identity federation, encryption, and least privilege.

A GenAI gateway centralizes authentication, model allowlists, token limits, Guardrail policy, logging, routing, budgets, and schema validation. Deliver it through CodePipeline and CodeBuild with infrastructure-as-code, security scans, prompt and retrieval regression tests, canary deployment, and rollback. AWS Amplify can accelerate approved front ends, OpenAPI can define API-first contracts, Bedrock Data Automation can extract structured multimodal data for business workflows, and Amazon Q Developer can assist coding and tests. Generated code still requires review, testing, dependency scanning, and ownership.