AWS GenAI Developer Professional (AIP-C01) Study Guide
A free AWS Certified Generative AI Developer – Professional study guide: Bedrock, RAG and vector stores, Guardrails, AgentCore, prompt caching and evaluation.
Written by an engineer who passed this exam: verify on Credly ↗Exam domains (AIP-C01)
| Foundation Model Integration, Data Management, and Compliance | 31% |
| Implementation and Integration | 26% |
| AI Safety, Security, and Governance | 20% |
| Operational Efficiency and Optimization for GenAI Applications | 12% |
| Testing, Validation, and Troubleshooting | 11% |
Weightings from the official AWS exam guide. Always check it for the current version.
These are my notes for the AWS Certified Generative AI Developer – Professional exam, grouped by topic and checked against the current AWS documentation. Bedrock changes every few months, so I’ve marked the places where my original notes were out of date.
Exam mindset: this is an architecture exam for generative AI. Most questions describe a production problem (cost, latency, hallucinations, data leakage, an agent misusing a tool) and ask for the most managed, least custom fix. If one answer uses a built-in Bedrock feature and another tells you to write Lambda glue to do the same job, the built-in feature is almost always right.
Exam facts
- Code: AIP-C01. Format: 75 questions (65 scored, 10 unscored), multiple choice and multiple response, 180 minutes.
- Cost: 300 USD. Passing score: 750 out of 1,000, with compensatory scoring (you don’t have to pass each domain).
- Out of scope: model training, advanced ML and feature engineering, though practice questions still drift into classic ML (see the end of this guide).
Foundation models and model customization
Customization options in Bedrock
| Method | Data | Use it when |
|---|---|---|
| Supervised fine-tuning | Labeled prompt/response pairs | You need a specific style, format or task behaviour |
| Reinforcement fine-tuning | Prompts plus a reward function (often a Lambda), or existing invocation logs | Quality is easier to score than to write out as labeled examples |
| Distillation | Prompts (a teacher model generates the responses) | You want a smaller, faster, cheaper student model to match a larger teacher on your use case |
| Custom Model Import | Your own weights (for example trained in SageMaker AI) | You trained or tuned an open-weight architecture elsewhere and want serverless Bedrock inference |
- Only some models can be fine-tuned. The current list covers Amazon Nova and Titan models, several Meta Llama models and an older Claude Haiku, mostly in
us-east-1orus-west-2. Always check the support table instead of assuming. - Continued pre-training (unlabeled domain text) appears in older material but is no longer on Bedrock’s list of customization methods. For sensitive training data, run jobs in your VPC with PrivateLink and a customer-managed KMS key.
- Custom Model Import reads the weights from S3 through a Bedrock service role (KMS encryption supported) and serves them on demand through
InvokeModel. Imported models can’t use batch inference. - A Legacy model blocks new fine-tuning jobs, new Provisioned Throughput and new customers. After its end-of-life date, calls fail. Watch the
LegacyModelInvocationsmetric.
Inference profiles and routing
My notes described this as “regional vs cross-Region”, which is no longer accurate. Bedrock now has:
| Type | Who creates it | What it does |
|---|---|---|
| Geographic cross-Region profile | AWS (system-defined) | Routes within a geography such as US, EU or APAC. Use it for data-residency requirements |
| Global cross-Region profile | AWS (system-defined) | Routes to any supported commercial Region, at roughly 10% lower price. SCPs must allow aws:RequestedRegion = unspecified |
| Application inference profile | You | Wraps one Region or a cross-Region profile so you can tag it for cost allocation and track usage per application |
- Cross-Region inference has no extra routing charge. You pay the price of the Region you call from.
- Inference profiles don’t support Provisioned Throughput.
- Intelligent prompt routing gives you one endpoint that routes each request between models in the same family based on predicted response quality, so simple prompts go to the cheaper model.
- Latency-optimized inference (
performanceConfig = {"latency": "optimized"}) improves time to first token and output tokens per second on supported models. It’s still a preview feature, and once you exceed its quota, requests fall back to standard latency and pricing.
Retrieval Augmented Generation with Knowledge Bases
Chunking and parsing
- Default chunking splits text into chunks of roughly 300 tokens. Fixed-size chunking lets you set the size and overlap.
- Hierarchical chunking creates parent and child chunks. The search matches the small child chunks for precision, then returns the parent chunk to the model for context.
- Semantic chunking uses a foundation model to split on meaning instead of token count. It’s better for prose, but you pay for the extra model calls at ingestion.
- Parsing for PDFs, tables and images can use the default parser, a foundation model as the parser, or Bedrock Data Automation.
Metadata and filtering
- Put a
<filename>.metadata.jsonfile next to each source document with its attributes (department, date, access level). At query time, metadata filters narrow results before they reach the model. - For CSV sources, the metadata file declares which columns hold content to embed and which are metadata, so the metadata columns aren’t chunked into the text.
Retrieval quality
- Hybrid search combines vector similarity with keyword matching. It helps with exact terms such as product codes and names, which pure semantic search often misses.
- Rerankers (Amazon and Cohere models) score each retrieved chunk against the query and reorder the results. Use one as part of a Knowledge Base query, or call the
RerankAPI on any set of documents. - Smaller embedding dimensions cut storage and search cost. For example, Titan Text Embeddings V2 supports 1,024, 512 or 256 dimensions. The trade-off is retrieval accuracy, so test before you shrink.
Choosing a vector store
Bedrock Knowledge Bases support OpenSearch Serverless, OpenSearch Service managed clusters, Aurora PostgreSQL (pgvector), Neptune Analytics, Amazon S3 Vectors, MongoDB Atlas, Pinecone and Redis Enterprise Cloud.
| Priority | Pick | Why |
|---|---|---|
| Lowest cost, huge corpus, infrequent queries | S3 Vectors | Pay for storage and queries, no cluster. Higher query latency |
| Search features and tuning | OpenSearch (Serverless or managed) | Hybrid search, analyzers, k-NN tuning. Serverless is the low-ops default |
| Data already in SQL, need transactions | Aurora PostgreSQL + pgvector | Vectors next to relational data and metadata in one database |
| Relationships matter (fraud rings, supply chains) | Neptune Analytics | Graph traversal plus vector search (GraphRAG) |
- Binary vectors are only supported in OpenSearch (Serverless and managed).
- My notes listed Amazon Kendra as the “permissions-first” choice because of its document-level ACLs. Kendra is no longer open to new customers, and AWS points them to Bedrock Knowledge Bases instead, so treat Kendra answers with suspicion unless the scenario says the company already runs it.
OpenSearch details that show up in questions
- Engines: FAISS and Lucene. NMSLIB is deprecated in recent OpenSearch versions. Exact k-NN is accurate but slow. ANN uses HNSW (fast and accurate, but RAM-hungry) or IVF (better for very large datasets, trading recall for memory).
- HNSW tuning:
m(edges per node: more recall, more memory),ef_construction(better graph, slower indexing),ef_search(more recall, slower queries). - Sharding: vector search prefers fewer, larger shards. Too many or unbalanced shards cause JVM memory pressure: delete old indices and reduce the shard count.
- Storage tiers: hot (instance store or EBS), UltraWarm (S3-backed, read-mostly data) and cold (cheapest). Index State Management (ISM) policies move indices between tiers, cut replicas, delete or snapshot them. Rollups summarize old data.
- OpenSearch Serverless collection types are search, time series and vector search. Serverless doesn’t scale to zero, so idle collections still cost money.
- The neural plugin with an ML connector to Bedrock lets OpenSearch generate embeddings itself at ingestion and query time, which is RAG on OpenSearch without Knowledge Bases.
- For multi-domain corpora, use separate indices (each with its own embedding model and tuning) and a small summary index or a model to route queries.
S3 Vectors limits worth knowing
- Up to 500 vectors per
PutVectorsorDeleteVectorscall, and up to 2,500 vectors per second inserted or deleted per index. Batch writes and send concurrent requests. - Query rates per index are limited: retry on HTTP 429, spread load across multiple indexes (also good for tenant isolation), and mark metadata you never filter on as non-filterable.
Knowledge Bases re-sync with ingestion jobs. For self-managed stores, schedule an EventBridge rule that starts a rebuild job to re-embed, validate the new index and swap it in.
Agents and orchestration
Bedrock Agents
- Action groups define the tools an agent can call (an OpenAPI schema or function definitions backed by Lambda, or return of control to your application). Attaching a Knowledge Base to the agent gives you agentic RAG.
- You can enable the built-in code interpreter so the agent can write and run code in a sandbox.
- Traces show each step:
PreProcessing,Orchestration,PostProcessing,CustomOrchestration,RoutingClassifier,FailureandGuardrail. Turn on the trace first when an agent calls the wrong tool.
Amazon Bedrock AgentCore
AgentCore is the platform for running agents built with any framework (Strands Agents, LangGraph, CrewAI, LlamaIndex, OpenAI Agents SDK) and any model:
| Component | What it’s for |
|---|---|
| Runtime | Serverless hosting for agents and MCP servers, packaged as container images in ECR. Each session runs in its own isolated microVM, and long-running async work is supported |
| Memory | Short-term (events within a session) and long-term memory records extracted by strategies (user preferences, semantic facts, session summaries) |
| Gateway | Turns Lambda functions, OpenAPI and Smithy APIs into MCP tools, handles OAuth for the targets, and offers semantic tool selection |
| Identity | Agent identities and credential vault, with inbound auth from your IdP and outbound OAuth to services like GitHub, Slack and Salesforce |
| Policy | Deterministic, deny-by-default rules written in natural language or a Cedar-compatible policy language. It plugs into Gateway and checks every tool call before it runs |
| Evaluations | Built-in and custom LLM-as-a-judge evaluators at session, trace or tool-call level. Results go to CloudWatch |
| Observability | OpenTelemetry traces and metrics in CloudWatch GenAI observability |
- My notes said Runtime runs on ECS. It doesn’t: AWS runs your container serverlessly in per-session microVMs.
agentcore import-agent(starter toolkit CLI) converts an existing Bedrock Agent into framework code (for example Strands) that you can deploy to AgentCore Runtime.- Strands Agents is AWS’s open-source SDK built around a single agent loop with tools. Agent Squad focuses on routing between agents.
- When evaluating agents, sample sessions, because every judge call costs tokens. Use a different model as the judge than the one the agent runs on.
Workflows
- Bedrock Flows (formerly Prompt Flows) is a visual workflow builder that links prompts, models, Knowledge Bases, Lambda functions and conditions, then deploys them as immutable versions behind aliases. Prompts from Prompt Management can be versioned and used as nodes.
- Step Functions integrates directly with Bedrock (
InvokeModel,CreateModelCustomizationJob) and can pass a guardrail with the invocation. Watch the 256 KiB limit on state input and output: store large payloads in S3 or DynamoDB and pass a reference. - Circuit breaker: Step Functions, Lambda and a DynamoDB status table stop calling a failing model and route to a fallback model until it recovers.
- API Gateway in front of models adds per-client usage plans and throttling and request validation (a JSON schema can cap prompt size).
AI safety, security and governance
Bedrock Guardrails
| Policy | Catches |
|---|---|
| Content filters | Hate, insults, sexual, violence and misconduct in text and images, with adjustable strength |
| Prompt attack (content filter category) | Jailbreaks, prompt injection and prompt leakage |
| Denied topics | Subjects you define in natural language (for example investment advice) |
| Word filters | Exact words and phrases, plus a managed profanity list |
| Sensitive information filters | PII and custom regex. You can block or mask it |
| Contextual grounding checks | Responses not supported by the retrieved source (grounding) or that don’t answer the question (relevance), each with a threshold |
| Automated Reasoning checks | Responses that break formal rules from a policy document you upload (eligibility, compliance). Created with CreateAutomatedReasoningPolicy |
- Use the
ApplyGuardrailAPI to run a guardrail without invoking a model, for example on SageMaker or third-party model output, or on text before you index it. - Enforce guardrails centrally with the
bedrock:GuardrailIdentifierIAM condition key: denyInvokeModel/Converseunless a specific guardrail and version is attached. Put the deny in an SCP and deploy the guardrail to every account with CloudFormation StackSets. - For regulated data, add redaction around the endpoint (Lambda pre- and post-processing with Comprehend PII detection or regex), and ideally at ingestion too.
Network and data protection
- Reach Bedrock and SageMaker AI through VPC interface endpoints. Run SageMaker training and hosting with
EnableNetworkIsolation=trueso containers make no outbound calls, and restrict notebook presigned URLs withaws:SourceIp. - Use customer-managed KMS keys throughout. Model invocation logging (CloudWatch Logs or S3) records prompts and responses, and CloudTrail records API calls.
Responsible AI
- Bias: clarify ambiguous prompts, ask for diversity in the system prompt, rebalance or synthesize training data, and check outputs for imbalance.
- Content moderation: Comprehend toxicity detection for text, Rekognition
DetectModerationLabelsfor images (with custom moderation adapters for your own categories), and Rekognition Custom Labels to detect your own logos or products.
Cost, performance and monitoring
Token and cost control
- The
CountTokensAPI estimates the input token count before you call the model, and it’s free. - CloudWatch runtime metrics include
Invocations,InvocationLatency,InvocationThrottles,InvocationClientErrors,InvocationServerErrors,InputTokenCount,OutputTokenCountandOutputImageCount. Throttled requests don’t count as invocations or errors. - Cut tokens by trimming context, capping output with
maxTokens, and compressing prompts (a small model summarizes, the large model answers). - Batch inference (JSONL in S3, results back in S3) is cheaper for work that isn’t interactive. Plan capacity from tokens per minute and requests per minute with Service Quotas. Request an increase, or buy Provisioned Throughput for steady high volume or custom models.
Prompt caching vs semantic caching
| Prompt caching | Semantic caching | |
|---|---|---|
| What’s cached | A prompt prefix (tools, system prompt, documents) inside Bedrock | Whole responses, keyed by the prompt’s embedding |
| Model still called? | Yes, every request | No on a cache hit |
| Where | Built into Bedrock (Converse, InvokeModel) and Prompt Management |
Your own store: ElastiCache (Valkey), MemoryDB or OpenSearch |
| Best for | Long, repeated context such as a chat over one document | Many users asking near-identical questions |
- Explicit caching uses cache checkpoints. Prompts are processed in the order
tools→system→messages, and the model’s minimum token count (512 to 4,096 depending on the model) applies to the cumulative prefix before each checkpoint, not to each section. A checkpoint below the minimum doesn’t fail, it just isn’t cached. - Put static content first and variable content last. Any change to the prefix is a cache miss.
- The cache has a TTL (commonly five minutes) that resets on each hit. Cache writes can cost more than normal input tokens, and reads cost much less.
- For semantic caching, tune the similarity threshold carefully: too low returns wrong answers, too high gives few hits.
Hosting custom models on SageMaker AI
| Option | Limits | Use it for |
|---|---|---|
| Real-time endpoint | Short requests (60-second default timeout) | Interactive inference |
| Asynchronous inference | Payloads up to 1 GB, processing up to one hour, scales to zero | Long jobs that still need a request/response pattern |
| Batch transform | Offline, no persistent endpoint | Scoring whole datasets |
| Inference components | Per-model scaling policies on shared instances | Several large models on one endpoint |
- Model servers include DJL Serving, TorchServe and NVIDIA Triton. Tensor parallelism shards a large model’s weights across GPUs.
- Production variants split live traffic by weight (
InitialVariantWeightinCreateEndpointConfig; weights 2 and 1 send two-thirds and one-third). Shadow variants receive a copy of traffic, and their responses are logged but never returned. For a gradual rollout with automatic rollback, use deployment guardrails (canary or linear traffic shifting), not a multi-model endpoint or a shadow test. - SageMaker Neo compiles models for specific hardware. Deploy them to IoT Greengrass for inference at the edge without constant connectivity.
A/B testing prompts and settings
My notes recommended CloudWatch Evidently for A/B testing model settings. AWS discontinued Evidently in October 2025. Use AppConfig feature flags to split traffic between prompt versions or inference parameters, or AgentCore optimization for agent prompts and tool descriptions.
Testing, evaluation and troubleshooting
Metrics
- ROUGE measures recall of overlapping n-grams against a reference (ROUGE-1 for unigrams, ROUGE-2 for bigrams, ROUGE-L for longest common subsequence). Use it for summarization.
- BLEU measures precision of n-grams against reference translations, with a brevity penalty. Use it for translation. It says little about fluency.
- BERTScore compares contextual embeddings of candidate and reference, so it rewards paraphrases that n-gram metrics miss.
Bedrock Evaluations
- Model evaluation jobs: automatic (built-in datasets and metrics such as accuracy, robustness and toxicity), LLM-as-a-judge (correctness, completeness, faithfulness, helpfulness, coherence, relevance, refusal, harmfulness, stereotyping) and human review.
- RAG evaluation scores a Knowledge Base on retrieval quality (context relevance and coverage) and on generation quality, including faithfulness to the retrieved text.
Troubleshooting map
| Symptom | First thing to check |
|---|---|
| Hallucinations in RAG answers | Retrieval quality (chunking, hybrid search, reranker), then contextual grounding checks |
ThrottlingException |
Quotas, retries with backoff, cross-Region inference, Provisioned Throughput |
| Agent calls the wrong tool | Agent trace, the action group descriptions, and Gateway semantic tool selection |
| Drift in a SageMaker model | Model Monitor with data capture and a baseline. Use Clarify for bias and feature-attribution drift |
Classic ML that still appears
Practice questions often borrow from the ML Engineer exam, so know these:
- Overfitting (training loss falls while validation accuracy stays low): add L2 regularization, data augmentation or early stopping. More epochs or a higher learning rate make it worse.
- Class imbalance: oversampling, undersampling, SMOTE (synthetic minority samples) or class weights.
- Tuning: Hyperband and
TrainingJobEarlyStoppingType=AUTOstop weak jobs early. Warm start withTRANSFER_LEARNINGreuses earlier results when the data changed.IDENTICAL_DATA_AND_ALGORITHMassumes nothing changed. - Comprehend topic modeling (LDA) is no longer available to new customers.
- Transcribe custom vocabularies and custom language models handle domain terms. Lex custom slot types (with synonyms) handle varied user input. AppFlow pulls SaaS data (Salesforce, Slack) into S3 for ingestion.
Final exam tips
- Bedrock first: a managed Bedrock feature beats custom Lambda code.
- Read for the constraint: data residency means geographic, not global, inference profiles. Lowest cost for a huge corpus means S3 Vectors. Identical repeated questions means semantic caching, not prompt caching.
- Hallucination questions are usually about retrieval or grounding checks, not fine-tuning. Fine-tuning changes behaviour and style. RAG supplies facts.
- Check whether a service in an answer is still offered to new customers. Kendra, Evidently and Comprehend topic modeling all appear in older practice questions.
- For “who can call which model with which guardrail” across accounts, the answer is SCPs with
bedrock:GuardrailIdentifierplus StackSets, not a per-team convention.
Frequently asked questions
What is the exam code for the AWS Generative AI Developer Professional?
The exam code is AIP-C01. It has 75 questions (65 scored and 10 unscored) in 180 minutes, costs 300 USD, and you need a scaled score of 750 out of 1,000 to pass.
How hard is the AWS Certified Generative AI Developer – Professional exam?
It is a professional-level exam with long scenario questions. Most candidates find it harder than the AI Practitioner and Machine Learning Engineer – Associate because answers depend on exact Bedrock behaviour: which chunking strategy fits, which Guardrails policy catches a problem, or which inference profile meets a data-residency rule.
Do I need the AI Practitioner before the Generative AI Developer Professional?
No certification is required. AWS recommends two or more years of building production applications and one year of hands-on generative AI work. The AI Practitioner or Machine Learning Engineer – Associate are useful stepping stones if you are new to AI on AWS.
Is SageMaker on the AWS Generative AI Developer exam?
Yes, but less than Bedrock. Expect questions on SageMaker AI endpoint types (real-time, asynchronous, batch transform), production and shadow variants, Model Monitor and Clarify, and importing SageMaker-trained models into Bedrock with Custom Model Import. Model training itself is officially out of scope.