Skip to content

AWS Certified Generative AI Developer - Professional (AIP-C01) Flashcards

268 cards from this guide's fact sheet and notes. Click a question to reveal the answer.

To study with spaced repetition, download flashcards.csv and import it into Anki or Quizlet (comma separated, first row is the header). Back to the study guide.

Exam logistics

How long is the AWS Certified Generative AI Developer - Professional (AIP-C01) exam?

205 minutes

How many questions are on the AWS Certified Generative AI Developer - Professional (AIP-C01) exam?

85 total (65 scored + 10 unscored)

What is the passing score for AWS Certified Generative AI Developer - Professional (AIP-C01)?

750 / 1000 (scaled)

What does the AWS Certified Generative AI Developer - Professional (AIP-C01) exam cost?

$300 USD (50% discount voucher available for prior cert holders)

How long is AWS Certified Generative AI Developer - Professional (AIP-C01) valid for?

3 years

How is the AWS Certified Generative AI Developer - Professional (AIP-C01) exam delivered?

Pearson VUE (online proctored or testing center)

Foundation models data compliance

AWS Cloud Adoption Framework for AI/ML/GenAI (CAF-AI) (foundation models data compliance)

org-level adoption

AWS Prescriptive Guidance: Generative AI workload assessment (foundation models data compliance)

per-workload review

No infrastructure (foundation models data compliance)

API-only access to multiple model providers (Anthropic, AI21, Cohere, Meta, Stability, Mistral, Amazon Titan)

Quick model swapping (foundation models data compliance)

change model ID, re-run, compare

Versioning (foundation models data compliance)

every model artifact gets a version in the Registry

Approval workflows (foundation models data compliance)

status gates in the Registry; aws sagemaker update-model-package flips status

Automated deployment (foundation models data compliance)

CodePipeline / Step Functions watches Registry, triggers SageMaker Endpoint update on approval

Rollback (foundation models data compliance)

keep previous endpoint config; update-endpoint to roll back

Retire / replace (foundation models data compliance)

schedule cutover, monitor blue/green, decommission old endpoints to control cost

Conversation formatting (foundation models data compliance)

keep system prompt in system, alternate user / assistant turns, never repeat user twice in a row (most providers reject).

Sharding (foundation models data compliance)

more shards = more parallelism but more overhead. Common rule: 30-50 GB per shard.

Multi-index strategy (foundation models data compliance)

separate index per domain (legal, support, products) to improve precision and reduce noise.

Hierarchical indexing (foundation models data compliance)

route queries to a coarse index first, then drill into a fine index based on classification.

HNSW vs IVF (foundation models data compliance)

HNSW (default in OpenSearch k-NN) is the standard; tune m, ef_construction, ef_search for recall/latency trade-off.

Incremental ingestion (foundation models data compliance)

Bedrock Knowledge Bases supports incremental sync (only re-embed changed objects). Trigger via API or schedule.

Real-time change detection (foundation models data compliance)

S3 event notifications → EventBridge → Lambda → Knowledge Base ingestion API.

Scheduled refresh (foundation models data compliance)

EventBridge Scheduler or Step Functions cron runs full re-sync nightly/weekly.

Domain fit (foundation models data compliance)

test on a held-out eval set; don't assume the highest-priced is best.

Pure vector search (foundation models data compliance)

good for semantic similarity, can miss exact keyword matches.

Hybrid search (foundation models data compliance)

run both, combine scores. OpenSearch supports natively. Bedrock Knowledge Bases offers HYBRID search type. Almost always beats pure vector for production.

Query expansion (foundation models data compliance)

generate synonyms / paraphrases with a small Bedrock model, run multiple retrievals, merge.

Query decomposition (foundation models data compliance)

break a multi-part question into sub-questions (Lambda invokes Bedrock to decompose), retrieve per sub-question, fuse.

Query transformation (foundation models data compliance)

rewrite a conversational follow-up ("when was that?") into a standalone query ("when was the iPhone 15 released?") using prior chat history.

