Skip to content

AIP-C01 · Study Guide

Quick Reference

Domains 1–5 cheat sheets from the AIP-C01 study guide.

Domain 131%

FM Integration & Data

Architecture, FM selection, data pipelines, vector stores, retrieval, and prompt governance

Task 1.1 Quick Reference

RequirementThink about
General GenAI applicationBedrock
Custom model controlSageMaker AI
Existing enterprise documentsRAG
Low latencyModel + retrieval + architecture optimization
High availabilityMulti-AZ / regional / model fallback strategy
Repeatable architectureStandard components
Validate before productionPOC
Architecture qualityWell-Architected + GenAI Lens

Task 1.2 Quick Reference

Model selection
    ↓
Benchmark + capability + cost + latency + constraints

Dynamic switching
    ↓
Abstraction + configuration

Resilience
    ↓
Fallback + Cross-Region + circuit breaker + graceful degradation

Customization
    ↓
SageMaker AI + LoRA/adapters + Model Registry + lifecycle

Task 1.3 Quick Reference

DataTypical processing
TextClean, normalize, segment
ImageValidate, resize/transform, extract information
AudioTranscribe / normalize
TabularSchema + quality validation
Any dataMetadata + validation + model-specific formatting

Task 1.4 Quick Reference

S3
= source documents

Embeddings
= semantic representation

Vector store
= retrieval index

Metadata
= filtering + context + governance

Incremental sync
= freshness + lower processing cost

Task 1.5 Quick Reference

Chunking
→ controls retrieval units

Embedding
→ converts content into vectors

Vector search
→ semantic retrieval

Keyword search
→ exact-term retrieval

Hybrid search
→ keyword + vector

Reranking
→ improves ordering of retrieved candidates

Query expansion
→ adds useful search terms

Query decomposition
→ breaks complex requests into subqueries

Retrieval API / function / MCP
→ standardizes access

Task 1.6 Quick Reference

RequirementPattern
Reusable promptsPrompt Management
Safety controlsBedrock Guardrails
Conversation stateDynamoDB
Workflow orchestrationStep Functions
Prompt auditCloudTrail
Logs/metricsCloudWatch
Prompt QALambda + Step Functions
Complex prompt workflowBedrock Prompt Flows
Iterative improvementEvaluation + feedback loop

Domain 1 Architecture

A complete architecture can look like:

                         ┌──────────────────────┐
                         │      End User        │
                         └──────────┬───────────┘
                                    │
                                    ▼
                         ┌──────────────────────┐
                         │ API Gateway / App    │
                         └──────────┬───────────┘
                                    │
                                    ▼
                         ┌──────────────────────┐
                         │ Application / Lambda │
                         └──────────┬───────────┘
                                    │
                ┌───────────────────┼───────────────────┐
                │                   │                   │
                ▼                   ▼                   ▼
         Prompt Management    Retrieval Layer      Conversation
                │                   │                   │
                ▼                   ▼                   ▼
          Guardrails          Query Handling        DynamoDB
                                    │
                         ┌──────────┴──────────┐
                         │                     │
                         ▼                     ▼
                    Vector Search        Keyword Search
                         │                     │
                         └──────────┬──────────┘
                                    ▼
                                Reranker
                                    │
                                    ▼
                              Context Assembly
                                    │
                                    ▼
                              Model Router
                                    │
                       ┌────────────┼────────────┐
                       ▼            ▼            ▼
                    FM A          FM B       Fallback
                       │
                       ▼
                 Final Response
                       │
              ┌────────┴─────────┐
              ▼                  ▼
         CloudWatch          CloudTrail

Data ingestion:

Enterprise Sources
       │
       ▼
      S3
       │
       ▼
Validation
       │
       ▼
Processing / Normalization
       │
       ▼
Chunking
       │
       ▼
Embeddings
       │
       ▼
Vector Store
       │
       └──────────────→ Retrieval

RAG vs Fine-Tuning vs Prompt Engineering

### Use Prompt Engineering when:

  • behavior can be controlled through instructions
  • knowledge changes frequently
  • no model behavior adaptation is required

### Use RAG when:

  • the model needs current/private knowledge
  • source documents change
  • answers must be grounded in enterprise information

### Use Fine-Tuning / Customization when:

  • consistent domain-specific behavior is required
  • prompt/RAG alone is insufficient
  • there is suitable training data

### Remember

Need new knowledge?
→ RAG

