Generative AI sits inside the foundation model layer introduced in Chapter 1, and the AIF-C01 exam treats this section as the conceptual anchor for everything that follows. The problem GenAI solves, at the business level, is the production of new artifacts (text, code, images, audio, video, structured data) from a learned distribution rather than the classification of existing artifacts into known buckets. Classical ML predicts a label or value from features; GenAI predicts the next token, pixel, or sample from a learned joint distribution. The shift from discriminative to generative changes the cost model, the failure modes, and the integration patterns.
The umbrella of GenAI on AWS includes managed access to third-party FMs through Amazon Bedrock (Anthropic Claude, Meta Llama, Mistral, Cohere, AI21 Labs Jurassic, Stability AI image models, and Amazon Nova and Amazon Titan), plus the option to bring your own model or fine-tune existing ones using Amazon SageMaker AI. The exam expects you to know which capabilities are managed (no infrastructure choices) versus which require you to choose instance types, scaling policies, and endpoint configurations. Amazon Bedrock is API-driven and serverless from the consumer perspective; Amazon SageMaker AI is a platform with explicit infrastructure controls.
Two consequences fall out of this framing. First, the unit of economic activity is the token rather than the API call or the row; pricing, throughput, latency, and even prompt design all depend on tokens. Second, the boundary between application code and model behavior is porous: the same model returns different outputs for syntactically similar prompts, and the cost of a single feature can swing by an order of magnitude depending on how the prompt is structured. These properties motivate the disciplines covered in later sections: context engineering, evaluation, and guardrails.
Describe the advantages of GenAI
GenAI advantages cluster into four areas the AIF-C01 syllabus calls out explicitly: adaptability, responsiveness, conversational capabilities, and the ability to generate content. Each maps to a measurable business outcome and to a corresponding AWS service surface.
Adaptability refers to the ability of a single FM to handle a wide range of tasks without task-specific training. A classical NLP pipeline needs one model for sentiment, another for entity extraction, and a third for summarization. A single LLM accessed through Amazon Bedrock handles all three through prompt instructions alone. The business consequence is that one operational pipeline (one set of IAM policies, one set of logging configurations, one cost center) covers many use cases. The exam contrasts this with the multi-model burden of classical ML.
Responsiveness refers to the latency profile of streaming token generation. Amazon Bedrock and Amazon SageMaker AI both support response streaming, so the first token reaches the client in hundreds of milliseconds while the full response continues to arrive. Users perceive the system as faster than the wall-clock total. For interactive applications (chatbots, code completion, copilot panes), perceived latency matters more than total tokens per second.
Conversational capabilities refer to multi-turn dialogue with preserved context. The model carries previous turns in the request payload, allowing follow-up questions, refinements, and chain-of-thought reasoning. Amazon Bedrock Converse API standardizes the message format across providers, so an application can swap Anthropic Claude for Meta Llama without rewriting the integration layer.
Ability to generate content is the headline advantage: text, code, images, audio, video, and synthetic structured data. The exam pairs each content modality with a representative service or model family (text and code with Anthropic Claude or Amazon Nova on Bedrock; images with Stability AI or Amazon Titan Image Generator; speech with Amazon Polly's neural and generative voices; video with Amazon Nova Reel; and synthetic tabular data through SageMaker AI training jobs).
💡 Exam Trap: "Adaptability" in AIF-C01 language refers to a single FM handling multiple tasks through prompting, not to auto-scaling infrastructure. Auto scaling is a property of the hosting layer, not the model.
💡 Exam Trap: Conversational capability is not the same as memory. Chat interfaces feel like memory, but the model is stateless across requests; the application replays history on every turn. Memory in agentic systems is a separate construct covered in Section 7.
Describe cost tradeoffs of AWS GenAI services
The cost tradeoff frame the exam uses is broad: responsiveness, availability, redundancy, performance, regional coverage, token-based pricing, provisioned throughput, and custom models. Each lever changes both the bill and the user experience.
Responsiveness vs cost. Lower latency models (smaller parameter count, distilled variants) cost less per token but may produce lower-quality output. Amazon Nova Micro and Anthropic Claude Haiku trade off complexity for speed and price; Anthropic Claude Opus and Amazon Nova Pro trade off price for reasoning depth. A common pattern is to route simple queries to a fast small model and escalate hard queries to a slower large model, using a classifier or a confidence check.
Availability and redundancy. On-demand inference on Amazon Bedrock is regional and multi-AZ by default, but capacity is shared across customers; under heavy load you can see throttling. Provisioned Throughput reserves model units in a Region, raising baseline cost in exchange for guaranteed capacity. Cross-Region inference profiles distribute traffic across multiple Regions to raise availability for supported models, at the cost of slightly higher per-token rates compared to a single-Region call.
Performance. Performance here means tokens per second and time to first token, not accuracy. Provisioned Throughput delivers consistent performance because the underlying capacity is reserved; on-demand performance varies with Region load. Larger context windows raise inference cost both because the model processes more input tokens and because attention compute scales with context length.
Regional coverage. Not every model is available in every Region. The exam expects you to know that data residency requirements (for example, EU customers needing eu-west-1 or eu-central-1) constrain model choice. Amazon Bedrock model availability is published per Region in the AWS documentation, and using a model outside its allowed Regions is not possible.
Token-based pricing. Input tokens and output tokens are billed at different rates, and output tokens typically cost three to four times the input token rate because generation is more compute-intensive. This makes prompt length and response length first-class cost levers. Section 5 covers this in detail.
Provisioned Throughput. Reserved model units billed hourly with a commitment term (no commit, one month, six months). The shorter the commitment, the higher the hourly rate. Use Provisioned Throughput when latency must be deterministic, when on-demand throttles you, or when you need to deploy a custom model.
Custom models. Fine-tuned or continued-pretrained models on Amazon Bedrock require Provisioned Throughput for inference; you cannot call a custom Bedrock model through on-demand pricing. This raises the cost floor for fine-tuning and changes the breakeven calculus versus prompt engineering or RAG.
📊 Limit: Amazon Bedrock Provisioned Throughput is sold in model units; one model unit guarantees a defined throughput (tokens per minute) that varies by model. Custom (fine-tuned) Amazon Bedrock models require Provisioned Throughput and cannot be invoked through on-demand pricing.
⚠️ Anti-Pattern: Reserving Provisioned Throughput for a low-traffic chatbot prototype. The hourly commitment runs whether or not requests flow, so on-demand pricing is correct until sustained traffic clears the breakeven threshold.
🎯 Scenario: A retail company runs a product Q&A bot that handles 50 requests per minute during business hours and zero overnight. Latency must be under one second at the 95th percentile. The architect considers Provisioned Throughput. The correct answer is on-demand for now, with a cross-Region inference profile to raise headroom; reserve capacity only after the traffic profile flattens.
# Invoke an Amazon Bedrock on-demand model with the Converse API
aws bedrock-runtime converse \
--model-id anthropic.claude-3-5-sonnet-20240620-v1:0 \
--messages '[{"role":"user","content":[{"text":"Summarize the AWS shared responsibility model in three bullets."}]}]' \
--inference-config '{"maxTokens":512,"temperature":0.2}'
# List Provisioned Throughput model units in the current Region
aws bedrock list-provisioned-model-throughputs \
--status-equals InService \
--query "provisionedModelSummaries[].{name:provisionedModelName,modelArn:modelArn,units:modelUnits}"
The cost tradeoffs flow into a decision anchor that recurs throughout this chapter: pick on-demand for variable traffic and experimentation, pick Provisioned Throughput for deterministic latency or custom models, and pick a smaller model with prompt and context engineering before reaching for fine-tuning.
Decision Anchor. Choose on-demand Amazon Bedrock when traffic is bursty, the use case is exploratory, or the model is a standard foundation model. Choose Provisioned Throughput when latency must be deterministic, when a custom (fine-tuned) Bedrock model is in use, or when on-demand quotas throttle production traffic.