Function calling / tool use (foundation models data compliance)

define a vector_search tool in your FM tool schema. The FM decides when to call it. Standard for Anthropic Claude tool use, Cohere Command-R, Llama 3.1+, Nova.

Model Context Protocol (MCP) (foundation models data compliance)

open standard for connecting FMs to external tools. AWS supports MCP servers running on Lambda (stateless tools) or ECS (stateful/complex tools). MCP clients in your agent let it discover and call tools without bespoke wiring.

Standardized API patterns (foundation models data compliance)

define a single retrieval API (e.g., POST /retrieve with query, filter, top_k) that wraps Bedrock KB / OpenSearch / Kendra. Clients don't care which backend.

Unit-style tests (foundation models data compliance)

Lambda runs the prompt against a fixture set, checks expected output (regex / JSON schema validation).

Edge-case suites (foundation models data compliance)

Step Functions iterates through difficult inputs (long contexts, adversarial inputs, non-English) and reports pass/fail.

Regression detection (foundation models data compliance)

CloudWatch metric on test pass rate per prompt version; alarm on regressions.

Structured input components (foundation models data compliance)

separate fields with XML tags (, , ) so the model can attend to them clearly.

Output format specifications (foundation models data compliance)

require JSON conforming to a schema; validate post-hoc; reject and retry on schema violation.

Chain-of-thought (CoT) (foundation models data compliance)

ask the model to reason step-by-step before final answer. Improves quality on multi-step problems but increases token usage.

Self-consistency / self-critique (foundation models data compliance)

have the model generate multiple answers and pick the most consistent, or critique its own answer and revise.

Feedback loops (foundation models data compliance)

collect user rating + final outcome; periodically re-evaluate prompts against this dataset.

Prompt Flows (foundation models data compliance)

prompt-centric workflows; non-developer authors; built-in Bedrock integration

Step Functions (foundation models data compliance)

developer-built; needs full AWS service access, complex error handling, long-running execution

Bedrock Prompt Management (foundation models data compliance)

parameterized templates, versions, approval workflows.

Bedrock Guardrails (foundation models data compliance)

orthogonal layer (content filters, denied topics, contextual grounding, sensitive info, word filters).

Bedrock Prompt Flows (foundation models data compliance)

no-code/visual prompt orchestration; pick over Step Functions when prompt-centric and non-dev authors.

Implementation integration

Short-term (in-context) (implementation integration)

conversation history in the prompt itself. Bounded by context window.

Long-term (persistent) (implementation integration)

store conversation history + user state in DynamoDB (low-latency reads), retrieve relevant slices, inject into prompt.

Bedrock AgentCore Memory (implementation integration)

managed memory for agents (semantic + episodic) so you don't reinvent it.

Supervisor + workers (implementation integration)

a coordinator agent dispatches sub-tasks to specialist agents (e.g., research agent, coding agent, summarizer). Combine with AWS Agent Squad.

Pipeline (implementation integration)

agents in sequence, each handing off (e.g., extract → classify → respond).

Voting / ensemble (implementation integration)

multiple agents independently solve the same problem; aggregate.

Model cascading (implementation integration)

route easy queries to a cheap model; escalate hard ones. E.g., Haiku → Sonnet → Opus only on retry. Use API Gateway / Step Functions / Lambda for routing.

Smaller pre-trained models for narrow tasks (implementation integration)

classification, extraction, intent detection often work great with small models or even custom-trained encoders on SageMaker.

Identity federation (implementation integration)

enterprise IdP → IAM Identity Center (formerly AWS SSO) → app roles. Federate ML/FM access without managing IAM users.

Role-based access control (implementation integration)

IAM policies on Bedrock InvokeModel / Knowledge Base actions, scoped per role. Tag-based ABAC for tenant-level access.

Least privilege (implementation integration)

each Lambda / agent role can only invoke specific models, specific Knowledge Bases, specific Guardrails.