Need different behavior/style/task pattern?
→ Prompting or customization

Need both?
→ RAG + customization may be appropriate

# Keyword Search vs Vector Search vs Hybrid Search

Keyword

Best for:

  • exact IDs
  • names
  • codes
  • exact phrases

Vector

Best for:

  • semantic similarity
  • paraphrased questions
  • conceptual matching

Hybrid

Best when:

  • both exact terms and semantic meaning matter
Keyword + Vector
       ↓
   Candidate Set
       ↓
    Reranker
       ↓
   Best Context

# Chunking Decision Framework

Fixed-size

Choose when:

  • documents are relatively uniform
  • implementation simplicity matters

Semantic

Choose when:

  • meaning boundaries are important

Hierarchical

Choose when:

  • documents have strong structure
  • parent/child context matters

# Model Selection Decision Framework

Evaluate:

Capability
+ Quality
+ Latency
+ Cost
+ Context
+ Modality
+ Availability
+ Security
+ Regional Constraints

Never select a model from one metric alone.

# Resilience Decision Framework

When a model fails:

Can retry safely?
   │
   ├── Yes → controlled retry
   │
   └── No
       ↓
Can fail over?
   │
   ├── Yes → alternate model / region
   │
   └── No
       ↓
Graceful degradation

# Data Pipeline Decision Framework

Is data valid?
   ↓
No → Reject / Quarantine / Alert
Yes
   ↓
Does it require transformation?
   ↓
Yes → Process / Normalize
No
   ↓
Does model require a specific format?
   ↓
Yes → Model Adapter
No
   ↓
Invoke FM

# Prompt Governance Decision Framework

Create
 ↓
Version
 ↓
Evaluate
 ↓
Approve
 ↓
Deploy
 ↓
Monitor
 ↓
Audit
 ↓
Improve / Rollback

# Common Domain 1 Mistakes

Mistake 1 — Always choosing the most powerful model

Better approach:

Choose the model that meets the actual requirements for quality, latency, cost, modality, and availability.

Mistake 2 — Using fine-tuning for changing knowledge

Changing enterprise knowledge is usually a retrieval/data problem rather than a reason to continuously fine-tune the model.

Mistake 3 — Treating vector databases as source-of-truth systems

The vector store is generally a retrieval index over source information.

Mistake 4 — Using only vector search

Exact identifiers and terminology may require keyword retrieval.

Mistake 5 — Ignoring metadata

Metadata enables filtering by:

  • date
  • department
  • region
  • document type
  • permissions
  • classification

Mistake 6 — Sending all conversation history

More context is not automatically better.

Relevant context should be selected and managed.

Mistake 7 — Relying only on prompts for safety

Use appropriate governance and safety mechanisms such as Guardrails where required.

Mistake 8 — Retrying forever

Uncontrolled retries can increase load during outages.

Mistake 9 — Rebuilding the entire vector index after every change

Incremental updates are often more efficient.

Mistake 10 — Changing prompts without evaluation

Prompt changes need regression testing and measurable evaluation.

# Domain 1 Exam Traps

Trap 1

"Highest benchmark score" = best model

Not necessarily.

Evaluate against the actual business workload.

Trap 2

"RAG is always required for GenAI"

No.

Use it when external/current/private knowledge must be retrieved.

Trap 3

"Fine-tuning solves changing knowledge"

Usually not the first choice for frequently changing knowledge.

Trap 4

"Vector search is always better than keyword search"

No.

Hybrid retrieval can be better when exact terms matter.

Trap 5

"More chunks retrieved = better answer"

Not necessarily.

Too much irrelevant context can reduce quality and increase cost.

Trap 6

"More conversation history = better context"

Not necessarily.

Relevant context matters more than raw history size.

Trap 7

"Retry solves availability"

Not by itself.

Use controlled retries plus appropriate failover/degradation.

Trap 8

"Prompt instructions are security controls"

Not automatically.

Use appropriate platform security and safety controls.

Trap 9

"Vector database contains the authoritative document"

Usually the source repository remains authoritative.

Trap 10

"Complex architecture is better architecture"

No.

Use the simplest architecture that satisfies requirements.

Revision: 1.1 Architecture

Requirements
→ Constraints
→ Architecture
→ POC
→ Production

Think:

  • business value
  • latency
  • cost
  • security
  • availability
  • scalability

Revision: 1.2 Foundation Models

Evaluate
→ Select
→ Abstract
→ Route
→ Failover
→ Customize
→ Lifecycle

