Review sheet
Fundamentals of GenAI
The main points of this domain on a few screens, to reread before the exam.
2.1Core ideas
- Token: a piece of text. Models read, write and bill in tokens.
- Context window: the most tokens in one request, input plus output.
- Embedding: meaning stored as a vector. Similar meaning, close vectors.
- Chunking: split documents before embedding. Small chunks match sharply, large ones keep context.
- Foundation model (FM): pre-trained on broad data, used for many tasks.
- LLM: an FM for text. It predicts the next token. Transformers use attention.
- Multi-modal model: handles more than one data type, such as text and images.
- Diffusion model: makes an image by removing noise step by step.
Token
- A piece of text. The unit of reading, writing and billing
Context window
- Max tokens in one request: input plus output
Embedding and vector
- Meaning as numbers. Similar meaning, close together
Chunking
- Split documents before embedding
Foundation model
- Pre-trained on broad data, adapted to many tasks
LLM and transformer
- Predicts the next token. Attention weighs context
Diffusion model
- Builds an image by removing noise
MCP
- Open standard that connects agents to tools and data
| Idea | In a few words |
|---|---|
| Token | A piece of text. The unit of reading, writing and billing |
| Context window | Max tokens in one request: input plus output |
| Embedding and vector | Meaning as numbers. Similar meaning, close together |
| Chunking | Split documents before embedding |
| Foundation model | Pre-trained on broad data, adapted to many tasks |
| LLM and transformer | Predicts the next token. Attention weighs context |
| Diffusion model | Builds an image by removing noise |
| MCP | Open standard that connects agents to tools and data |
1 / 2
Token
- A piece of text. The unit of reading, writing and billing
Context window
- Max tokens in one request: input plus output
Embedding and vector
- Meaning as numbers. Similar meaning, close together
Chunking
- Split documents before embedding
| Idea | In a few words |
|---|---|
| Token | A piece of text. The unit of reading, writing and billing |
| Context window | Max tokens in one request: input plus output |
| Embedding and vector | Meaning as numbers. Similar meaning, close together |
| Chunking | Split documents before embedding |
2 / 2
Foundation model
- Pre-trained on broad data, adapted to many tasks
LLM and transformer
- Predicts the next token. Attention weighs context
Diffusion model
- Builds an image by removing noise
MCP
- Open standard that connects agents to tools and data
| Idea | In a few words |
|---|---|
| Foundation model | Pre-trained on broad data, adapted to many tasks |
| LLM and transformer | Predicts the next token. Attention weighs context |
| Diffusion model | Builds an image by removing noise |
| MCP | Open standard that connects agents to tools and data |
2.1Use cases, lifecycle and cost
- Use cases: image, video and audio generation, summarization, assistants, translation, code, service agents, search, recommendations.
- FM lifecycle: data selection, model selection, pre-training, fine-tuning, evaluation, deployment, feedback.
- Feedback loops back to earlier stages. Providers usually pre-train.
- Token pricing: pay per input token and per output token. Output usually costs more.
- Longer prompts, longer answers and larger models cost more and run slower.
- Context engineering: choose the instructions, retrieved data, history and tools the model sees.
- Prompt engineering is the wording. Context engineering is the whole package.
2.1Agentic AI
- Agent: uses a model to plan and act toward a goal.
- Tool usage: the agent calls APIs, databases and search.
- Memory: short-term for the task, long-term across sessions.
- Workflow orchestration: coordinates steps and their order.
- Multi-agent patterns: supervisor with workers, peers, or a sequential hand-off.
- MCP (Model Context Protocol): open standard that connects agents to tools and data.
- With MCP, one connector per tool works with any MCP-aware agent.
2.2Strengths and limits
- Advantages: adaptability, responsiveness, conversational ability, content generation.
- Hallucination: a confident answer that is false.
- Inaccuracy: out of date, incomplete or wrong in detail.
- Interpretability: hard to explain why the model gave an answer.
- Nondeterminism: the same prompt can give different answers.
- Business effect: wrong advice, lost trust, compliance trouble, extra review.
- Fixes come later: RAG and grounding, guardrails, human review.
2.2Choosing a model and measuring value
- Model selection: type, performance, capabilities, constraints, compliance, cost, latency, complexity.
- Shortlist, test on your own data, then pick the cheapest model that is good enough.
- Bigger models are often more capable but slower and costlier.
- Efficiency: time or cost saved. ROI: benefit compared with total cost.
- Conversion rate: share of visitors who buy. ARPU: average revenue per user.
- CLV: expected total value of a customer over time.
- Accuracy: share of correct answers. Cross-domain performance: quality across many tasks.
Save time or cost
- Efficiency, ROI
More visitors buy
- Conversion rate
More revenue per user
- ARPU
Keep customers longer
- Customer lifetime value
Answers are correct
- Accuracy
One model, many tasks
- Cross-domain performance
| Goal | Metric |
|---|---|
| Save time or cost | Efficiency, ROI |
| More visitors buy | Conversion rate |
| More revenue per user | ARPU |
| Keep customers longer | Customer lifetime value |
| Answers are correct | Accuracy |
| One model, many tasks | Cross-domain performance |
1 / 2
Save time or cost
- Efficiency, ROI
More visitors buy
- Conversion rate
More revenue per user
- ARPU
Keep customers longer
- Customer lifetime value
| Goal | Metric |
|---|---|
| Save time or cost | Efficiency, ROI |
| More visitors buy | Conversion rate |
| More revenue per user | ARPU |
| Keep customers longer | Customer lifetime value |
2 / 2
Answers are correct
- Accuracy
One model, many tasks
- Cross-domain performance
| Goal | Metric |
|---|---|
| Answers are correct | Accuracy |
| One model, many tasks | Cross-domain performance |
2.3Which AWS service
- Amazon Bedrock: fully managed, FMs from several providers through one API.
- Bedrock features: Knowledge Bases, Guardrails, Agents, Model Evaluation, Prompt Management.
- Amazon SageMaker AI: build, train and deploy your own models.
- SageMaker JumpStart: model hub inside SageMaker AI, runs on instances you choose.
- Amazon Quick: AI workspace for business users, with Q&A, dashboards and automation.
- Kiro: agentic development environment, spec-driven.
- Strands Agents: open source SDK to build agents. Amazon Bedrock AgentCore: runs them securely at scale.
- Amazon Nova: Amazon's own FMs, used through Bedrock.
Foundation models through one API, no servers
An open source model on instances you control
Build and train your own models
Business users ask questions of work data (was Amazon Q Business)
Build software from specs with AI agents (was Amazon Q Developer)
An open source SDK to build agents
Run agents securely at scale
Amazon's own foundation models
Build a GenAI app with no code and no AWS account
Chips to train (Trainium) or run (Inferentia) models cheaply
Event-driven glue code, no servers (Lambda)
| You need | Pick |
|---|---|
| Foundation models through one API, no servers | |
| An open source model on instances you control | |
| Build and train your own models | |
| Business users ask questions of work data (was Amazon Q Business) | |
| Build software from specs with AI agents (was Amazon Q Developer) | Kiro |
| An open source SDK to build agents | Strands Agents |
| Run agents securely at scale | |
| Amazon's own foundation models | |
| Build a GenAI app with no code and no AWS account | PartyRock |
| Chips to train (Trainium) or run (Inferentia) models cheaply | AI chips |
| Event-driven glue code, no servers (Lambda) | Compute for AI applications |
1 / 4
Foundation models through one API, no servers
An open source model on instances you control
Build and train your own models
| You need | Pick |
|---|---|
| Foundation models through one API, no servers | |
| An open source model on instances you control | |
| Build and train your own models |
2 / 4
Business users ask questions of work data (was Amazon Q Business)
Build software from specs with AI agents (was Amazon Q Developer)
An open source SDK to build agents
Run agents securely at scale
| You need | Pick |
|---|---|
| Business users ask questions of work data (was Amazon Q Business) | |
| Build software from specs with AI agents (was Amazon Q Developer) | Kiro |
| An open source SDK to build agents | Strands Agents |
| Run agents securely at scale |
3 / 4
Amazon's own foundation models
Build a GenAI app with no code and no AWS account
Chips to train (Trainium) or run (Inferentia) models cheaply
4 / 4
Event-driven glue code, no servers (Lambda)
| You need | Pick |
|---|---|
| Event-driven glue code, no servers (Lambda) | Compute for AI applications |
2.3More Bedrock, chips, compute and Amazon Q
- Bedrock extras: console playgrounds, model access through IAM, Bedrock Marketplace (100+ more models).
- Model invocation logging is off by default. It sends prompts and responses to CloudWatch Logs or Amazon S3.
- PartyRock: free no-code playground on Bedrock. No AWS account needed. For learning, not production.
- AWS Trainium trains models. AWS Inferentia runs inference. GPU instances on EC2 are the general choice.
- Compute: EC2 to self-host, Lambda for event-driven glue code, ECS and EKS for containers, endpoints for the least work.
- Nova: Micro (text only), Lite and Pro understand. Sonic handles speech. Premier is legacy. Canvas and Reel were retired in September 2026.
2.3More Bedrock, chips, compute and Amazon Q
- Titan: earlier Amazon family. Titan Text Embeddings still serve RAG.
- Amazon Q Business is closed to new customers. Amazon Quick replaces it.
- Amazon Q Developer is moving to Kiro. In the console it is now the AWS assistant.
- AWS Transform: agentic AI that migrates and modernizes existing workloads. Kiro builds new software.
2.3Why AWS, and what it costs
- Advantages: accessibility, lower barrier to entry, efficiency, cost-effectiveness, speed to market, meeting business goals.
- Infrastructure benefits: security, compliance, responsibility, safety.
- In Bedrock, prompts and data are not used to train the base models.
- On demand: pay per token, no commitment.
- Provisioned throughput: hourly price for reserved capacity, with no commitment, 1 month or 6 months.
- Batch inference: about half the on-demand price for jobs that can wait.
- Prompt caching: a repeated prompt start is read at a lower price.
- AWS Budgets alerts on limits. AWS Cost Explorer shows where spend goes.
2.3Why AWS, and what it costs
- A custom (fine-tuned) model in Bedrock needs provisioned throughput.
- More Regions and redundancy raise availability and cost. Models and prices vary by Region.
On demand
- You pay
- Per token, no commitment
- Choose it when
- Traffic is low or varies
Provisioned throughput
- You pay
- Hourly, for reserved capacity
- Choose it when
- Traffic is high and steady
Batch inference
- You pay
- About half the on-demand price
- Choose it when
- Large jobs that can wait
Custom model
- You pay
- Training, then provisioned throughput
- Choose it when
- Prompts and RAG are not enough
| Option | You pay | Choose it when |
|---|---|---|
| On demand | Per token, no commitment | Traffic is low or varies |
| Provisioned throughput | Hourly, for reserved capacity | Traffic is high and steady |
| Batch inference | About half the on-demand price | Large jobs that can wait |
| Custom model | Training, then provisioned throughput | Prompts and RAG are not enough |
1 / 2
On demand
- You pay
- Per token, no commitment
- Choose it when
- Traffic is low or varies
Provisioned throughput
- You pay
- Hourly, for reserved capacity
- Choose it when
- Traffic is high and steady
Batch inference
- You pay
- About half the on-demand price
- Choose it when
- Large jobs that can wait
| Option | You pay | Choose it when |
|---|---|---|
| On demand | Per token, no commitment | Traffic is low or varies |
| Provisioned throughput | Hourly, for reserved capacity | Traffic is high and steady |
| Batch inference | About half the on-demand price | Large jobs that can wait |
2 / 2
Custom model
- You pay
- Training, then provisioned throughput
- Choose it when
- Prompts and RAG are not enough
| Option | You pay | Choose it when |
|---|---|---|
| Custom model | Training, then provisioned throughput | Prompts and RAG are not enough |
Exam traps
- “Maximum text in one request” → context window, not token pricing
- “Search by meaning” → embeddings, not keyword search
- “Break documents up before embedding” → chunking, not fine-tuning
- “Start from random noise to make an image” → diffusion model, not an LLM
- “Collect user ratings after release” → feedback stage, not evaluation
- “Decide what the model sees: data, history, tools” → context engineering, not prompt engineering
- “Open standard to connect agents to tools” → MCP, not a custom connector
- “Confident but false answer” → hallucination, not nondeterminism
Exam traps
- “Same prompt, different answers” → nondeterminism, not hallucination
- “Open source model on instances you control” → SageMaker JumpStart, not Bedrock
- “Business users ask about work data” → Amazon Quick, not Bedrock
- “Steady heavy traffic” → provisioned throughput, not on demand
- “Large job that can wait, lowest price” → batch inference, not provisioned throughput
- “Free no-code playground, no AWS account” → PartyRock, not Bedrock
- “Chip built to train models” → Trainium, not Inferentia (inference)
Exam traps
- “Replacement for Amazon Q Business” → Amazon Quick