AWS Outposts (implementation integration)

rack of AWS infrastructure on-prem. Gives you SageMaker AI / EC2 with same APIs locally - useful when data can't leave premises.

AWS Wavelength (implementation integration)

AWS infra inside telecom carrier networks for low-latency 5G edge.

AWS Local Zones (implementation integration)

out of scope per official guide.

Lambda@Edge / CloudFront Functions (implementation integration)

trigger logic at CloudFront edge for low-latency.

SageMaker Neo (implementation integration)

compile models for edge devices (then deploy to non-AWS edge).

Amazon Bedrock Prompt Flows (implementation integration)

visual workflow builder for prompt chains - good for non-developers building automations.

Amazon Q Business Apps (implementation integration)

build internal GenAI apps over your enterprise data with no code (knowledge base + actions).

Step Functions Workflow Studio (implementation integration)

visual editor for state machines (developer-oriented).

Q Developer for transformation (implementation integration)

Java upgrades, .NET porting

Agentic stack (implementation integration)

Bedrock Agents (managed) → Bedrock AgentCore (production runtime) → Strands Agents (code SDK) → AWS Agent Squad (multi-agent) → Step Functions (custom orchestration).

MCP (implementation integration)

AWS-native tool servers; Lambda for stateless, ECS for stateful, MCP clients in agents.

Reasoning (implementation integration)

CoT, ReAct, plan-and-execute, reflection, tree of thoughts.

Memory (implementation integration)

short (in-context), long (DynamoDB), episodic (vector store), AgentCore Memory (managed).

Safeguards (implementation integration)

Step Functions stopping conditions, Lambda timeouts, IAM boundaries, circuit breakers, Guardrails, output validation.

Multi-agent (implementation integration)

supervisor + workers (AWS Agent Squad), pipelines, ensembles.

HITL (implementation integration)

A2I (review), Ground Truth (labeling), Step Functions wait-for-callback (approval), API Gateway (feedback).

Deployment (implementation integration)

Bedrock on-demand vs Provisioned Throughput vs SageMaker endpoints (real-time / async / serverless / batch / MME).

Fine-tuned Bedrock model = Provisioned Throughput required. (implementation integration)

Model cascading: cheap → expensive escalation; reduces cost.

Enterprise connectivity (implementation integration)

API Gateway (sync), EventBridge (async), AppFlow (SaaS), DataSync (file), DMS (CDC), VPC endpoints (private).

Identity (implementation integration)

IAM Identity Center for federation; IAM RBAC; tag-based ABAC; least privilege.

Hybrid/edge (implementation integration)

Outposts (on-prem), Wavelength (5G edge), Lambda@Edge.

CI/CD pattern (implementation integration)

CodePipeline + CodeBuild + automated tests + Bedrock Model Evaluations + GenAI gateway deploy.

Resilience (implementation integration)

SDK backoff, API Gateway rate limit, circuit breakers, fallback chain, X-Ray traces.

Routing (implementation integration)

static (AppConfig), content-based (Step Functions Choice), metric-based (Lambda+CloudWatch), provider-aware (API Gateway transforms).

Frontend (implementation integration)

Amplify, API Gateway, Cognito.

No-code workflows (implementation integration)

Bedrock Prompt Flows, Q Business Apps.

Business systems (implementation integration)

Lambda+webhook for CRM, Step Functions for doc workflows, Q Business for internal knowledge, Bedrock Data Automation for end-to-end doc understanding.

Troubleshooting (implementation integration)

CloudWatch Logs Insights for prompt analysis, X-Ray for traces, Q Developer for error pattern recognition.

Ai safety security governance

Bedrock Guardrails contextual grounding (ai safety security governance)

dedicated check for response groundedness against provided context. Configurable threshold (e.g., 0.75 = require 75%+ groundedness score).

Knowledge Base for grounding (ai safety security governance)

retrieve facts, model uses them, Guardrails verifies grounding.

Confidence scoring (ai safety security governance)