Key AWS:

  • Bedrock
  • SageMaker AI
  • Lambda
  • API Gateway
  • AppConfig
  • Step Functions
  • Model Registry

Revision: 1.3 Data

Validate
→ Process
→ Normalize
→ Format
→ Enhance
→ FM

Key AWS:

  • Glue Data Quality
  • SageMaker Data Wrangler / Processing
  • Lambda
  • Transcribe
  • Comprehend
  • Bedrock

Revision: 1.4 Vector Stores

Source
→ Chunk
→ Embed
→ Store
→ Metadata
→ Maintain

Key AWS:

  • S3
  • Bedrock Knowledge Bases
  • OpenSearch
  • Aurora / RDS
  • DynamoDB

Revision: 1.5 Retrieval

Query
→ Transform
→ Search
→ Hybrid
→ Rerank
→ Context
→ FM

Key concepts:

  • chunking
  • embeddings
  • vector search
  • keyword search
  • hybrid search
  • reranking
  • query expansion
  • query decomposition
  • retrieval APIs / function calling / MCP

Revision: 1.6 Prompt Engineering

Instruction
→ Context
→ Template
→ Guardrail
→ Evaluate
→ Version
→ Monitor
→ Improve

Key AWS:

  • Bedrock Prompt Management
  • Bedrock Guardrails
  • Bedrock Prompt Flows
  • Lambda
  • Step Functions
  • DynamoDB
  • S3
  • CloudTrail
  • CloudWatch

Domain 1 lessons

Domain 226%

Implementation & Integration

Agents, deployment, enterprise integration, FM APIs, and application patterns

Task 2.1 Quick Reference — Agents

2.1 AGENTS
│
├── Memory / State
├── Structured workflows
├── Safety controls
├── Model coordination
├── Human-in-the-loop
├── Tool integration
└── MCP
TechnologyPrimary role
Strands AgentsBuild agentic behavior
Agent SquadCoordinate multiple agents
MCPStandardize access to tools/context
Agent behavior → Strands
Multiple agents → Agent Squad
Agent ↔ Tools → MCP

Task 2.2 Quick Reference — Deployment

What does the application need?
          ↓
 ┌────────┼───────────┐
 ↓        ↓           ↓
On-demand Predictable  Custom
 ↓        ↓           ↓
Lambda   Bedrock      SageMaker
         Provisioned
  • Evaluate latency, cost, traffic, model size, memory, GPU, token throughput, availability
  • LLMs add memory, GPU, token processing, and model-loading concerns
  • Use cascading: small FM for simple work, large/specialized FM for complex work

Task 2.3 Quick Reference — Enterprise

RequirementThink
API endpointAPI Gateway
Event-driven integrationEventBridge
Queue / asynchronous processingSQS
Permissions / least privilegeIAM
On-prem / closer to customerOutposts
Edge / 5GWavelength
CI/CDCodePipeline / CodeBuild
Centralized model accessGenAI Gateway

Task 2.4 Quick Reference — FM APIs

2.4 FM APIs
│
├── Sync
├── Async
├── Streaming
├── Retry
├── Rate limiting
├── Fallback
├── X-Ray
└── Model routing
NeedPattern
Immediate answerSynchronous
Long-running / later resultAsynchronous
Show tokens as generatedStreaming
Temporary failureExponential backoff
Unhealthy dependencyCircuit breaker
Primary FM unavailableFallback / graceful degradation

Task 2.5 Quick Reference — Applications

2.5 APPLICATIONS
│
├── FM API interfaces
├── Amplify
├── OpenAPI
├── Prompt Flows
├── Business systems
├── Q Developer
├── Advanced agents
└── Troubleshooting
CloudWatch → logs/monitoring
X-Ray → distributed tracing

Step Functions vs Lambda

Step FunctionsLambda
Orchestrates workflowExecutes code
Maintains workflow stateRuns function
Branching / waiting / retriesBusiness logic / event-driven execution
Human approval workflowsIndividual operations
Step Functions = "What happens next?"
Lambda = "Do this operation."

Agent Safety Decision Framework

Agent wants to act
       ↓
Does it have permission?
       ↓
      IAM
       ↓
Is input valid?
       ↓
Validation
       ↓
Can operation fail?
       ↓
Timeout / Retry / Circuit Breaker
       ↓
Should human approve?
       ↓
Human-in-the-loop
       ↓
Execute
       ↓
