AWS AI Practitioner (AIF-C01) Domain 2: Fundamentals of Generative AI
Domain 2 is 24% of the AIF-C01 exam. Learn tokens, embeddings, transformers, diffusion models, context engineering, agents, MCP, Amazon Bedrock, AgentCore and GenAI cost trade-offs, with 10 practice questions.

AWS AI Practitioner (AIF-C01) study series: all 10 posts
- Chapter 1: Fundamentals of AI and ML Explained
- Chapter 2: Fundamentals of Generative AI (you are here)
- Chapter 3: Applications of Foundation Models (RAG, Prompting, Fine-Tuning)
- Chapter 4: Guidelines for Responsible AI
- Chapter 5: Security, Compliance and Governance for AI
- Mock Exam 1: 50 Practice Questions with Answers
- Mock Exam 2: 50 Practice Questions with Answers
- Mock Exam 3: 50 Practice Questions with Answers
- Mock Exam 4: 50 Brand-New Practice Questions
- Mock Exam 5: 50 Brand-New Practice Questions
Generative AI is the second-heaviest domain on the AWS Certified AI Practitioner (AIF-C01) exam: 24% of scored content, or about 12 questions. This post covers how GenAI works, what it’s good and bad at, the agentic AI concepts newly added to the exam, and the AWS services for building GenAI applications.
It’s part 2 of our free AIF-C01 study series and maps to three exam tasks:
- Task 2.1: Explain the basic concepts of generative AI.
- Task 2.2: Understand the capabilities and limitations of GenAI for solving business problems.
- Task 2.3: Describe AWS infrastructure and technologies for building GenAI applications.
2.1 Core generative AI concepts
| Concept | Plain-language definition |
|---|---|
| Token | The unit of text a model reads and writes. Roughly ¾ of an English word; 1,000 tokens ≈ 750 words. Pricing and context limits are measured in tokens. |
| Context window | The maximum number of tokens (input + output) a model can handle in one request. |
| Chunking | Splitting long documents into smaller pieces before embedding them, so retrieval returns focused passages. |
| Embedding | A numeric vector that captures the meaning of text, images or other data. Similar meanings produce vectors that sit close together. |
| Vector | An ordered list of numbers (the embedding), stored and searched in a vector database using measures such as cosine similarity. |
| Prompt engineering | Crafting the input to a model to get better output. |
| Transformer | The neural-network architecture behind modern LLMs. Self-attention weighs how every token relates to every other token, processing sequences in parallel. |
| Foundation model (FM) | A large model pre-trained on broad data that can be adapted to many tasks. LLMs are one type of FM. |
| Multi-modal model | A model that accepts or produces more than one data type (text, image, audio, video). |
| Diffusion model | A model that generates images (or audio or video) by learning to remove noise step by step, starting from random noise. |
Generative AI use cases
Text summarization, AI assistants and chatbots, customer-service agents, translation, code generation, semantic search, recommendation engines, and image, video and audio generation (marketing visuals, product mock-ups, synthetic voice).
The foundation model lifecycle
- Data selection: gather and curate massive, diverse training data.
- Model selection: choose the architecture or an existing FM.
- Pre-training: self-supervised training on huge unlabeled datasets. Very expensive; done by model providers.
- Fine-tuning: adapt the model to tasks or domains with smaller, often labeled datasets.
- Evaluation: benchmarks, human review, automated metrics.
- Deployment: serve the model through an API or endpoint.
- Feedback: collect user and monitoring feedback to improve the next iteration.
Token-based pricing
Most FMs on Amazon Bedrock charge per input token and per output token, and output tokens usually cost more. Costs rise with longer prompts, documents stuffed into context, longer answers and more requests. To control cost:
- Shorten prompts and remove unnecessary context.
- Cap the maximum output length.
- Use smaller models where quality allows.
- Use prompt caching for repeated context.
- Use batch inference for non-urgent workloads (lower price).
Longer inputs and outputs also increase latency.
Context engineering
Context engineering is deciding what information goes into the model’s context window and how it’s structured: system instructions, retrieved documents (RAG), conversation history, tool definitions and results, and memory. The context window is finite and every token costs money, so good context engineering supplies the most relevant information in the fewest tokens. It goes beyond writing one prompt to designing the whole information flow of an application or agent.
Agentic AI concepts

An AI agent combines an FM with the ability to reason about a goal, plan steps, use tools (APIs, databases, code execution, web search), observe results and iterate until the task is done.
- Tool usage: the model decides which external function to call and with what inputs; the application executes it and returns the result.
- Memory management: short-term memory holds the current session’s context; long-term memory persists facts and preferences across sessions.
- Workflow orchestration: coordinating the sequence of model calls, tool calls, branching, retries and human approvals.
- Model Context Protocol (MCP): an open standard for how agents connect to external tools and data. An MCP server exposes tools and data in a consistent format, so any MCP-compatible agent can use them without custom integration code. Think of it as a “USB-C port” for AI tools.
Multi-agent systems