request the model output a confidence score; reject responses below threshold; route low-confidence to human review (A2I).

Semantic similarity verification (ai safety security governance)

compare model claims against retrieved evidence with embedding similarity.

JSON Schema for structured outputs (ai safety security governance)

require model to output JSON conforming to a schema; deterministic parse + validate; reject malformed.

Text-to-SQL for deterministic results (ai safety security governance)

when the question is data lookup, use the FM to generate SQL, run it deterministically against the DB; the answer becomes facts, not hallucinations.

Least privilege (ai safety security governance)

Lambda execution role can invoke only specific Bedrock model ARNs / Knowledge Base ARNs / Guardrail ARNs.

Resource-based policies (ai safety security governance)

bucket policies restricting which IAM principals can read training data / vector store backups.

Tag-based access control (ABAC) (ai safety security governance)

tag models / KBs / agents with tenant=acme, IAM policy condition aws:ResourceTag/tenant = ${aws:PrincipalTag/tenant} so each tenant can only access its own resources.

IAM Access Analyzer (ai safety security governance)

detect unintended cross-account / public access on Bedrock / SageMaker / S3 resources.

IAM Identity Center (ai safety security governance)

federate enterprise IdP for human access; permission sets per role.

AWS Lake Formation (ai safety security governance)

row-level + column-level + cell-level access control on data lake assets feeding RAG / training. Grant specific columns of a table to specific principals.

Tokenization (ai safety security governance)

replace PII with reversible tokens stored in DynamoDB / KMS; FM sees tokens, app de-tokenizes for the user

Amazon S3 Lifecycle policies (ai safety security governance)

tier to S3 IA / Glacier / delete after N days. Enforce regulatory retention windows.

AWS CloudTrail (ai safety security governance)

who called what API (control plane). Bedrock has data events for InvokeModel - enable to capture per-invocation audit trails.

Bedrock Model Invocation Logs (ai safety security governance)

per-call prompt + response payloads delivered to S3 and/or CloudWatch Logs. Configurable in Bedrock account settings.

NIST AI Risk Management Framework (AI RMF) (ai safety security governance)

ISO/IEC 42001 (AI Management System)

EU AI Act (ai safety security governance)

AWS Cloud Adoption Framework for AI/ML/GenAI (CAF-AI)

AWS Well-Architected Generative AI Lens (ai safety security governance)

AWS Generative AI Lifecycle Operational Excellence framework

CloudWatch confidence metrics (ai safety security governance)

log per-response confidence score; surface to users

Evidence / source attribution (ai safety security governance)

Knowledge Base RetrieveAndGenerate returns citations; show them

Bedrock Agent traces (ai safety security governance)

log thought / action / observation steps; surface to internal users for debugging

Model cards (ai safety security governance)

external documentation of capabilities and limits

Operational efficiency optimization

Bedrock on-demand (operational efficiency optimization)

AWS handles capacity; you handle throttling with backoff. Use Cross-Region Inference for headroom.

Bedrock Provisioned Throughput (operational efficiency optimization)

explicitly buy model units. Estimate from peak_tpm = peak_rps * avg_tokens_per_request.

SageMaker AI endpoints (operational efficiency optimization)

instance count + auto scaling target tracking on InvocationsPerInstance or custom metric.

Custom fine-tuned models on Bedrock require PT (operational efficiency optimization)

factor that into the customization decision.

Concurrent invocations (operational efficiency optimization)

parallelize independent FM calls; respect Provisioned Throughput TPS limits

Token processing optimization (operational efficiency optimization)

shorten outputs (maxTokens); use stop sequences to terminate early

Provisioned Throughput (operational efficiency optimization)

predictable TPS without throttling

Token burst anomaly (operational efficiency optimization)

CloudWatch metric TokensIn per minute, anomaly detector → alarm. Catches runaway loops.

Response drift (operational efficiency optimization)

hash-based or semantic similarity drift in outputs over time. Custom Lambda computes drift, publishes to CloudWatch, alarm on breach.