Stopping condition

One-line exam formula

Agent → Tools → Workflow → Security → Deployment → Enterprise Integration → FM API → Application → Monitoring

Agent behavior?          → Strands / Agent Squad
Tool interaction?        → MCP
Workflow/state?           → Step Functions
Execution?               → Lambda
Complex container tool?   → ECS
Model access?             → Bedrock
Custom model deployment? → SageMaker AI
API?                     → API Gateway
Async?                   → SQS
Events?                  → EventBridge
Permissions?             → IAM
On-prem?                 → Outposts
Edge/5G?                 → Wavelength
CI/CD?                   → CodePipeline / CodeBuild
Streaming?               → Bedrock streaming / WebSockets / SSE
Resilience?              → Backoff / rate limiting / fallback
Tracing?                 → X-Ray
Logs?                    → CloudWatch
Developer assistance?    → Amazon Q Developer

Domain 2 Exam Traps

  • Largest model ≠ always best — evaluate quality, cost, latency, capability, requirements
  • MCP is not the agent — Agent → MCP → Tool
  • Lambda executes; Step Functions orchestrates workflow/state
  • Circuit breaker prevents repeated calls; it does not mean endless retries
  • IAM is permissions, not model reasoning
  • SQS is primarily asynchronous processing
  • CloudWatch = logs/monitoring; X-Ray = distributed tracing
  • Human-in-the-loop can be intentional design, not only failure recovery
  • Streaming is optional — use when incremental output improves UX
  • LLM deployment differs from traditional ML: memory, GPU, tokens, model loading

Domain 2 lessons

Domain 320%

Safety, Security & Governance

Guardrails, privacy, network isolation, governance artifacts, monitoring, and responsible AI

Decision Tree

Need Runtime Content / Topic Safety? ──→ Amazon Bedrock Guardrails
Need to Find Sensitive Data in S3?  ──→ Amazon Macie
Need Continuous Endpoint Bias Tracking? ──→ SageMaker Clarify
Need Private Network Traversal? ───────→ AWS PrivateLink (Interface VPC Endpoints)
Need Model Compliance Documentation? ──→ SageMaker Model Cards
Need Full Request Payload Auditing? ───→ Bedrock Model Invocation Logging

Task 3.1 — Input / Output Safety

User Request
    ↓
Gate 1 (Input Guardrails)
    ↓
FM Inference
    ↓
Gate 2 (Output Guardrails)
    ↓
Client
  • Content filters: hate, sexual, violence, misconduct, insults, prompt attacks
  • Denied Topics for natural-language policy bans
  • Contextual Grounding = candidate + source reference chunks
  • Separate system role from user role; enable Prompt Attack filters

Task 3.2 — Data Security & Privacy

NeedControl
No public internetInterface VPC Endpoint / PrivateLink
Customer-controlled keysKMS CMKs
Find PII in S3 before indexingAmazon Macie
Mask PII but continuePII ANONYMIZE
Hard-stop on PIIPII BLOCK
Retention limitsS3 Lifecycle rules

Task 3.3 — Governance & Compliance

NeedControl
Model documentationSageMaker Model Cards
Dataset lineage / schemaGlue Data Catalog
Fine-grained data accessLake Formation
API / management auditCloudTrail
Prompt + completion auditBedrock Model Invocation Logging
Bias drift monitoringSageMaker Clarify + CloudWatch/SNS

Task 3.4 — Responsible AI

  • Explainability → Bedrock Agent Tracing + source attribution
  • Fairness → Bedrock Model Evaluation / SageMaker Clarify
  • Consequential decisions → human oversight + escalation on interventions

High-Yield Flash Map

ScenarioPrimary featureKey mechanic
Runtime content / denied topicsBedrock GuardrailsInput Gate 1 & Output Gate 2
Mask PII, continue chatPII ANONYMIZEReplace with [NAME]/[EMAIL] tags
Terminate on PIIPII BLOCKStop FM invocation
Detect RAG hallucinationContextual GroundingNeeds candidate + references
Private Bedrock callsPrivateLinkNo public internet
Model provenance docsModel CardsMetrics, data, limits
Audit payloadsInvocation LoggingOpt-in to CloudWatch/S3
Live bias driftClarifyAlarms on endpoint metrics

Domain 3 lessons

Domain 412%

Efficiency & Optimization

Cost, latency, caching, cascading, streaming, and GenAI monitoring

Decision Tree