- Supervisor (orchestrator–worker): a coordinator agent breaks down the task and delegates to specialist agents.
- Sequential (pipeline): agents hand off work in a fixed order (research → draft → review).
- Parallel: agents work at the same time and their results are merged.
- Hierarchical / peer-to-peer (swarm): agents communicate directly or in layered teams.
Agents coordinate by exchanging messages or shared state, or through agent-to-agent protocols such as A2A.
2.2 Capabilities and limitations of GenAI
Advantages: adaptability (one model, many tasks), responsiveness (real-time answers), natural conversational interfaces, content generation at scale, and simplicity (often no training needed).
Disadvantages:
- Hallucinations: confident but false or fabricated output.
- Interpretability: it’s hard to explain why the model produced an answer.
- Inaccuracy: outdated knowledge (training cutoff), math and reasoning errors.
- Nondeterminism: the same prompt can produce different outputs, which complicates testing and compliance.
- Also bias, toxicity, IP and privacy concerns, and cost at scale.
Selecting a GenAI model
Weigh model type and modality, performance requirements (quality, accuracy), capabilities (reasoning, tool use, languages, context length), constraints (data residency, on-premises needs), compliance, cost, latency and model size. Bigger isn’t always better: a smaller model can be faster and cheaper with acceptable quality.
Measuring business value
Measure GenAI with business outcomes: ROI, efficiency (time saved per task), conversion rate, average revenue per user (ARPU), customer lifetime value (CLV), accuracy and cross-domain performance (how well one model handles varied tasks).
2.3 AWS infrastructure and technologies for GenAI
| Service | What it is | Choose it when |
|---|---|---|
| Amazon Bedrock | Fully managed, serverless access to FMs from Amazon (Nova) and third parties (Anthropic, Meta, Mistral, Cohere, AI21, Stability AI and others) through one API | You want to use or customize FMs without managing infrastructure |
| Amazon Nova | Amazon’s own FM family (text, multi-modal, image and video generation, speech) in Bedrock | You want cost-effective, fast Amazon-built models |
| Amazon SageMaker AI | Full ML platform to build, train, fine-tune and host any model | You need deep control, custom training or your own hosting |
| SageMaker JumpStart | Hub of pre-trained models and solution templates, deployable in a few clicks | You want to deploy and fine-tune open models on infrastructure you control |
| Amazon Bedrock AgentCore | Managed services to deploy and operate agents securely at scale: Runtime, Memory, Gateway, Identity, Policy, Observability, plus built-in Code Interpreter and Browser tools | You need production infrastructure for agents built with any framework or model |
| Strands Agents | AWS open-source SDK for building agents in a few lines of code, model-driven | Developers building custom agents (often deployed on AgentCore) |
| Kiro | Agentic IDE using spec-driven development | Developers want AI-assisted coding from requirements to implementation |
| Amazon Quick | Agentic workspace for business users: BI dashboards (Quick Sight), research, flows and automation | Business users want AI answers and automation without coding |
Key Amazon Bedrock features: Knowledge Bases (managed RAG), Agents, Guardrails, Model Evaluation, Prompt Management, Flows, model customization (fine-tuning, continued pre-training, distillation), batch inference and Provisioned Throughput.
Why use AWS for GenAI?
- Advantages of AWS GenAI services: accessibility and a lower barrier to entry (no ML expertise or GPUs needed), efficiency, pay-as-you-go cost, speed to market.
- Benefits of AWS infrastructure: security (encryption, IAM, VPC isolation, PrivateLink), compliance (certifications and AWS Artifact reports), the shared responsibility model and safety controls (Guardrails).
Exam favorite: in Amazon Bedrock, your prompts and data are not used to train the base models and are not shared with model providers.
Cost trade-offs
| Option | Trade-off |
|---|---|
| On-demand (pay per token) | No commitment; best for variable or low volume; subject to throughput quotas |
| Batch inference | Lower cost for large, non-urgent jobs; results aren’t real time |
| Provisioned Throughput | Reserved, guaranteed capacity for consistent high volume; hourly charge with a term commitment; required to serve most custom (fine-tuned) models |
| Custom models | Better task fit, but training cost plus hosting cost |
| Cross-Region inference | Higher availability and throughput by routing across Regions; check data residency |
Other trade-offs: responsiveness (lower latency usually costs more), availability and redundancy (multi-Region adds cost), performance (larger models cost more per token) and regional coverage (not every model is offered in every Region).
Domain 2 cheat sheet
- Embeddings = meaning as numbers, stored in vector databases for similarity search.
- Images from noise = diffusion. Understanding and generating text = transformer LLM.
- Hallucination is the signature GenAI risk; nondeterminism complicates testing.
- Cost scales with tokens: shorter prompts, smaller models, caching, batch.
- Consistent high volume or a custom model = Provisioned Throughput.
- MCP standardizes how agents connect to tools; AgentCore runs agents in production; Strands builds them.
- Bedrock doesn’t use your data to train base models.
Practice questions (with answers)
Answer all 10 first, then open each answer to check your reasoning. Multi-select questions need every correct option.
Question 1. What is an embedding?
- A. A compressed copy of a model
- B. A numeric vector representing the semantic meaning of data
- C. A prompt template
- D. A security token for API access
Show answer and explanation
Answer: B. An embedding is a vector of numbers that captures meaning, so semantically similar items are close together in vector space.
Question 2. A marketing team wants to generate product images from text descriptions. Which model type is best suited?
- A. Diffusion model
- B. Linear regression
- C. K-means clustering
- D. Recurrent classifier
Show answer and explanation
Answer: A. Diffusion models generate images by iteratively removing noise, guided by a text prompt.
Question 3. A chatbot gives a customer a confident but entirely made-up return policy. What is this called?
- A. Overfitting
- B. Hallucination
- C. Data drift
- D. Prompt caching
Show answer and explanation
Answer: B. Hallucination is plausible-sounding output that is false or not grounded in source data.
Question 4. (Multi-select) A company’s Bedrock bill is rising. Which TWO actions directly reduce token-based inference cost? (Choose two.)
- A. Shorten prompts and remove unnecessary context
- B. Increase the temperature setting
- C. Use a smaller model that meets quality needs
- D. Enable AWS CloudTrail
- E. Increase the maximum output length
Show answer and explanation
Answer: A and C. Fewer tokens and cheaper per-token models reduce cost. Temperature affects randomness, not price; a higher output cap can increase cost.
Question 5. A company runs a fine-tuned model in Amazon Bedrock with steady, high request volume and needs guaranteed capacity. Which pricing option fits?
- A. On-demand
- B. Batch inference
- C. Provisioned Throughput
- D. Spot Instances
Show answer and explanation
Answer: C. Provisioned Throughput reserves dedicated capacity and is typically required to serve custom models in Bedrock.
Question 6. What is the main purpose of the Model Context Protocol (MCP)?
- A. Encrypting model weights
- B. Standardizing how AI agents connect to external tools and data sources
- C. Compressing context windows
- D. Scoring model outputs
Show answer and explanation
Answer: B. MCP is an open standard that lets agents discover and use tools and data through a consistent interface, removing the need for custom integrations.
Question 7. A team wants a managed, secure runtime with session memory, identity, and observability to run AI agents in production, regardless of the agent framework. Which AWS offering fits?
- A. Amazon Bedrock AgentCore
- B. Amazon Lex
- C. AWS Lambda alone
- D. Amazon Polly
Show answer and explanation
Answer: A. Amazon Bedrock AgentCore provides managed runtime, memory, gateway, identity, policy, and observability for agents built with any framework or model.
Question 8. In a multi-agent system, one coordinator agent breaks a task into subtasks and assigns them to specialist agents. Which pattern is this?
- A. Sequential
- B. Supervisor (orchestrator–worker)
- C. Swarm
- D. Single-shot
Show answer and explanation
Answer: B. Supervisor. A central orchestrator delegates to and combines results from worker agents.
Question 9. Which statement about data privacy in Amazon Bedrock is correct?
- A. Prompts are shared with model providers to improve their models
- B. Customer prompts and outputs are not used to train the base FMs
- C. Data is always stored in us-east-1
- D. Bedrock requires customers to manage GPU instances
Show answer and explanation
Answer: B. Bedrock does not use customer inputs or outputs to train base models or share them with model providers.
Question 10. Which is a key disadvantage of GenAI that makes automated testing harder?
- A. Determinism
- B. Nondeterminism
- C. Low latency
- D. Structured outputs
Show answer and explanation
Answer: B. Nondeterminism. The same input can yield different outputs, so tests must evaluate quality ranges rather than exact matches. PART 2 Building with foundation models
Frequently asked questions
Is agentic AI really on the AIF-C01 exam?
Yes. Exam guide version 1.2 adds agents, tool use, memory, MCP, multi-agent patterns, Amazon Bedrock AgentCore, Strands Agents and Kiro.
What’s the difference between Bedrock Agents and AgentCore?
Bedrock Agents is a managed way to build an agent inside Bedrock with action groups and knowledge bases. AgentCore is a set of services for running and operating agents built with any framework or model in production.
How do I estimate token counts?
Use the rule of thumb that 1,000 tokens is about 750 English words, so a 1,500-word document is roughly 2,000 tokens.
Ready to test yourself? Take a full, timed AIF-C01 mock exam once you’ve finished all five chapters.
← Previous: AWS AI Practitioner (AIF-C01) Domain 1: Fundamentals of AI and ML Explained
This is an independent study guide, not produced, endorsed or sponsored by Amazon Web Services. Practice questions are original and aren’t actual exam questions. AWS services change often, so check the AWS documentation and the official AIF-C01 exam guide before you rely on details here.