Cost anomaly (operational efficiency optimization)

AWS Cost Anomaly Detection at the service or tag level (e.g., per Bedrock usage tag). Auto-detection + email / SNS / EventBridge.

Tool call anomaly (operational efficiency optimization)

rate of failed tool calls in an agent; track in CloudWatch; alarm on regression.

Multi-agent coordination tracking (operational efficiency optimization)

each agent emits CloudWatch metrics; correlation IDs in logs to trace cross-agent flows

Performance monitoring (operational efficiency optimization)

OpenSearch / Aurora metrics on query latency, recall, replication lag

Automated index optimization (operational efficiency optimization)

scheduled Lambda to compact / reindex; OpenSearch auto-merges

Data quality validation (operational efficiency optimization)

post-ingestion spot-check against fixtures; CloudWatch metrics on ingestion failures

Drift / staleness (operational efficiency optimization)

scheduled refresh + monitoring of last-sync timestamp

Golden dataset (operational efficiency optimization)

a curated set of inputs with known correct outputs. Run periodically, score outputs, alarm on regression. Detects hallucinations and quality drift.

Output diffing (operational efficiency optimization)

compare current model output against historical outputs for the same input. Alert on semantic drift. Useful when you can't define ground truth but want consistency.

Reasoning path tracing (operational efficiency optimization)

log model thought processes (CoT outputs, Bedrock Agent traces) and analyze for logical errors patterns.

Specialized observability pipelines (operational efficiency optimization)

CloudWatch Logs Insights queries built specifically for prompt analysis (token distribution, response time vs prompt length, error pattern matching).

Testing validation troubleshooting

Relevance (testing validation troubleshooting)

response addresses the question

Factual accuracy (testing validation troubleshooting)

claims match ground truth

Consistency (testing validation troubleshooting)

same input → same / similar output across runs

Fluency (testing validation troubleshooting)

grammatical, readable

Helpfulness (testing validation troubleshooting)

actually solves the user's problem

Tone / style (testing validation troubleshooting)

matches brand voice / register

Safety (testing validation troubleshooting)

no harmful content

Bias / fairness (testing validation troubleshooting)

equal performance across demographic slices

Single-model (testing validation troubleshooting)

test one model on your data.

Multi-model comparison (head-to-head) (testing validation troubleshooting)

run two models, compare metrics or human/judge preferences.

RAG evaluation (testing validation troubleshooting)

specifically for Knowledge Bases - retrieval quality + generation quality.

Canary (testing validation troubleshooting)

deploy new prompt / model to a small fraction of users; compare metrics (latency, cost, quality, error rate)

Token efficiency (testing validation troubleshooting)

avg input tokens, avg output tokens per request

Latency-to-quality ratio (testing validation troubleshooting)

quality score / p95 latency

Cost per successful task (testing validation troubleshooting)

dollar amount / completed-task count

Business outcome metrics (testing validation troubleshooting)

deflection rate, conversion, NPS

Recall@K (testing validation troubleshooting)

fraction of relevant docs in top-K

Precision@K (testing validation troubleshooting)

fraction of top-K that are relevant

MRR (Mean Reciprocal Rank) (testing validation troubleshooting)

1 / rank of first relevant

NDCG (Normalized Discounted Cumulative Gain) (testing validation troubleshooting)

rank-aware relevance

Context relevance (testing validation troubleshooting)

measure of retrieved content's semantic match to query

Retrieval latency (testing validation troubleshooting)

p50, p95 of retrieval call

Faithfulness / groundedness (testing validation troubleshooting)

answer supported by context

Answer relevance (testing validation troubleshooting)

addresses the question

Citation accuracy (testing validation troubleshooting)

cited sources actually appear in retrieved context

Bedrock Knowledge Bases evaluations (testing validation troubleshooting)

built-in eval jobs for retrieval and generation

Task completion rate (testing validation troubleshooting)

what % reach successful final answer