Static Prompt > 1,000 Tokens Repeated Frequently? ──→ Enable Bedrock Prompt Caching
Non-Realtime Asynchronous Ingestion Job? ─────────→ Use Bedrock Batch Inference (50% Off)
High Latency / Slow Response Perception? ────────→ Enable Response Streaming (TTFT Optimization)
Simple vs. Complex Query Mix Driving High Spend? ─→ Implement Model Cascading (Tiered Routing)
Need Token-Level Forensic Audit & Cost Tracking? ─→ Enable Bedrock Model Invocation Logging
High-Volume Sustained Traffic with Strict SLA? ────→ Bedrock Provisioned Throughput

Task 4.1 — Cost & Efficiency

  • Compress prompts + bound maxTokens
  • Cascade: cheap model first, escalate complex work
  • Batch Inference for overnight/async (~50% off)
  • Prompt Caching for static prefixes; semantic cache for FAQ repeats

Task 4.2 — Performance

NeedPattern
Lower perceived latencyStreaming + WebSocket/SSE
Faster retrievalHNSW + metadata pre-filters
Deterministic math/codeTemperature ≈ 0.0, tighter Top-P
Find bottlenecksX-Ray + Logs Insights

Task 4.3 — Monitoring

  • Metrics: InputTokenCount, OutputTokenCount, InvocationLatency, ThrottlingException
  • Invocation Logging → CloudWatch/S3 for token forensics
  • Alarms + SNS on token budgets and regressions
  • Dashboards for cascade mix and cache hit rate

High-Yield Flash Map

ScenarioFeatureKey mechanic
Reuse long static promptsPrompt CachingKV state reuse for prefixes
Async cheap batchBatch Inference~50% vs on-demand
Skip FM for similar QSemantic CachingVector similarity threshold
Cheap then escalateModel CascadingHaiku → Sonnet style routing
Low TTFTStreaming APIWebSockets / SSE chunks
Deterministic numbersTemperature 0.0No random sampling
Multi-service latencyX-RayAPI → Lambda → Bedrock
Token cost auditInvocation LoggingPayloads + token counts

Domain 4 lessons

Domain 511%

Testing & Troubleshooting

Eval metrics, quality gates, truncation vs overflow, Hybrid Search, agent IAM

Decision Tree

Output Cut Off Mid-Sentence? ─────────────→ Raise maxTokens (Output parameter)
Pre-Generation Token Validation Exception? → Chunk / Compress Input Payload
Exact Serial Numbers / Codes Missing in RAG? → Implement Hybrid Search (BM25 + Vector)
LLM Judge Prefers First Candidate? ───────→ Apply Pairwise Position Swapping
Agent Fails Tool Invocation with 403? ────→ Check IAM lambda:InvokeFunction Permissions
Newly Uploaded S3 Files Missing in RAG? ──→ Run StartIngestionJob Sync

Task 5.1 — Evaluation Systems

  • ROUGE/BLEU = lexical; BERTScore = semantic; Faithfulness = groundedness via LLM-as-a-Judge
  • RAG eval stages: context relevance → groundedness → answer relevance
  • Bedrock Model Evaluation: Automated or Human — assesses, does not auto-fix prompts
  • Canary 5–10% traffic; quality gates block low faithfulness / truncation spikes
  • Position swap A/B and B/A to neutralize judge bias

Task 5.2 — Troubleshooting

SymptomFix
stopReason: max_tokensRaise maxTokens
ValidationException input overflowChunk/compress input — not maxTokens
HTTP 429 ThrottlingExceptionBackoff + jitter; Cross-Region Inference; quota
Agent 403 on tool calllambda:InvokeFunction + Lambda resource policy
Exact IDs missed in RAGHybrid Search + rerank
New S3 docs missingStartIngestionJob
Math/format failurestemperature = 0.0 + JSON Schema

High-Yield Flash Map

ScenarioPrimary featureKey mechanic
Mid-sentence truncationRaise maxTokensstopReason: max_tokens
Input exceeds windowChunk / compressValidationException before generation
RAG factual alignmentFaithfulness metricClaims supported by context
Neutralize judge biasPosition swappingA/B and B/A average
Exact term retrievalHybrid SearchBM25 + vectors
Agent tool 403lambda:InvokeFunctionAgent role → Lambda
Managed model compareBedrock Model EvaluationAutomated or Human
Latency bottlenecksAWS X-RayTrace across Lambda/Bedrock/tools

Domain 5 lessons