Tool call accuracy (testing validation troubleshooting)

right tool for the step

Tool argument correctness (testing validation troubleshooting)

well-formed args

Reasoning quality (testing validation troubleshooting)

LLM-as-judge on agent traces

Steps to completion (testing validation troubleshooting)

efficiency proxy

Automated reports (testing validation troubleshooting)

Lambda + EventBridge Scheduler emails dashboards as PDFs / markdown to stakeholders

AI-specific output validation Lambda (testing validation troubleshooting)

golden dataset runs scoring hallucination rate + semantic drift

Agentic ai systems

Action groups (agentic ai systems)

bundle related actions backed by Lambda functions or OpenAPI-defined APIs. The agent's "tools."

Knowledge Base association (agentic ai systems)

attach a Bedrock Knowledge Base for RAG within the agent.

Guardrails association (agentic ai systems)

apply input/output safety checks on every model invocation in the agent loop.

Prompt overrides (agentic ai systems)

customize the system prompt for each agent stage (pre-processing, orchestration, post-processing).

Agent versions and aliases (agentic ai systems)

similar to Lambda. Versions are immutable; aliases (PROD, STAGING) point at versions.

Trace (agentic ai systems)

structured trace of agent reasoning, tool calls, observations - critical for debugging and exam scenarios.

Session attributes / session state (agentic ai systems)

per-session memory passed across turns.

Return of control (agentic ai systems)

instead of Bedrock invoking your action Lambda directly, hand control back to the caller to execute the action (useful for client-side actions or async ops).

AgentCore Runtime (agentic ai systems)

secure, isolated execution of agents

AgentCore Memory (agentic ai systems)

managed agent memory (semantic + episodic)

AgentCore Identity (agentic ai systems)

per-agent identity for fine-grained access control

AgentCore Gateway (agentic ai systems)

bridges agents to enterprise tools (MCP, OpenAPI, etc.)

AgentCore Browser (agentic ai systems)

sandboxed browser tool for agents to use the web

AgentCore Code Interpreter (agentic ai systems)

sandboxed code execution tool

AgentCore Observability (agentic ai systems)

traces, metrics, prompts/responses logged

Supervisor + workers (agentic ai systems)

a router agent dispatches to specialist agents

Sequential pipelines (agentic ai systems)

agents in series

Voting / ensemble (agentic ai systems)

Persistent state across agents

MCP server (agentic ai systems)

exposes a set of tools (and resources, prompts)

MCP client (agentic ai systems)

lives in the agent runtime, connects to one or more MCP servers, presents tools to the FM

Bedrock Agent session attributes (agentic ai systems)

per-session key-value state

Step Functions execution input (agentic ai systems)

state passed through state machine

Task completion rate (agentic ai systems)

what % of agent runs reach a successful final answer

Tool call accuracy (agentic ai systems)

is the agent picking the right tool for the task

Tool argument correctness (agentic ai systems)

are the arguments well-formed

Reasoning quality (agentic ai systems)

manual or LLM-as-judge review of trace

Latency per turn (agentic ai systems)

observed at API Gateway / Lambda

Bedrock Agent evaluation (agentic ai systems)

automated evaluation of agent traces

Aws services mapping

What (aws services mapping)

Managed access to foundation models from multiple providers (Anthropic, AI21, Cohere, Meta, Mistral, Stability, Amazon Titan/Nova). The central service for this exam.

Exam roles (aws services mapping)

model invocation (InvokeModel, Converse), streaming (ConverseStream), batch inference, fine-tuning, continued pre-training, Provisioned Throughput, Cross-Region Inference, prompt caching.

Where tested (aws services mapping)

Domains 1, 2, 3, 4, 5 (all).

ML services NOT in scope (aws services mapping)

DeepRacer, DeepComposer, DevOps Guru, Forecast, Fraud Detector, Lookout for Equipment / Metrics / Vision, HealthLake, Monitron, Panorama

Compute NOT in scope (aws services mapping)

Batch, Beanstalk, Lightsail, Snow Family

Database NOT in scope (aws services mapping)

Redshift, Timestream, Keyspaces, QLDB

Other not in scope (aws services mapping)

SES, IoT family, GameLift, Braket, all media services, Direct Connect, Transit Gateway

Bedrock platform deep dive

Chunking strategies (bedrock platform deep dive)

default, fixed-size, hierarchical, semantic, no chunking

Embedding models (bedrock platform deep dive)

Titan v2, Titan Multimodal, Cohere Embed

Vector stores (bedrock platform deep dive)

OpenSearch Serverless (default), Aurora pgvector, MongoDB Atlas, Pinecone, Redis Enterprise, Neptune Analytics

Retrieve API (bedrock platform deep dive)

returns top-K chunks for a query

RetrieveAndGenerate API (bedrock platform deep dive)

retrieve + invoke FM with retrieved context, returns response with citations

Action groups (bedrock platform deep dive)

Lambda functions or OpenAPI-defined APIs as the agent's tools

Agent versions and aliases (bedrock platform deep dive)

Trace of reasoning + tool calls + observations

AgentCore Runtime (bedrock platform deep dive)

secure isolated execution

AgentCore Memory (bedrock platform deep dive)

managed semantic + episodic memory

AgentCore Identity (bedrock platform deep dive)

per-agent IAM-style identity for fine-grained access

AgentCore Gateway (bedrock platform deep dive)

bridges to enterprise tools (MCP, OpenAPI)

AgentCore Browser (bedrock platform deep dive)

sandboxed browser tool

AgentCore Code Interpreter (bedrock platform deep dive)

sandboxed code execution

AgentCore Observability (bedrock platform deep dive)

tracing, metrics, logs

Versioning (bedrock platform deep dive)

immutable versions

Approval workflows (bedrock platform deep dive)

status gates before promotion

Sequential prompt chains (bedrock platform deep dive)

output of one prompt feeds into the next

Pre / post-processing nodes (bedrock platform deep dive)

invoke Lambda or AWS service calls in-flow

Knowledge Base nodes (bedrock platform deep dive)

in-flow retrieval

Prompt Flows (bedrock platform deep dive)

prompt-centric workflows, non-developer authors, built-in Bedrock integration, simpler authoring

Step Functions (bedrock platform deep dive)

developer-built, full AWS service access, complex error handling, long-running

Knowledge Bases (bedrock platform deep dive)

managed RAG; connectors (S3, Web Crawler, Confluence, SharePoint, Salesforce, custom); chunking; embeddings (Titan/Cohere); vector stores (OpenSearch Serverless default, Aurora pgvector, etc.); Retrieve and RetrieveAndGenerate APIs; metadata filters; HYBRID search; reranking.

Bedrock Agents (bedrock platform deep dive)

action groups, KB assoc, Guardrails assoc, prompt overrides, versions/aliases, trace, session state, return of control.

AgentCore (bedrock platform deep dive)

Runtime, Memory, Identity, Gateway, Browser, Code Interpreter, Observability - production runtime.

Prompt Management (bedrock platform deep dive)

parameterized templates, versions, aliases, approval workflows.

Model Evaluation (bedrock platform deep dive)

automatic, human, LLM-as-judge; single or multi-model; RAG-specific.

Data Automation (BDA) (bedrock platform deep dive)

end-to-end PDF/image/audio/video → structured.

Prompt engineering and management

system (prompt engineering and management)

persistent instructions, role, constraints. NOT a turn; shapes all subsequent turns.

user (prompt engineering and management)

the input you want a response to.

assistant (prompt engineering and management)

prior model outputs (when continuing a conversation).

Don't tweak temperature AND top_p simultaneously (prompt engineering and management)

conventional wisdom is to fix one and adjust the other

Drop oldest (prompt engineering and management)

simplest, may lose important context

Summarize-and-replace (prompt engineering and management)

have an FM summarize old turns into a few sentences; insert summary; drop verbatim turns

Sliding window with persistent summary (prompt engineering and management)

maintain a rolling summary that's updated each turn

Episodic vector recall (prompt engineering and management)

drop old turns from prompt but keep them retrievable; retrieve relevant ones at each turn

Variant configurations (prompt engineering and management)

different models, parameters, prompt versions in one logical prompt

Versioning (prompt engineering and management)

immutable versions

Sequential prompt chains (prompt engineering and management)

output of one prompt feeds the next

Conditional branching (prompt engineering and management)

route based on outputs (e.g., classifier → routing)

Reusable Prompt Management nodes (prompt engineering and management)

call existing templates

Lambda nodes (prompt engineering and management)

any AWS service call inline

Knowledge Base nodes (prompt engineering and management)

in-flow retrieval

Agent nodes (prompt engineering and management)

call a Bedrock Agent within the flow

S3 nodes (prompt engineering and management)

read/write objects

Iterator nodes (prompt engineering and management)

loop over arrays

Versioning + aliases (prompt engineering and management)

similar to Lambda

Bedrock Prompt Management (prompt engineering and management)

parameterized templates, versions, aliases, approval, reusable across Agents + Prompt Flows.

Bedrock Prompt Flows (prompt engineering and management)

visual/no-code chains, conditional branching, KB nodes, Lambda nodes, Agent nodes; pick over Step Functions when prompt-centric and non-dev.

Rag architecture deep dive

Auditable (rag architecture deep dive)

you can show which document supported the answer (citations).

Storage / cost (rag architecture deep dive)

1024-dim vectors take 4× the storage of 256-dim. For most enterprise corpora, 512 is a good sweet spot.

Multilingual (rag architecture deep dive)

pick a multilingual model if any documents or queries are non-English.

Domain fit (rag architecture deep dive)

embeddings trained on web text may underperform on legal, medical, code. If you have eval data, test 2-3 candidates.

Euclidean (L2) (rag architecture deep dive)

measures direct distance.

Dot product (rag architecture deep dive)

faster on normalized vectors.

top_k (rag architecture deep dive)

how many candidates to retrieve. 5-20 typical; larger for reranking pipelines.

Bedrock Knowledge Bases (rag architecture deep dive)

searchType: HYBRID in retrieve API

Amazon Rerank (rag architecture deep dive)

Cohere Rerank (multiple versions)

Bedrock Guardrails contextual grounding (rag architecture deep dive)

dedicated check that the response is supported by provided context. Filters out ungrounded/hallucinated responses.

Manual grounding (rag architecture deep dive)

parse model JSON output, validate cited sources actually appear in retrieved chunks.

Recall@K (rag architecture deep dive)

of all relevant docs, how many appear in the top-K retrievals

Precision@K (rag architecture deep dive)

of the top-K retrievals, how many are relevant

MRR (Mean Reciprocal Rank) (rag architecture deep dive)

1 / rank of the first relevant doc

NDCG (Normalized Discounted Cumulative Gain) (rag architecture deep dive)

relevance-weighted ranking quality

Faithfulness / groundedness (rag architecture deep dive)

response is supported by retrieved context

Answer relevance (rag architecture deep dive)

response actually addresses the question

Context relevance (rag architecture deep dive)

retrieved context actually relates to the question

Factual accuracy (rag architecture deep dive)

against ground truth

Bedrock Knowledge Bases evaluations (rag architecture deep dive)

built-in evaluation jobs that score retrieval and generation quality on a labeled eval set.

Bedrock Model Evaluations (rag architecture deep dive)

automated, human, and LLM-as-judge for generation quality.

SageMaker Clarify (rag architecture deep dive)

bias detection and explainability.

Strict deterministic SQL-style queries (rag architecture deep dive)

call the database directly, don't go through an FM.

Real-time computations (rag architecture deep dive)

use code/Lambda, not RAG.

Personalization with structured user state (rag architecture deep dive)

tool calling against an API beats RAG over user records.