AIF-C01 Cheat Sheet
Fundamentals of AI and ML
AI & ML Concepts
Read full chapterCheat sheet
Sharp facts the exam loves — scan these before test day.
- AI ⊃ ML ⊃ deep learning ⊃ generative AI are nested subsets
These four terms nest, they are not synonyms: AI is the broad goal of machine intelligence, ML is the subset that learns patterns from data instead of hand-coded rules, deep learning is the subset of ML built on multi-layer neural networks, and generative AI is the application built on deep-learning foundation models. Because each is contained in the one above, deep learning is a form of ML, never a competing alternative to it.
Trap Treating deep learning as a replacement for or alternative to machine learning, when it is a subset of it.
Deep learning is machine learning that uses neural networks stacked with many hidden layers between the input and output layers of weighted artificial neurons. That depth lets the network learn its own hierarchical features straight from raw, unstructured input, which is why it powers computer vision and NLP without the manual feature engineering classical ML demands.
Trap Calling any single-layer neural network deep learning, when the 'deep' refers to the many stacked hidden layers it adds.
- Computer vision and NLP are problem domains, not algorithms
Computer vision and NLP are application domains you map a need onto, not learning techniques. Computer vision extracts insight from images and video (classification, object detection, facial recognition); NLP extracts meaning from text (sentiment, entities, translation, summarization). The exam offers them as the answer to "what kind of problem is this," so don't read them as paradigms or model types.
Trap Picking a learning paradigm (supervised, unsupervised) when the stem is actually asking which problem domain (vision vs language) applies.
- The algorithm is the procedure; the model is the trained artifact
An algorithm is the learning procedure (gradient descent, a decision-tree splitting rule); a model is the artifact that procedure produces, storing the learned parameters you then deploy. The exam-portable phrasing is: you train an algorithm on data to produce a model, then run inference with the model. Keep the two roles distinct, because a stem often swaps them to test exactly this.
Trap Calling the algorithm the deployed thing that makes predictions: predictions come from the trained model, not the procedure that built it.
- Training writes the parameters; inference only reads them
Training is the phase where the algorithm consumes data and adjusts the model's internal parameters; inference is the later phase where the finished model takes new, unseen input and returns a prediction. No learning happens at inference time: it runs read-only against frozen parameters, which is why serving cost and retraining cost are separate concerns.
Trap Assuming a model keeps learning from the live requests it serves: parameters are fixed at inference until you deliberately retrain.
- Supervised learning needs labeled data with known outputs
Supervised learning trains on labeled examples (each input paired with its correct output) to learn the mapping from one to the other. It splits into two shapes: classification predicts a discrete category (spam vs not-spam, fraud vs legitimate), and regression predicts a continuous number (price, demand). A stem that hands you historical records already tagged with the answer and asks for a category or a number is supervised.
Trap Reaching for unsupervised learning when the data already carries the labeled outcome you want to predict: labeled targets make it supervised.
11 questions test this
- A recently opened manufacturing plant wants to predict equipment failures by using Amazon SageMaker AI. The plant has logged only a handful…
- An online payments company wants to use Amazon Fraud Detector to label each incoming transaction as either fraudulent or legitimate, based…
- A financial services company plans to use Amazon SageMaker AI to train a model that flags new credit card transactions as fraudulent or…
- A retail company uses Amazon SageMaker AI to build a model that predicts the specific dollar amount of revenue each store will generate…
- A data scientist is reviewing several business problems to determine which one is BEST solved by using a regression model. Which problem…
- An ecommerce company already uses Amazon Personalize to recommend products. The data science team now wants to predict the exact future…
- A company uses Amazon SageMaker AI and wants to predict the exact number of products it will sell next month based on historical sales data…
- A company wants to use Amazon SageMaker AI to automatically route each incoming customer support ticket to one of five predefined…
- A subscription streaming company wants to predict whether each customer will cancel the subscription next month. The company has a labeled…
- A data scientist is choosing a learning approach for a new project that will use Amazon SageMaker AI. Which statement correctly describes…
- A logistics company uses Amazon SageMaker AI to build a model that predicts the number of days each shipment will take to reach its…
- Unsupervised learning finds structure in unlabeled data
Unsupervised learning trains on unlabeled data with no target column and surfaces patterns on its own. Its canonical tasks are clustering (customer segmentation), dimensionality reduction, and anomaly detection. The tell in a stem is the absence of a known answer paired with a discovery goal: "find natural groups," "flag unusual transactions without any prior fraud labels."
Trap Labeling anomaly detection on unlabeled data as supervised: there are no fraud labels to learn from, so the model groups by structure alone.
3 questions test this
- A media company has a large collection of unlabeled news articles. The company wants to use Amazon SageMaker AI to discover natural…
- A retail company wants to use Amazon SageMaker AI to divide its customers into groups based on purchasing behavior. The company does not…
- A marketing team has a large dataset of customer purchase behavior with no predefined labels or groups. The team wants to discover natural…
- Reinforcement learning replaces the dataset with a reward signal
Reinforcement learning has no fixed table of right answers: an agent takes actions in an environment and learns a policy that maximizes cumulative reward by trial and error. Stem signals are an agent, actions, rewards or penalties, sequential decisions, or a game/robot/control loop. The learning comes from the reward feedback, not from a corpus of labeled or unlabeled examples.
Trap Choosing an answer that frames reinforcement learning as training on a labeled or unlabeled dataset: RL learns from rewards, not a dataset of answers.
- The learning paradigm is decided by the data, not the goal
To choose supervised vs unsupervised vs reinforcement, read what the data carries, never the business objective: each record tagged with its outcome → supervised; no target, asking to find groups or outliers → unsupervised; an agent earning rewards through a feedback loop → reinforcement. The same business goal can land in different paradigms depending only on the data you hold.
Trap Picking the learning paradigm from the business objective, when only the data you hold (labeled, unlabeled, or reward-driven) decides it.
3 questions test this
- A retail company wants to use Amazon SageMaker AI to divide its customers into groups based on purchasing behavior. The company does not…
- A financial services company plans to use Amazon SageMaker AI to train a model that flags new credit card transactions as fraudulent or…
- A data scientist is choosing a learning approach for a new project that will use Amazon SageMaker AI. Which statement correctly describes…
- Data attributes live on independent axes
Labeled vs unlabeled, structured vs unstructured, and the concrete shape (tabular, time-series, image, text) are separate axes: one record can be labeled and tabular and structured all at once. Only the labeled-vs-unlabeled axis decides supervised vs unsupervised; the answer choices reveal which axis a "what type of data" stem is really probing.
Trap Assuming structured data must be labeled or that unstructured data must be unlabeled, when those axes are independent of each other.
- Structured data fits rows and columns; unstructured needs deep learning
Structured data has a standardized tabular format: rows and columns with a defined schema, as in databases and spreadsheets (including timestamp-ordered time-series). Unstructured data (free text, images, audio, video) has no set data model, makes up roughly 80–90% of enterprise data, and typically calls for deep learning, since classical tabular methods can't capture its signal.
Trap Reaching for classical tabular methods on free text, images, or audio, when unstructured data has no schema and typically needs deep learning.
- Real-time vs batch inference: is something waiting on each prediction?
Real-time (online) inference serves one prediction at a time from a persistent low-latency endpoint for interactive use (a chatbot reply, a fraud check at checkout). Batch inference scores a large, bounded set asynchronously on a schedule, trading latency for throughput and a lower cost per prediction (rescore the whole customer base overnight). The deciding question is whether a human or system is waiting on each individual prediction.
Trap Choosing batch versus real-time by dataset size rather than by whether something is waiting on each individual prediction.
4 questions test this
- A company has millions of archived customer support emails stored in Amazon S3. The company wants to use Amazon Comprehend to analyze the…
- A retailer wants to use Amazon Rekognition to detect when a person enters a restricted area in a live security camera video feed and to…
- A company has a trained model and a large dataset stored in Amazon S3. The company wants to generate predictions for the entire dataset at…
- A bank uses Amazon Comprehend to analyze incoming customer chat messages and must return sentiment results instantly so that agents can…
- Inference cost and latency pull in opposite directions
Across deployment patterns the tradeoff is fixed: batch inference is cheapest per prediction but highest latency, while a real-time endpoint is lowest latency but pays for always-on compute. Match the pattern to whether anything waits on the result: an overnight bulk job wants batch, a live checkout fraud check needs the real-time endpoint.
Trap Putting an overnight bulk-scoring job on an always-on real-time endpoint: it meets a latency requirement nobody has while paying for idle compute.
4 questions test this
- A company has millions of archived customer support emails stored in Amazon S3. The company wants to use Amazon Comprehend to analyze the…
- A retailer wants to use Amazon Rekognition to detect when a person enters a restricted area in a live security camera video feed and to…
- A company has a trained model and a large dataset stored in Amazon S3. The company wants to generate predictions for the entire dataset at…
- A bank uses Amazon Comprehend to analyze incoming customer chat messages and must return sentiment results instantly so that agents can…
- Overfitting: accurate on training data, poor on new data
A model overfits when it memorizes the noise and quirks of its training data, scoring well on that data but poorly on new, unseen data. The exam signature is "performs well in training but poorly on new data." Crucially, more training of the same kind can increase variance and worsen overfitting, so "insufficient training" is a wrong diagnosis for an overfit model.
Trap Blaming insufficient training for an overfit model: more of the same training tightens the fit to noise and makes overfitting worse, not better.
3 questions test this
- A data science team at a retail company is using Amazon SageMaker to train a machine learning model for customer churn prediction. After…
- A machine learning team is using Amazon SageMaker to train a fraud detection model. During training, the team observes that the model…
- A data scientist is using Amazon SageMaker to train a classification model. After evaluating the model, the data scientist observes that…
- Underfitting: poor on both training and new data
A model underfits when it is too simple to capture the real signal, so it never finds a meaningful input-output relationship and scores poorly on both training and new data. The mechanical rule that separates the two failure modes: poor on training too → underfit; great on training but poor on new data → overfit.
Trap Diagnosing a model that scores poorly on its own training data as overfit, when poor training performance is the signature of underfitting.
- Bias-variance: underfit is high bias, overfit is high variance
The bias-variance tradeoff maps straight onto fit: an underfit model has high bias (inaccurate on both training and test sets), while an overfit model has high variance (accurate on training but not on test/unseen data). The target is the balanced sweet spot that generalizes, which is exactly why a model's quality is judged on held-out data rather than the data it trained on.
Trap Pairing overfitting with high bias and underfitting with high variance, when it is the reverse: overfit is high variance, underfit is high bias.
3 questions test this
- A data science team at a retail company is using Amazon SageMaker to train a machine learning model for customer churn prediction. After…
- A machine learning team is using Amazon SageMaker to train a fraud detection model. During training, the team observes that the model…
- A data scientist is using Amazon SageMaker to train a classification model. After evaluating the model, the data scientist observes that…
- "Bias" carries two distinct meanings on AIF-C01
On this exam "bias" means two unrelated things. Statistical bias is the underfitting error of a too-simple model. Societal/data bias is about outcomes across groups: a model can be accurate on average yet systematically disadvantage a subgroup because the training data encodes historical inequities. An accuracy-and-error stem points at statistical bias; a demographic-and-fairness stem points at data bias.
Trap Reading every mention of "bias" as the statistical underfitting error, when a fairness stem is about disparate outcomes across demographic groups.
- High overall accuracy does not guarantee fairness
Fairness is a model treating relevant groups equitably, and it is independent of average accuracy: a model can be accurate overall yet unfair to a subgroup. AWS even lists fairness as its own dimension of responsible AI, separate from accuracy/robustness, which is why an accurate-but-biased model can still be the wrong one to deploy and why responsible-AI controls exist as a distinct layer.
Trap Concluding a model is safe to deploy because its overall accuracy is high: fairness across groups is a separate property accuracy can't vouch for.
- Embedding models turn text and images into semantic vectors
An embedding model converts text (and, for multimodal embeddings, images too) into numerical vectors that capture semantic meaning, placing similar items close together in vector space. This is the component behind semantic search and Amazon Bedrock Knowledge Bases; a multimodal embedding model puts text and image queries into one shared space so a single model can answer both.
Trap Confusing an embedding model with a generative LLM, when an embedding model outputs numerical vectors for similarity search rather than generated text.
7 questions test this
- A company wants to use Amazon Bedrock to build a semantic search application that retrieves relevant information from internal documents.…
- A retail company wants to build a product search application that can match customer product images with similar items in their catalog.…
- A machine learning practitioner is building a semantic search application using Amazon Bedrock. The application needs to convert product…
- A company wants to use Amazon Bedrock for multiple generative AI use cases including semantic search, content summarization, and image…
- A company wants to implement a semantic search solution using Amazon Bedrock to find similar documents in their knowledge base. The company…
- A company wants to implement a semantic search application using Amazon Bedrock Knowledge Bases. The application must convert product…
- A company is building a product search application using Amazon Bedrock. The application must allow customers to search for products using…
- Temperature trades determinism for randomness
Temperature is an inference parameter that reshapes the next-token probability distribution: a low value near 0 steepens it toward more deterministic, consistent answers (FAQ and support bots), while a high value flattens it toward more random, varied output. Lower the temperature when you need repeatable, factual responses; raise it when you want more diverse, creative generation.
Trap Raising temperature to make a model more accurate: it only increases randomness; for consistent, factual answers you lower it instead.
4 questions test this
- A developer is using Amazon Bedrock to build a customer service chatbot. The chatbot occasionally provides different answers to the same…
- A company is using Amazon Bedrock to build a customer support chatbot. The development team wants to reduce the randomness in the…
- A machine learning team is building a creative writing application using Amazon Bedrock. The team wants the foundation model to generate…
- A machine learning engineer is configuring an Amazon Bedrock foundation model to generate creative marketing content. The engineer wants to…
AI Use Cases
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
ML Development Lifecycle
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
Fundamentals of Generative AI
Generative AI Concepts
Read full chapterCheat sheet
Sharp facts the exam loves — scan these before test day.
- A token is a model's unit of meaning, not a word
A token is a sequence of characters a model interprets or predicts as a single unit of meaning, which is not the same as a word: it can be a whole word, a sub-word fragment with grammatical meaning (such as "-ed"), a punctuation mark (such as "?"), or a common phrase (such as "a lot"). Both the prompt you send in and the completion the model generates back are counted in tokens, so token count drives length and cost.
Trap Assuming one token always equals one word. A token is usually a fragment, so token counts run higher than word counts.
3 questions test this
- A company is reviewing the pricing for a large language model that it accesses through Amazon Bedrock. The company learns that charges are…
- While testing a large language model, a developer observes that the input prompt is first broken into small pieces, such as whole words and…
- A developer observes that a large language model in Amazon Bedrock generates its response one small unit at a time, where each unit can be…
- Foundation-model cost and limits are measured in tokens
Foundation-model spend and length limits are billed and constrained in tokens, not words or characters: Amazon Bedrock on-demand pricing charges separately for input and output tokens, so model choice plus prompt and response length drive the bill. A token is typically a fragment of a word rather than a full word, so token totals exceed word totals, but the exact ratio varies by model and tokenizer.
Trap Treating cost or context limits as measured per word or per character. They are counted in tokens, which don't map one-to-one to words.
5 questions test this
- A company is reviewing the pricing for a large language model that it accesses through Amazon Bedrock. The company learns that charges are…
- A startup is evaluating Amazon Bedrock foundation models for their prototype application and wants to understand the pricing model. They…
- A development team wants to compare the output quality of several foundation models available in Amazon Bedrock during an early…
- A startup is building a proof-of-concept chatbot on Amazon Bedrock. Traffic during the testing phase is low and unpredictable, and the team…
- A company runs a text-generation feature on Amazon Bedrock that uses on-demand inference. The company observes that its costs rise as the…
- An embedding is a numeric vector that encodes meaning
An embedding transforms input into a vector of numerical values so different objects can be compared by similarity through a shared numerical representation, placing items with similar meaning close together in that vector space. A vector is just the ordered list of numbers; calling it an embedding signals that the numbers encode semantic meaning. Because comparison is by meaning rather than exact characters, "car" and "automobile" land near each other.
Trap Treating an embedding as a stored copy of the original text or characters rather than a numeric encoding of its meaning.
6 questions test this
- A company wants to convert thousands of knowledge base articles into dense numerical vector representations so the articles can be compared…
- A media company wants to use Amazon Bedrock to build an application that can search a product catalog using both text queries and uploaded…
- A retail company wants to use Amazon Bedrock to build a product search application that can find similar products based on both product…
- A developer is building a semantic search application using Amazon Bedrock. The application needs to convert text documents into numerical…
- A company wants to convert a catalog of text product descriptions into numerical representations that capture semantic meaning so that…
- A retail company wants to build a visual product search application that allows customers to search for products using images, text…
- Embeddings enable semantic search by meaning
Embeddings place semantically similar items near each other in vector space, so you can retrieve by meaning instead of matching exact words: convert documents and the user query into embeddings, then find the nearest vectors to surface the most relevant passages. This works even when the query and a document share no literal words, which keyword (lexical) search cannot do.
Trap Calling keyword matching semantic search. Matching shared words is lexical search; semantic search compares embedding meaning.
5 questions test this
- A media company wants to use Amazon Bedrock to build an application that can search a product catalog using both text queries and uploaded…
- A retail company wants to use Amazon Bedrock to build a product search application that can find similar products based on both product…
- A developer is building a semantic search application using Amazon Bedrock. The application needs to convert text documents into numerical…
- A machine learning engineer is deploying a text embedding model from Amazon SageMaker JumpStart for a semantic search application. The…
- A company wants to convert a catalog of text product descriptions into numerical representations that capture semantic meaning so that…
- Chunking splits documents into passages before embedding
Chunking is the preprocessing step that splits a large document into smaller passages, each of which is embedded and written to the vector index for retrieval. You chunk because one embedding represents a single bounded passage well but a whole book poorly, and because the model's context window can't hold an entire corpus at once. Chunking is what makes large knowledge bases searchable and feedable to a model.
Trap Embedding a whole long document as one vector instead of chunking it, since a single embedding represents a bounded passage well but a full document poorly.
- Prompt is the input, completion is the output
The prompt is the input you provide to guide the model; inference is the model generating the completion (response) from that prompt. Both the prompt and the completion are counted in tokens, and each request stands alone. The model has no memory of prior turns unless you include them in the prompt.
Trap Assuming the model remembers earlier turns on its own, when each request is independent unless you include prior context in the prompt.
The context window is the maximum number of tokens a model can consider at once for a single request, and the prompt and the completion share that one finite budget. A very long prompt leaves less room for the answer, and a long requested answer constrains how much input fits. Content beyond the window is dropped, which is why long documents are chunked and retrieved rather than pasted whole.
Trap Assuming the context window caps only the input. It bounds prompt and completion together, so a long answer eats into room for context.
5 questions test this
- A company is evaluating foundation models in Amazon SageMaker JumpStart for a document analysis application that processes lengthy legal…
- A company is building a customer service chatbot using Amazon Bedrock and needs to process long customer conversation histories that may…
- A company is building a document summarization application using Amazon Bedrock. The application needs to process legal contracts that can…
- A software company is building a document analysis application using Amazon Bedrock. The application needs to process lengthy legal…
- A law firm wants to use a foundation model in Amazon Bedrock to summarize lengthy legal contracts, where each contract can span hundreds of…
- A foundation model is a broad, reusable base you adapt
A foundation model (FM) has a large number of parameters and is pre-trained on a massive amount of broad, mostly unlabeled data, producing a general-purpose base that can generate text or images and convert input into embeddings. One expensive pre-training run yields a reusable model that organizations customize cheaply through prompting, RAG, or fine-tuning instead of training from scratch. A practitioner typically selects and adapts an existing FM rather than building one.
Trap Reaching for from-scratch training to specialize a model when prompting, RAG, or fine-tuning an existing FM is the intended, far cheaper path.
6 questions test this
- A startup with no machine learning expertise wants to use large, general-purpose models that are pre-trained on massive and diverse…
- A startup wants to use a single large model that has been pre-trained on a vast and diverse dataset and that can be adapted to perform many…
- A team is deciding how to start a new generative AI project. They want to avoid designing a model architecture and training it from…
- Which statement best describes how Amazon SageMaker JumpStart helps a team that wants to adopt generative AI without building models from…
- A logistics company plans to expand into several new countries over the next year. The company wants its generative AI assistant on Amazon…
- A company is evaluating foundation models available through Amazon Bedrock and needs to understand the characteristics of these models.…
- Every LLM is a foundation model, but not vice versa
A large language model (LLM) is a foundation model pre-trained on vast amounts of text so it can understand and generate natural language, the text-and-language flavor of an FM. Every LLM is a foundation model, but not every foundation model is an LLM: an image-generation FM is a foundation model that is not a language model. "Foundation model" is the umbrella term; "LLM" is the text-specialized subset.
Trap Treating "foundation model" and "LLM" as synonyms. Image and other non-text FMs are foundation models but not LLMs.
- Transformers are the architecture behind modern LLMs
Modern LLMs are built on the transformer, a neural-network architecture of encoders and decoders whose core innovation is the self-attention mechanism. The transformer is an architecture, not a specific named model; for AIF-C01 you only need to recognize that it is what underpins today's LLMs.
- Self-attention weighs the whole context in parallel
Self-attention lets the model weigh how much every other token in the context should influence each token, capturing long-range relationships across a whole passage in parallel rather than strictly left to right. That parallelism is why transformers scaled to today's LLMs, where earlier architectures that processed one token at a time plateaued.
Trap Picturing self-attention as reading strictly left to right one token at a time, when it weighs every token against every other in parallel.
- A multimodal model handles more than one data type
A multimodal model accepts or produces more than one type of data (text, images, audio, or video) for example taking an image plus a text prompt and returning a text answer, or generating an image from a text description. A single multimodal FM can reason across modalities for richer context. The exam cue is a use case that mixes input or output types.
14 questions test this
- A company needs a single foundation model that can accept both text prompts and images as input and generate text output, so that users can…
- A field-service application lets a technician upload a photo of a damaged machine part together with a typed description of the symptoms,…
- A product team wants a single generative AI model that can accept both an uploaded photo of a room and a written instruction such as 'add a…
- A company is building an assistant that must accept an uploaded chart image together with a typed question about that chart and then reason…
- A company wants to build a generative AI application using AWS-built foundation models that support text generation, image generation, and…
- A real estate company wants to use a single foundation model that can accept a photograph of a property together with a typed question…
- A retailer wants a single foundation model that can accept both a customer's product photo and a typed text question as input and then…
- A company wants to use a single Amazon Bedrock foundation model that can accept a prompt containing text, images, and video together and…
- A retail company wants to use a single generative AI model that can accept a customer's product photo together with a typed text question…
- A company is building a virtual assistant that can simultaneously accept a spoken question, a photo, and typed text, and then reason across…
- A company stores unstructured content that includes scanned contracts, product photos, customer service call recordings, and marketing…
- An insurance company wants to use a single foundation model that can accept a customer's typed description, photos of vehicle damage, and a…
- A logistics company wants to use a single generative AI model that can accept a short video clip of a delivery along with a spoken audio…
- A retail company wants to use Amazon Bedrock for generating product descriptions and needs to select the most appropriate foundation model.…
- Diffusion models generate images by reversing added noise
Diffusion models are the family behind most high-quality image generation. Forward diffusion progressively adds Gaussian noise to an image until only random noise remains; the model learns to reverse that process, iteratively denoising from random noise toward a coherent image, most commonly conditioned on a text prompt. LLMs (transformers) generate text while diffusion models generate images, and production systems often combine both.
Trap Assuming a transformer LLM produces the images. Text comes from the LLM, but the image itself is generated by a diffusion model.
10 questions test this
- A media company uses a generative AI system that creates high-quality images from text descriptions by starting with random noise and…
- A game studio is evaluating a generative AI model to create original concept art. The studio learns that the model produces each image by…
- A design team is studying the category of generative AI model that produces images. The team learns that, during training, the model…
- An interior design studio wants to generate photorealistic room renderings from short text descriptions. The model it is evaluating works…
- A team is studying a category of generative AI model used to create images. During training, the model progressively adds random noise to…
- A marketing team wants to automatically create original product images from written text prompts. The team wants to use an AWS foundation…
- A research team needs to create original, photorealistic images of products that do not yet exist, based only on written text prompts. The…
- An advertising agency wants to generate original promotional artwork from short text prompts. The underlying model was trained by learning…
- A greeting card company wants a fully managed AWS model to generate original illustrations from written text prompts. The model creates…
- A design agency uses Amazon Nova Canvas in Amazon Bedrock to generate marketing images from text prompts. Amazon Nova Canvas creates each…
- Generative AI creates new content; discriminative ML predicts a label
Traditional, discriminative ML classifies data points, mapping an input to a fixed output such as a class label or a number (spam vs. not-spam, a price, a fraud score). Generative AI instead learns the patterns of its training data well enough to create new content (text, images, audio, video, code) in response to a prompt. A discriminative model answers "which category or value is this?"; a generative model answers "produce something new that looks like this."
Trap Picking a discriminative, label-predicting model for a task that requires creating new content, since classification answers "which category?" rather than "produce something new."
7 questions test this
- A manufacturer wants to predict a precise numeric quality score for each finished product based on years of labeled, structured sensor…
- A lending company must provide clear, auditable explanations for every automated credit decision to satisfy regulators. The underlying data…
- A solutions advisor is reviewing four candidate projects to decide which one is the BEST fit for Amazon Bedrock. Which project should the…
- A company is deciding which of several workloads is the BEST fit for a generative AI solution rather than a traditional ML model built with…
- A company wants to use ML to screen job applications and must provide clear, auditable explanations for every automated decision to comply…
- Which business problem is LEAST suitable for a generative AI solution and is better addressed by a traditional ML model built with Amazon…
- An energy utility must produce precise next-day electricity demand forecasts from years of historical, labeled time-series data. The…
- Generative output is non-deterministic by default
A discriminative classifier returns the same definite label for the same input, but generative output is stochastic by default: at each step the model samples the next token from a probability distribution, so the same prompt can yield different completions and the model can hallucinate. Lowering the temperature steepens that distribution toward higher-probability tokens for more deterministic responses (temperature 0 is greedy decoding), but you reduce variability without ever fully guaranteeing determinism.
Trap Expecting identical output every call like a classifier. Generation samples from a distribution, so completions vary unless you constrain randomness.
6 questions test this
- A manufacturer wants to predict a precise numeric quality score for each finished product based on years of labeled, structured sensor…
- A company wants to build a generative AI application that generates creative marketing content. The application needs to produce highly…
- Which characteristic of generative AI makes it a poor fit for an application that must return the exact same output every time it receives…
- A manufacturer wants to detect abnormal equipment behavior from continuous numeric sensor readings so it can schedule maintenance before…
- An insurance company wants to automatically calculate policy premiums from structured actuarial data. Each calculation must be numerically…
- An energy utility must produce precise next-day electricity demand forecasts from years of historical, labeled time-series data. The…
- OpenSearch is AWS's recommended Bedrock vector store, not the only one
To store embeddings and query them by similarity (nearest-neighbor / semantic search), Amazon OpenSearch Service is AWS's recommended vector database for Amazon Bedrock, and Bedrock Knowledge Bases can quick-create an OpenSearch Serverless collection as the default fully managed store. It is not the sole option, though: Bedrock Knowledge Bases also supports Aurora PostgreSQL (pgvector), Neptune Analytics, Amazon S3 Vectors, and third-party stores like Pinecone, Redis, and MongoDB Atlas.
Trap Assuming OpenSearch is the only AWS vector store for Bedrock. It is the recommended default, but Aurora pgvector, Neptune, and S3 Vectors also qualify.
4 questions test this
- A company is building a Retrieval Augmented Generation (RAG) application using Amazon Bedrock. The company wants to store vector embeddings…
- A company has converted its product catalog into numerical vector representations called embeddings. The company needs a managed AWS…
- A startup is building a generative AI application that requires vector search capabilities. The startup wants to minimize operational…
- A company is implementing a Retrieval-Augmented Generation (RAG) solution using Amazon Bedrock Knowledge Bases. The company wants to use a…
- Titan Multimodal Embeddings put text and images in one vector space
Amazon Titan Multimodal Embeddings translates text, an image, or a combination of both into an embedding that carries the semantic meaning of each in the same shared vector space, enabling search and recommendation by comparing meaning rather than matching words. It is the model to pick for visual product search where users query by text, by image, or by both.
Trap Reaching for a text-only embedding model for visual search, when only a multimodal embedding model places images and text in one shared vector space.
6 questions test this
- A media company wants to use Amazon Bedrock to build an application that can search a product catalog using both text queries and uploaded…
- A retail company wants to use Amazon Bedrock to build a product search application that can find similar products based on both product…
- A machine learning team wants to build a semantic search solution using Amazon Bedrock. The team needs to convert product images and their…
- A retail company wants to build a product search application that allows customers to search their catalog using either text descriptions…
- A retail company wants to build a visual product search application that allows customers to search for products using images, text…
- An ecommerce company wants shoppers to search its product image catalog by typing text descriptions. This requires representing both the…
GenAI Capabilities & Limitations
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
AWS GenAI Infrastructure
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
Applications of Foundation Models
FM Application Design
Read full chapterCheat sheet
Sharp facts the exam loves — scan these before test day.
- Bedrock exposes many FMs behind one API
Amazon Bedrock is a fully managed, serverless service that serves foundation models from many providers (Amazon Nova and Titan, Anthropic Claude, Meta Llama, Mistral, Cohere, AI21, Stability AI, and others) through a single API. Because there are no servers to run and the API is shared, you can compare candidate models and swap one for another without re-architecting the application. The provider roster changes often, so name a representative subset rather than treating any list as exhaustive.
- Bigger model is not automatically the right model
Model selection weighs cost, latency, modality, context window, customization path, language coverage, and compliance against the specific task, not raw capability alone. A smaller or distilled model is the correct answer when unit cost and speed dominate a narrow, well-scoped task, and a larger model only earns its keep when the task genuinely needs the extra capability.
Trap Reaching for the largest or most capable model for every workload, when a cheaper, faster small model meets a narrow task at lower cost.
5 questions test this
- A healthcare startup must deploy a generative AI assistant that fits within a tight memory and compute budget for a single, well-scoped…
- A startup must deploy a generative AI feature that runs at a low cost per request and responds with low latency, but it cannot tolerate a…
- An online retailer runs millions of product-categorization requests each day through a large foundation model (FM) on Amazon Bedrock.…
- A retail company is building a real-time customer service chatbot on Amazon Bedrock. The chatbot must return responses to users as quickly…
- A company is designing a multi-agent system on Amazon Bedrock with a supervisor agent coordinating three specialized sub-agents for…
- Bedrock cost scales with input plus output tokens
Bedrock on-demand pricing is token-based, charged per token processed with separate rates for input (prompt) tokens and output (completion) tokens. A longer prompt or a more verbose answer therefore costs more, and a larger model costs more per token than a smaller one, making prompt length, response length, and model choice all direct cost levers. Use the Bedrock pricing page as the only authoritative source for actual per-token figures.
Trap Assuming only output tokens are billed, when input (prompt) tokens are charged too, so a long fixed context drives cost even with short answers.
- Match the model's modality to the task
Model selection must match input and output modality: text-only, image generation (diffusion-family models such as Stability AI), or multimodal models that accept image plus text and return text. A text-only model cannot serve an image use case no matter how capable it otherwise is, so modality is a hard filter applied before any quality comparison.
Trap Picking a model on benchmark quality first and modality second, when a text-only model can never serve an image task however capable it is.
- Larger models trade capability for higher latency
Larger, higher-capability models generally respond more slowly, so latency is a first-class selection criterion. Interactive, real-time experiences such as chat or autocomplete push toward a smaller, faster model, whereas an offline batch summarization job can tolerate a slower, stronger one without hurting the user.
Trap Choosing the strongest model for a real-time chat or autocomplete feature, when its higher latency degrades the interactive experience a smaller model would keep fast.
- Context window is a hard shared token ceiling
The context window is a finite token budget that the prompt and the generated completion must share, a hard ceiling, not a soft guideline. A model whose window is too small truncates a long document regardless of its capability, so a recurring symptom of "the long document keeps getting cut off" points to an undersized context window, or to using RAG to retrieve only the relevant chunks instead of stuffing the whole document in.
Trap Treating the context window as covering only the input prompt, when the generated completion shares the same token budget, so a long answer can exhaust it too.
4 questions test this
- A law firm wants to use Amazon Bedrock to summarize lengthy contracts that can be several hundred pages long, with each contract submitted…
- A company wants its Amazon Bedrock assistant to answer questions accurately from a 500-page technical manual that is too large to fit in…
- A company wants a foundation model to answer questions using a large library of technical documents. The library is far too large to fit in…
- A financial services company is evaluating whether to use few-shot prompting or fine-tuning for adapting a foundation model deployed…
- Confirm multi-lingual support per model
Language coverage is an explicit selection criterion because models do not all support the same languages. An application that must understand or generate non-English text needs a model trained on those languages, which can rule a candidate in or out before cost or latency even enter the decision.
Trap Assuming any capable FM handles every language, when language coverage varies per model and an unsupported language rules a candidate out before cost or latency matter.
- Not every model supports fine-tuning customization
The intended customization path (prompting, RAG, or fine-tuning) is itself a model-selection criterion, because not every Bedrock model can be fine-tuned. Deciding the customization approach up front can disqualify candidate models that support only prompting and retrieval, so settle the approach before settling the model.
Trap Selecting a model on capability and assuming you can fine-tune it later, when not every Bedrock model supports fine-tuning and the choice can lock you out.
- Prompt caching reuses a large stable context
Prompt caching lets Bedrock cache a static prefix of the prompt (a long system prompt or a fixed document resent across many queries) and skip recomputing it on later calls, so cached-read tokens bill at a reduced rate and latency drops. It is the cost-and-latency lever when the same large, unchanging context is resent on every request; the cached prefix must stay byte-identical between calls or the cache misses.
Trap Expecting prompt caching to help when the reused context changes between calls, since the cached prefix must stay byte-identical or every request misses the cache.
- Inference parameters tune sampling, not knowledge
Inference parameters shape how a model samples and how long it generates at request time, without retraining or changing any weight. They add no knowledge and cannot fix a wrong answer: a factually wrong or out-of-date response is a grounding problem solved by RAG or fine-tuning, never by nudging temperature. Treat these parameters as controls over randomness and length only.
Trap Raising or lowering temperature to fix a factually wrong answer, when sampling parameters change variability and length but never the model's knowledge.
- Lower temperature gives focused deterministic output
Temperature reshapes the next-token probability distribution: a low value near 0 steepens it so the model favors its highest-probability tokens, giving focused, repeatable, more-deterministic output, the right setting for extraction, classification, or any task needing a consistent answer. A high temperature flattens the distribution toward lower-probability tokens for more varied, creative output.
Trap Raising temperature to make output more accurate or consistent, when higher temperature increases randomness and a low value is what gives focused, repeatable answers.
13 questions test this
- A media company is using Amazon Bedrock to generate creative marketing copy for advertising campaigns. The team wants the model to produce…
- A company is developing a multiple-choice quiz application using Amazon Bedrock foundation models. The application requires consistent and…
- A financial services company is building a document classification application using Amazon Bedrock. The application must consistently…
- A data analytics company is testing different foundation models in Amazon Bedrock for a text summarization application. The team wants to…
- A machine learning engineer is building a customer service chatbot using Amazon Bedrock. The chatbot needs to provide consistent and…
- A company uses Amazon Bedrock to power a customer support knowledge assistant. The team notices that the model returns varied and creative…
- A healthcare company is using Amazon Bedrock to build an application that analyzes patient symptoms and provides diagnostic suggestions to…
- A financial services company is building a customer support chatbot using Amazon Bedrock. The chatbot must provide consistent and accurate…
- A financial services company is using Amazon Bedrock to generate investment research reports. The reports require factual accuracy and…
- A data analytics company is using Amazon Bedrock to generate executive summaries from financial reports. The team notices that the model…
- A financial services company uses Amazon Bedrock to build a document analysis application. The application must extract specific data…
- A legal technology company is using Amazon Bedrock to generate contract clauses. The company requires highly consistent and predictable…
- A financial services company is using Amazon Bedrock to generate standardized regulatory compliance reports. The reports must follow…
- Top-p (nucleus) caps cumulative probability mass
Top-p, or nucleus sampling, restricts sampling to the smallest set of most-likely tokens whose cumulative probability reaches p: for p = 0.8, only the top 80% of the probability mass. Lowering top-p removes lower-probability tokens and shrinks the candidate pool, reducing output variability in the same direction as a lower temperature.
Trap Reading top-p as a fixed count of tokens, when it bounds cumulative probability mass so the candidate pool size varies with the distribution's shape.
- Top-k limits sampling to the k likeliest tokens
Top-k restricts sampling to the k most-likely next tokens: set k = 50 and the model only considers the 50 most probable candidates. Lowering k narrows the pool and reduces variability, the same direction as lowering temperature or top-p; the three are complementary randomness levers, narrowed together for consistency and loosened together for creativity.
Trap Confusing top-k with top-p, when top-k caps a fixed count of tokens while top-p caps a cumulative probability share.
- Max-tokens caps length but not quality
The maximum-response-length parameter caps how many tokens the completion can contain, directly bounding both latency and output cost since you pay per output token. It does not improve answer quality, and setting it too low truncates a legitimately long answer mid-sentence. Use it to control cost or stop run-on responses, not to make answers better.
Trap Raising max-tokens expecting a higher-quality answer, when the parameter only bounds response length and cost, not correctness.
- RAG grounds an FM on private current data
Retrieval Augmented Generation feeds an FM relevant information from your own data sources at query time, improving the relevance and accuracy of answers without retraining or fine-tuning. Because you update the data store rather than the model weights, RAG serves frequently changing or private information and reduces hallucination by grounding each answer in retrievable source text. Managed implementations also return citations so accuracy can be checked.
Trap Assuming RAG retrains or updates the model's weights with your data, when it leaves the weights untouched and injects retrieved text into the prompt at query time.
17 questions test this
- A pharmaceutical company wants a generative AI assistant to answer staff questions using proprietary research data that must not be used to…
- A company wants a foundation model (FM) to answer employee questions using internal policy documents that are updated every week. The…
- A company wants its Amazon Bedrock assistant to answer questions accurately from a 500-page technical manual that is too large to fit in…
- A company wants a foundation model to answer questions using a large library of technical documents. The library is far too large to fit in…
- A startup has no existing database infrastructure and limited engineering resources. The startup wants to connect an Amazon Bedrock…
- A company wants to build an application that uses a foundation model (FM) in Amazon Bedrock to answer employee questions based on the…
- A company wants a foundation model on Amazon Bedrock to answer employee questions using a product catalog that is updated several times per…
- A team wants to understand why Retrieval Augmented Generation (RAG) helps a foundation model produce more accurate answers about a…
- An online retailer wants a foundation model to recommend products using a catalog that changes daily. The retailer wants to keep responses…
- A retail company already has product catalog and FAQ content stored in Amazon S3. The company wants a generative AI chatbot to answer…
- A company wants a generative AI assistant that only answers employee questions by retrieving information from a static collection of…
- A company is comparing FM customization strategies in Amazon Bedrock. The company wants to ground model responses in its own documents and…
- A company's product catalog changes weekly, and an assistant built on a foundation model frequently returns outdated information. The…
- A financial services company wants its generative AI assistant to answer employee questions using the company's internal policy documents,…
- A healthcare provider wants a generative AI assistant to answer clinician questions strictly from its internal medical reference library…
- An insurance company wants a generative AI assistant to answer employee questions by referencing an external repository of policy…
- A financial services company wants its Amazon Bedrock chatbot to answer questions by using an internal policy library that is updated…
- RAG pipeline: chunk, embed, store, retrieve, augment
The RAG pipeline runs end to end: chunk source documents into passages, embed each chunk into a vector with an embedding model, and store the vectors in a vector store; then at query time embed the user question with the same model, retrieve the most similar chunks, and augment the prompt with them so the FM generates a grounded answer. Retrieving only the relevant chunks rather than stuffing the whole corpus is what keeps RAG cheaper and lower-latency than enlarging the prompt.
Trap Augmenting the prompt with the whole corpus instead of the retrieved chunks, which erases the cost and latency advantage RAG gets from retrieving only relevant passages.
- Embeddings place similar text near each other
An embedding is a fixed-length numeric vector produced by an embedding model that places semantically similar text close together in vector space. Retrieval then runs nearest-neighbour similarity search over those vectors (performed by the vector store, not the embedding model) and the query must be embedded with the same model used for the stored chunks, or the distances are meaningless.
Trap Embedding stored documents and live queries with two different embedding models, which puts them in incomparable vector spaces and breaks retrieval.
3 questions test this
- A company is building a Retrieval Augmented Generation (RAG) application that must perform semantic similarity (k-NN) searches across…
- A company already operates an Amazon OpenSearch Service domain for application log analytics. The company now wants to add large-scale…
- A streaming media company is building a new semantic search feature for its catalog and must store hundreds of millions of content…
- Bedrock Knowledge Bases is managed RAG
Amazon Bedrock Knowledge Bases is the managed AWS service that implements the whole RAG pipeline (ingestion, chunking, embedding, storage, and retrieval) so you do not build and operate it yourself; you point it at a data source and a vector store and it handles the rest, returning citations with each answer. It is the answer for "ground an FM on our documents without building RAG infrastructure," and a knowledge base can also be attached to a Bedrock agent.
Trap Standing up your own chunking, embedding, and vector-retrieval pipeline when Bedrock Knowledge Bases delivers the same managed RAG without building the infrastructure.
20 questions test this
- A pharmaceutical company wants a generative AI assistant to answer staff questions using proprietary research data that must not be used to…
- A financial services company is building a customer support chatbot using Amazon Bedrock Knowledge Bases with documents stored in Amazon…
- A financial services company wants to build an internal assistant that answers employee questions by using the company's private policy…
- A company currently pastes an entire 80-page employee handbook into every Amazon Bedrock prompt so the model can answer HR questions. Input…
- A company wants its Amazon Bedrock assistant to answer questions accurately from a 500-page technical manual that is too large to fit in…
- A company wants a foundation model to answer questions using a large library of technical documents. The library is far too large to fit in…
- A startup has no existing database infrastructure and limited engineering resources. The startup wants to connect an Amazon Bedrock…
- A company wants to build an application that uses a foundation model (FM) in Amazon Bedrock to answer employee questions based on the…
- A logistics company wants a generative AI application that lets a user state a goal in natural language, after which the application…
- A company wants a foundation model on Amazon Bedrock to answer employee questions using a product catalog that is updated several times per…
- A company is building a RAG application and wants the LEAST operational effort to ingest documents, chunk them, generate embeddings, store…
- A retail company already has product catalog and FAQ content stored in Amazon S3. The company wants a generative AI chatbot to answer…
- A company wants a generative AI assistant that only answers employee questions by retrieving information from a static collection of…
- A company is comparing FM customization strategies in Amazon Bedrock. The company wants to ground model responses in its own documents and…
- A compliance team uses a foundation model in Amazon Bedrock to answer questions about regulatory documents that are revised frequently. The…
- A legal firm is building a document research assistant using Amazon Bedrock Knowledge Bases. The application must display which source…
- A healthcare provider wants a generative AI assistant to answer clinician questions strictly from its internal medical reference library…
- An insurance company wants a generative AI assistant to answer employee questions by referencing an external repository of policy…
- A financial services company wants its Amazon Bedrock chatbot to answer questions by using an internal policy library that is updated…
- A marketing company needs its Amazon Bedrock assistant to always respond in the company's distinctive brand voice and to reference product…
- Vector store options across AWS managed services
Bedrock Knowledge Bases lets you select from several vector stores: Amazon OpenSearch Serverless and OpenSearch Service managed clusters, Amazon Aurora PostgreSQL via the pgvector extension, Amazon Neptune Analytics for graph data (GraphRAG), the cost-effective Amazon S3 Vectors store, and the third-party stores Pinecone, Redis Enterprise Cloud, and MongoDB Atlas; you can also connect an Amazon Kendra index for managed retrieval instead of a raw vector store. The exam tests mapping a scenario to the right store, not deep internals.
Trap Selecting plain Amazon RDS for PostgreSQL or DocumentDB as a Knowledge Bases vector store. They hold vectors as databases but are not selectable stores; only Aurora PostgreSQL is.
4 questions test this
- A news organization is building a semantic search application where newly published article embeddings must become searchable almost…
- A logistics company stores highly connected data that represents relationships between shipments, locations, and customers as a graph. The…
- A company already operates an Amazon OpenSearch Service domain for application log analytics. The company now wants to add large-scale…
- A retail company already runs its transactional application data on Amazon Aurora PostgreSQL-compatible edition. The company wants to add…
- OpenSearch is the default new-RAG vector engine
Amazon OpenSearch Service, including OpenSearch Serverless, provides a k-NN vector engine and is the common default for a new, purpose-built RAG workload. Choose it when no existing database has to hold the vectors and you want a search-native store. The Bedrock console can even create an OpenSearch Serverless store for you automatically.
Trap Reaching for OpenSearch when relational data already lives in PostgreSQL, where co-locating embeddings via Aurora pgvector fits better than a separate search-native store.
5 questions test this
- A company needs a scalable search service that can store vector embeddings and also support traditional keyword search for a retrieval…
- A news organization is building a semantic search application where newly published article embeddings must become searchable almost…
- A company is building a Retrieval Augmented Generation (RAG) application that must perform semantic similarity (k-NN) searches across…
- A company already operates an Amazon OpenSearch Service domain for application log analytics. The company now wants to add large-scale…
- A streaming media company is building a new semantic search feature for its catalog and must store hundreds of millions of content…
- pgvector keeps embeddings beside PostgreSQL data
Amazon Aurora PostgreSQL-Compatible Edition supports embeddings through the pgvector extension and is the PostgreSQL store you select for a Bedrock Knowledge Base. Choose it when relational operational data already lives in PostgreSQL and you want embeddings and business data in one database rather than a separate vector store. Note that plain RDS for PostgreSQL supports pgvector as a database but is not a selectable Knowledge Bases store, only Aurora is.
Trap Selecting RDS for PostgreSQL as the Knowledge Bases pgvector store, when only Aurora PostgreSQL is a selectable store despite RDS also supporting the extension.
- Neptune for vectors over graph data
Amazon Neptune Analytics adds vector similarity search to graph data, the basis of GraphRAG in Bedrock Knowledge Bases. Choose it when your knowledge is already a graph of relationships between entities and you want similarity search over that graph rather than standing up a separate vector engine.
Trap Standing up a separate vector engine when the knowledge is already a graph of entity relationships that Neptune Analytics can search in place via GraphRAG.
2 questions test this
- Kendra is managed retrieval without a raw vector index
Amazon Kendra is a managed intelligent enterprise-search service that can act as the retriever for RAG without you operating a raw vector index at all. Choose it when you want managed enterprise search as the retrieval layer instead of provisioning and tuning your own vector engine.
Trap Provisioning and tuning a raw vector engine for enterprise search when Kendra acts as a managed RAG retriever without one.
- Customization ladder from cheapest to most expensive
The FM customization approaches form a cost/effort ladder: prompt engineering and in-context learning (cheapest, weights untouched), then RAG (moderate, needs embeddings and a vector store), then fine-tuning (high, needs labeled data and a training run), then pre-training from scratch (most expensive by far). The design skill is choosing the lowest rung that meets the requirement rather than reaching past it.
Trap Climbing straight to fine-tuning when prompt engineering or RAG, the cheaper lower rungs, already meet the requirement without touching weights.
4 questions test this
- A company is evaluating ways to customize a foundation model in Amazon Bedrock. The company wants to understand which approach generally…
- A company is comparing FM customization approaches on Amazon Bedrock and wants to understand which approach is the MOST resource-intensive…
- A startup has a very limited budget and wants a foundation model on Amazon Bedrock to use a small set of reference information when…
- A company is using Amazon SageMaker JumpStart to deploy a foundation model for customer intent classification. After implementing few-shot…
- Pre-training from scratch is almost never the answer
Pre-training builds a foundation model from scratch on a vast corpus and is by far the most expensive option, in data, compute, and time. It is essentially never the AI-practitioner answer, because the whole point of using an FM is to reuse an expensive pre-trained base rather than fund another one, so "train a model from scratch" in a stem is almost always a distractor.
Trap Choosing pre-training a model from scratch when prompting, RAG, or fine-tuning would meet the requirement at a fraction of the cost.
3 questions test this
- A company is comparing FM customization approaches on Amazon Bedrock and wants to understand which approach is the MOST resource-intensive…
- A healthcare technology company has thousands of labeled prompt-response pairs and wants a foundation model to consistently adopt its…
- For which scenario is starting from a pre-trained model in Amazon SageMaker JumpStart MOST appropriate instead of building a model from…
- RAG vs fine-tuning: facts versus behavior
RAG supplies live, changing, or private facts with citations by updating the data store, not the weights; fine-tuning teaches a durable style, format, persona, or domain behavior by updating the weights, and goes stale until retrained. RAG injects facts at query time without changing behavior; fine-tuning changes behavior without supplying live facts. They are complementary, and many real designs use both rather than choosing one.
Trap Fine-tuning a model to inject frequently changing facts, when RAG updates a data store without a retraining run and keeps answers current.
6 questions test this
- An online retailer wants a foundation model to recommend products using a catalog that changes daily. The retailer wants to keep responses…
- A financial services company wants a foundation model on Amazon Bedrock to consistently produce customer communications that match the…
- A legal services firm wants an Amazon Bedrock foundation model to consistently use the firm's specialized legal terminology, reasoning…
- A media company wants its Amazon Bedrock model to consistently respond in a specific brand voice and structured output format across all…
- A compliance team uses a foundation model in Amazon Bedrock to answer questions about regulatory documents that are revised frequently. The…
- A marketing company needs its Amazon Bedrock assistant to always respond in the company's distinctive brand voice and to reference product…
- Bedrock Agents perform multi-step tool-using tasks
An agent turns a single FM response into autonomous multi-step work: the model breaks a request into steps, calls external APIs or tools, queries knowledge bases, and reasons over intermediate results before answering. Amazon Bedrock Agents is the managed capability that connects an FM to action groups (backed by AWS Lambda functions or APIs) and to Knowledge Bases, so one agent can both retrieve grounding data and take real actions, for example, look up an order and then issue a refund.
Trap Reaching for RAG when the task also has to take real actions like issuing a refund, since RAG only retrieves grounding data while a Bedrock agent calls tools too.
13 questions test this
- An insurance company wants an assistant that, from a single customer request, looks up an existing claim's status, retrieves the policy…
- A logistics company already uses a foundation model with a knowledge base to answer shipping policy questions. The company now wants the…
- An insurance company wants a generative AI application that lets employees ask a question in plain language and then automatically…
- An IT operations team wants a generative AI solution where an employee can describe a problem in plain language, and the solution then…
- A travel company wants to build an AI assistant that, within one customer conversation, looks up a loyalty point balance, books a flight,…
- A retail company wants to build a generative AI assistant that can accept a customer request in natural language, then automatically break…
- A logistics company wants a generative AI application that lets a user state a goal in natural language, after which the application…
- A company already runs a generative AI application on Amazon Bedrock that answers single-turn questions. The company now wants to add the…
- A development team needs a generative AI solution that can reason about a user request, determine the actions required, and call external…
- A media company needs a feature that summarizes a single news article into one paragraph when a user clicks a button. Each request is…
- A travel company is building an assistant on Amazon Bedrock that must interpret a user request, break it into steps, call internal booking…
- Which statement BEST describes the role of an AI agent in a generative AI application?
- A company already uses a single-turn foundation model through Amazon Bedrock to summarize documents. The company now wants the model to…
- Reserve agents for genuinely multi-step work
An agent's planning and orchestration overhead is over-engineering for a single prompt-and-response or a one-shot lookup; reserve it for genuinely multi-step or tool-dependent requests. When one generation answers the question, a plain FM call is correct; when one retrieval answers it, RAG is the cheaper correct answer.
Trap Wrapping a single prompt-and-response in a Bedrock agent, adding planning overhead and cost where one plain FM call would do.
11 questions test this
- A company wants a foundation model on Amazon Bedrock to rewrite a single block of customer-provided text in a more professional tone when a…
- A logistics company already uses a foundation model with a knowledge base to answer shipping policy questions. The company now wants the…
- An insurance company wants a generative AI application that lets employees ask a question in plain language and then automatically…
- An IT operations team wants a generative AI solution where an employee can describe a problem in plain language, and the solution then…
- A travel company wants to build an AI assistant that, within one customer conversation, looks up a loyalty point balance, books a flight,…
- A retail company wants to build a generative AI assistant that can accept a customer request in natural language, then automatically break…
- A company already runs a generative AI application on Amazon Bedrock that answers single-turn questions. The company now wants to add the…
- A media company needs a feature that summarizes a single news article into one paragraph when a user clicks a button. Each request is…
- A travel company is building an assistant on Amazon Bedrock that must interpret a user request, break it into steps, call internal booking…
- Which statement BEST describes the role of an AI agent in a generative AI application?
- A company already uses a single-turn foundation model through Amazon Bedrock to summarize documents. The company now wants the model to…
- MCP is the open standard for tool connectivity
The Model Context Protocol (MCP) is an open standard for connecting AI models and applications to external tools, data sources, and workflows, the standardized integration layer for the agentic pattern. The AIF-C01 blueprint lists it under the role of agents in multi-step tasks, alongside Amazon Bedrock Agents and agentic AI.
- Prompt routing directs requests to the right model
Amazon Bedrock intelligent prompt routing exposes one serverless endpoint that routes each request to a different model within the same model family, predicting per-request which model gives the best response and routing accordingly to balance quality and cost: a cheaper, faster model for simple prompts, a stronger one for hard prompts. It chooses among models in one family (for example Claude Haiku versus Claude Sonnet), not across unrelated providers.
Trap Expecting prompt routing to pick across unrelated providers, when it routes only among models within one family such as Claude Haiku versus Claude Sonnet.
3 questions test this
- A company's single generative AI application on Amazon Bedrock handles requests that vary widely in difficulty. The company wants the…
- A travel company operates one generative AI application on Amazon Bedrock that receives customer requests of widely varying difficulty. The…
- A healthcare information company runs a single generative AI application on Amazon Bedrock that answers patient questions ranging from…
- Knowledge Bases metadata filtering narrows retrieval
In Amazon Bedrock Knowledge Bases you can attach metadata (such as product version, document type, business unit, or project ID) to documents and apply matching filters at query time, so retrieval returns a well-defined subset of the semantically relevant chunks instead of everything that merely matches. It pre-filters before the similarity search, improving relevance and personalizing results, for example, returning only the current software version or one team's documents.
Trap Relying on the FM to ignore stale or other teams' chunks after retrieval, when metadata filtering excludes them before the similarity search returns them at all.
5 questions test this
- A healthcare organization is implementing a RAG-based application using Amazon Bedrock Knowledge Bases to help physicians access patient…
- A company is building a customer support chatbot using Amazon Bedrock Knowledge Bases. The knowledge base contains product documentation…
- A technology company has deployed Amazon Bedrock Knowledge Bases with product documentation spanning multiple software versions. Users…
- A healthcare company uses Amazon Bedrock Knowledge Bases to build a question-answering application for medical professionals. The company…
- A healthcare organization is implementing a RAG application using Amazon Bedrock Knowledge Bases to allow doctors to query patient records…
Prompt Engineering
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
Training & Fine-Tuning
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
FM Evaluation
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
Guidelines for Responsible AI
Responsible AI Development
Read full chapterCheat sheet
Sharp facts the exam loves — scan these before test day.
- Responsible AI is several named dimensions, not one score
AIF-C01 frames responsible AI as a set of named features a system must satisfy together: the Task 4.1 exam guide lists fairness, bias, inclusivity, robustness, safety, and veracity, while the AWS responsible-AI page names eight core dimensions (fairness, explainability, privacy and security, safety, controllability, veracity and robustness, governance, transparency). The point the exam tests is that no single dimension implies the rest: a model can be accurate yet unfair, or fluent yet untruthful, so a stem describes a scenario and you name the dimension it's about.
Trap Treating high overall accuracy as proof a system is responsible: accuracy speaks to one dimension and says nothing about fairness, privacy, or veracity.
- High accuracy does not prove fairness
Fairness considers the impact on different groups of stakeholders: the system should not systematically advantage or disadvantage a demographic group. A model can post high overall (average) accuracy while still being unfair to a subgroup, so a single global accuracy number never establishes fairness; you have to slice metrics by group. This is why subgroup analysis, not a headline accuracy figure, is the fairness check.
Trap Reporting one aggregate accuracy number as evidence the model is fair: it can hide a subgroup the model serves badly.
- Bias is the cause, unfairness is the outcome
Bias is skew that enters from unrepresentative training data or from features that proxy for a protected attribute; the resulting unfair outcome is what that bias produces. Treat bias as the cause and unfairness as the effect, and the earliest, cheapest defense is representative, balanced, curated data: fixing skew before training beats correcting predictions after. Bias mitigation is the ongoing work of measuring and reducing that skew.
Trap Reaching only for a post-training fairness fix while leaving skewed training data in place: the bias re-enters every retrain.
8 questions test this
- A bank uses an Amazon Bedrock foundation model to summarize loan applicant profiles for reviewers. The bank discovers that the model…
- A bank uses an Amazon Bedrock model to draft loan decision summaries. A review finds the model consistently uses more negative language for…
- A company is building a facial analysis application in Amazon SageMaker AI that will be used by customers around the world. The company…
- A health technology company trained a wellness model in Amazon SageMaker AI mostly on data from young adults. The model now produces…
- A retail company uses Amazon SageMaker AI to train a customer-sentiment model. Investigators discover that many training examples were…
- A hospital network uses Amazon SageMaker AI to train a model that predicts patient health risks. The training data was collected only from…
- A staffing firm uses an Amazon Bedrock foundation model to rank job applicants. An internal audit finds that applicants from a particular…
- A company is developing a voice-enabled assistant in Amazon SageMaker AI that will be used by customers in many countries. The company…
- In generative AI, the veracity failure is hallucination
Veracity (truthfulness) means output that is factually accurate and not misleading; for generative AI its headline failure mode is hallucination: fluent, confident text that is simply wrong. Keep it distinct from a safety failure (toxic or harmful output) and a fairness failure (biased output), because the exam pairs each failure with a different control: grounding/RAG for hallucination, content filters for toxicity, bias analysis for fairness.
Trap Calling hallucinated output a safety or bias problem: fluent-but-false text is a veracity failure, and the fix (grounding) differs from a toxicity or bias fix.
4 questions test this
- A telecommunications company deploys an Amazon Bedrock assistant to answer billing questions. The assistant sometimes states charges and…
- A financial services company launched a customer support assistant that is built on Amazon Bedrock. Users report that the assistant…
- A retailer's Amazon Bedrock-powered chatbot confidently states an incorrect return policy. Customers act on the wrong information, file…
- A law firm uses an Amazon Bedrock model to draft legal briefs. Reviewers find the model invented case citations that do not exist but were…
- SageMaker Clarify detects and measures bias
Amazon
SageMaker Clarifyis the AWS service that detects potential bias and computes bias metrics across the lifecycle: during data preparation, after training, and on deployed models. When a scenario asks how to measure whether a dataset or model is biased across groups, Clarify is the answer; it also produces SHAP-based feature-attribution explainability, but bias measurement is its Task 4.1 role.Trap Reaching for SageMaker Model Monitor to measure bias on a dataset or freshly trained model: Model Monitor watches a live endpoint over time; point-in-time detection is Clarify.
3 questions test this
- A data scientist wants to use a single AWS service to examine both imbalances in a training dataset and bias in the predictions of the…
- Before training a hiring-recommendation model, a data scientist wants to inspect the training dataset to determine whether certain…
- A data scientist has finished training a credit-approval model and wants to evaluate whether the model's predictions favor or disadvantage…
- Clarify measures pre-training (data) bias before you train
Amazon
SageMaker Clarifycomputes pre-training bias on the raw dataset before any model exists, so you catch skew before spending on training. The metrics are model-agnostic and include Class Imbalance (CI) and Difference in Proportions of Labels (DPL) among eight pre-training measures. A stem that says "check whether the training data is skewed before training" maps to Clarify pre-training bias metrics.Trap Assuming a balanced count of records per group rules out data bias: Class Imbalance is only one metric; DPL can still flag skewed positive-outcome labels.
3 questions test this
- A data scientist wants to use a single AWS service to examine both imbalances in a training dataset and bias in the predictions of the…
- Before training a hiring-recommendation model, a data scientist wants to inspect the training dataset to determine whether certain…
- A data science team at a bank is preparing a training dataset for a credit-risk model in Amazon SageMaker AI. Before training begins, the…
- Clarify measures post-training (model) bias in predictions
Amazon
SageMaker Clarifyalso computes post-training bias on the trained model's predictions, comparing outcomes across groups with eleven metrics including Difference in Positive Proportions in Predicted Labels (DPPL) and Disparate Impact (DI). This separates bias the model learned from bias already sitting in the data: clean data can still yield a model whose predictions skew by group.Trap Concluding a model is unbiased because the input data passed pre-training checks: the model can still learn skew, which only post-training metrics like DPPL/DI surface.
7 questions test this
- A company wants to measure bias in a trained model before the model is deployed and to continuously detect whether bias appears in the…
- A data scientist wants to use a single AWS service to examine both imbalances in a training dataset and bias in the predictions of the…
- A data scientist has finished training a credit-approval model and wants to evaluate whether the model's predictions favor or disadvantage…
- A data science team is experimenting with a newly trained loan-eligibility model in a SageMaker notebook environment. Before the model is…
- A company needs a responsible AI workflow that analyzes a trained model for bias across demographic groups before the model goes live and…
- During model development, a data science team wants a single SageMaker capability that can both measure post-training bias across…
- A regulated financial company must provide auditors with a report that shows whether a trained loan-approval model produces fair outcomes…
- Bedrock Guardrails enforces safety and veracity across FMs
Amazon
Bedrock Guardrailsprovides configurable safeguards applied across foundation models to filter undesirable content in both user inputs and model responses, covering toxicity, denied topics, PII, prompt-attack attempts, and ungrounded (hallucinated) output. It is the answer whenever a chatbot or FM produces unsafe, off-topic, hallucinated, or PII-leaking text, and it works alongside (not instead of) grounding and human review.Trap Treating Guardrails as a complete jailbreak defense: its Prompt Attack filter reduces but does not eliminate prompt-injection success.
4 questions test this
- A company is building a generative AI application on Amazon Bedrock that creates marketing images from user prompts. The company must…
- Before releasing a generative AI application that is built on Amazon Bedrock to external customers, a company wants to reduce the risk of…
- A company wants to add responsible AI safeguards to a customer-facing chatbot built on Amazon Bedrock. The safeguards must block harmful…
- A company selected a high-performing but opaque proprietary foundation model (FM) on Amazon Bedrock. Because the model's internal reasoning…
- Guardrails content filters block harmful categories
Amazon
Bedrock Guardrailscontent filters detect and block harmful text or image content across predefined categories (Hate, Insults, Sexual, Violence, Misconduct, and Prompt Attack) each with an adjustable strength. This is the safety control for "block hateful, toxic, or violent generated content" scenarios, applied to both the prompt and the response.Trap Assuming content filters also stop the model from discussing a specific forbidden subject: category filtering is broad-harm; a named off-limits topic needs Denied topics.
- Guardrails denied topics refuse specific forbidden subjects
Amazon
Bedrock Guardrailsdenied topics let you define application-specific subjects the model must refuse to discuss, blocking them in user queries or model responses. This is the controllability/safety control for "stop the assistant from giving investment advice" or any named off-limits subject, distinct from the broad-harm content filters, which catch categories like hate or violence rather than a topic you specify.Trap Reaching for content filters to block a specific named subject like investment advice. Content filters catch broad-harm categories such as hate or violence, while a topic you define yourself is the job of Denied topics.
- Guardrails sensitive-information filters redact or block PII
Amazon
Bedrock Guardrailssensitive-information filters detect and either mask or block personally identifiable information (PII) in both prompts and responses, using probabilistic entity detection (SSN, date of birth, address, and more) plus custom regex patterns. This serves the privacy dimension, "redact or block personal data flowing through the model", for example masking PII in summarized call transcripts.Trap Reaching for Amazon Macie to redact PII flowing through a prompt or response. Macie discovers and classifies sensitive data at rest in S3, not inline model input and output.
- Guardrails contextual grounding reduces hallucination
Amazon
Bedrock Guardrailscontextual grounding checks detect hallucinations by flagging responses that are not grounded in the provided source (factually inaccurate or adding new information) or are irrelevant to the user's query. It is the veracity control for RAG apps, "ensure the answer stays grounded in the retrieved documents", and pairs naturally with a knowledge base that supplies that source.Trap Expecting content filters or denied topics to stop hallucinations: those target harmful or off-limits content; ungrounded-but-clean answers need contextual grounding checks.
- Guardrails is configuration-driven and model-agnostic
Amazon
Bedrock Guardrailsis defined as configuration applied independently of the underlying model, so one safety policy enforces consistently across the foundation models available inAmazon Bedrockinstead of being baked into a single model. You can even evaluate input and output through theApplyGuardrailAPI without invoking an FM, which lets the same policy front-end multiple models or a self-managed one.3 questions test this
- A company applies responsible AI content safeguards by using Amazon Bedrock Guardrails for its models on Amazon Bedrock. The company also…
- A company selected a high-performing but opaque proprietary foundation model (FM) on Amazon Bedrock. Because the model's internal reasoning…
- A company runs multiple generative AI applications that use different foundation models, including a model hosted outside of Amazon…
- Model Monitor watches a live model for drift over time
Amazon
SageMaker Model Monitorcontinuously watches a deployed model in production against a baseline computed from the training data, alerting on drift across four monitor types: data quality, model quality (e.g. accuracy decay), bias drift, and feature-attribution drift, the last two powered bySageMaker Clarify. "Fair at launch but degrading in production" maps to Model Monitor, which runs on a real-time endpoint or a scheduled batch transform and computes metrics on tabular data only.Trap Reaching for Clarify alone to catch a model that drifts after deployment: Clarify is point-in-time; ongoing drift monitoring on a live endpoint is Model Monitor.
5 questions test this
- A company wants to measure bias in a trained model before the model is deployed and to continuously detect whether bias appears in the…
- A company has deployed an ML model to a SageMaker endpoint. The responsible AI team wants to be alerted when the relative importance of…
- A company has a fraud-detection model that has been running in production for several months. The company wants an automated way to be…
- A company needs a responsible AI workflow that analyzes a trained model for bias across demographic groups before the model goes live and…
- A retail company has deployed a recommendation model and wants its responsible AI team to be alerted automatically when the model's…
- Clarify detects point-in-time; Model Monitor watches over time
Detecting bias and monitoring bias are different jobs on AIF-C01:
SageMaker Clarifyis point-in-time bias detection on a dataset or a trained model, whileSageMaker Model Monitordoes continuous drift monitoring on a live endpoint (its bias-drift monitor is Clarify integrated). Stems with "over time," "in production," or "keeps degrading" select Model Monitor; "before vs after training" or "is this dataset skewed" select Clarify.Trap Selecting Clarify for a model that keeps degrading in production. Point-in-time detection is Clarify, but ongoing drift on a live endpoint is Model Monitor.
4 questions test this
- A company wants to measure bias in a trained model before the model is deployed and to continuously detect whether bias appears in the…
- A company has deployed an ML model to a SageMaker endpoint. The responsible AI team wants to be alerted when the relative importance of…
- A company has a fraud-detection model that has been running in production for several months. The company wants an automated way to be…
- A company needs a responsible AI workflow that analyzes a trained model for bias across demographic groups before the model goes live and…
- Amazon A2I routes risky predictions to human reviewers
Amazon Augmented AI (
Amazon A2I) is a managed human-in-the-loop service that routes selected ML predictions to human reviewers, removing the need to build review systems yourself. Typical triggers are low model confidence, high business impact, or sensitive content; it is the responsible control when an automated output alone is too risky to act on, and it works whether the model runs on AWS or elsewhere.Trap Reaching for A2I to measure or reduce bias: A2I adds human review of individual predictions; bias measurement is Clarify and ongoing monitoring is Model Monitor.
14 questions test this
- A bank wants its automated lending decisions to be auditable and wants uncertain ML predictions to receive human judgment in order to…
- A financial services company uses an ML model to extract data from loan documents. To support trustworthy and auditable decisions, the…
- A healthcare company is using Amazon Textract to extract information from patient intake forms. Due to compliance requirements, the company…
- An insurance company wants to add human oversight to its automated claims processing so that employees verify low-confidence document…
- An enterprise is building an application using Amazon Titan Text via Amazon Bedrock for generating customer support responses. The risk…
- A media company uses Amazon Rekognition for content moderation but wants to ensure human oversight for predictions where the AI confidence…
- A legal services firm uses an Amazon Comprehend custom entity recognizer to extract clause types from client contracts. To meet veracity…
- A responsible AI team is designing an ML pipeline and wants to add human oversight so that people can validate or correct predictions that…
- A company is building a responsible AI pipeline for a content moderation model. The company wants ambiguous or sensitive predictions to be…
- A company already has an ML model running in production and wants to route only its low-confidence inference results to human reviewers for…
- A healthcare company processes medical intake forms by using Amazon Textract. Because of the sensitive nature of the data, the company…
- A company uses a custom ML model deployed on Amazon SageMaker to make predictions. To improve trustworthiness, the company wants to…
- A streaming platform uses Amazon Rekognition to automatically moderate user-submitted thumbnail images. Even when the moderation…
- Which statement best describes the purpose of Amazon Augmented AI (Amazon A2I)?
- Some fairness practices are methods, not AWS services
Task 4.1 lists responsible practices that are not a single AWS service: analyzing label quality (are labels correct and consistent?), human audits (people review samples of model behavior), and subgroup analysis (slice metrics by demographic group instead of trusting one global accuracy number). When a stem asks how to assess fairness without naming a service, these methodology answers, not Clarify or Model Monitor, are correct.
Trap Naming SageMaker Clarify when the stem rules out tooling and asks for a practice: label-quality analysis, human audits, and subgroup analysis are methods, not services.
- Good datasets are inclusive, diverse, balanced, and curated
Responsible development starts with the data: Task 4.1 names inclusivity, diversity, balanced datasets, and curated data from trustworthy sources as the characteristics of a good dataset. Demographic over- or under-representation in training data translates directly into harms against those groups in the output, which is why fixing the dataset is the earliest lever for fairness, earlier and cheaper than correcting a trained model.
Trap Assuming that simply collecting more training data cures unfairness. Volume without representativeness leaves under-represented groups skewed; the real levers are diversity, balance, and curation.
7 questions test this
- A company is building a facial analysis application in Amazon SageMaker AI that will be used by customers around the world. The company…
- A health technology company trained a wellness model in Amazon SageMaker AI mostly on data from young adults. The model now produces…
- A hospital network uses Amazon SageMaker AI to train a model that predicts patient health risks. The training data was collected only from…
- Before fine-tuning a model in Amazon SageMaker AI, a healthcare company wants to reduce the legal and ethical risk that the model produces…
- A company uses Amazon SageMaker AI to train an image-recognition model. After deployment, the model identifies people with lighter skin…
- A retailer's fraud-detection model that was trained in Amazon SageMaker AI correctly flags very few fraudulent transactions because fraud…
- A company is developing a voice-enabled assistant in Amazon SageMaker AI that will be used by customers in many countries. The company…
- Bias is underfitting; variance is overfitting
Bias (underfitting) is a model too simple to capture the real X→Y relationship, so it performs poorly even on the training data and produces systematic inaccuracy for groups. Variance (overfitting) is a model that memorizes training data including noise, scoring well in training but failing to generalize to unseen data. Both leave the system wrong for the people it should serve, which is why the exam ties bias and variance to responsible-AI harms.
Trap Reading strong training-set accuracy as a healthy model: that is the signature of overfitting (high variance), which collapses on new data.
- Responsible model selection weighs sustainability
Choosing a model responsibly is not just picking the most accurate one: Task 4.1 calls out environmental considerations and sustainability as selection criteria. Very large foundation models carry a real energy and carbon footprint, so a smaller, distilled, or already-managed model that meets the requirement can be the more responsible (and usually cheaper) choice over reaching for the largest model by default.
Trap Defaulting to the largest, most capable model regardless of need: that ignores the sustainability and cost criteria the exam expects you to weigh.
3 questions test this
- A company wants to incorporate environmental sustainability into its responsible AI practices when building a text-generation feature in…
- An organization wants to incorporate environmental sustainability into its responsible AI practices when choosing a model in Amazon…
- A company wants to select a foundation model on Amazon Bedrock for a text summarization feature. As part of its responsible AI practices,…
- Generative AI carries legal and trust risks
Task 4.1 enumerates the legal and trust risks of working with generative AI: intellectual-property infringement claims (output reproducing copyrighted material, or training data used without rights), biased model outputs, hallucinations, loss of customer trust, and end-user risk in high-stakes domains. These are why responsible deployment layers controls rather than shipping raw model output into a consequential decision.
11 questions test this
- A fintech company offers an Amazon Bedrock tax assistant. The assistant tells a user they qualify for a deduction they are not entitled to,…
- A bank uses an Amazon Bedrock model to draft loan decision summaries. A review finds the model consistently uses more negative language for…
- A telecommunications company deploys an Amazon Bedrock assistant to answer billing questions. The assistant sometimes states charges and…
- A wellness company deploys a customer-facing assistant that is built on a foundation model on Amazon Bedrock. The assistant provides…
- A media company uses an Amazon Bedrock foundation model to generate marketing copy. The company's legal team discovers that some generated…
- A staffing firm uses an Amazon Bedrock foundation model to rank job applicants. An internal audit finds that applicants from a particular…
- A wellness company deploys an Amazon Bedrock assistant that answers health questions. The assistant sometimes provides unsafe guidance that…
- A healthcare company deploys a patient-facing assistant on Amazon Bedrock. After the assistant repeatedly provides inconsistent and…
- A retailer's Amazon Bedrock-powered chatbot confidently states an incorrect return policy. Customers act on the wrong information, file…
- A game studio uses an Amazon Bedrock image generation model to create new characters for a release. The legal team finds that several…
- A marketing agency uses a generative AI image model on Amazon Bedrock to create artwork for advertising campaigns. The legal team is…
- Layer controls for high-stakes generative output
The responsible answer for high-stakes or sensitive generative decisions is layered, not a single switch: ground the model with RAG (
Bedrock Knowledge Bases) to cut hallucination and provide citations, applyBedrock Guardrailsfor safety and PII, and route low-confidence or high-impact outputs to a human viaAmazon A2I. "Fully automate it" or "just trust the model" are the wrong answers whenever a stem signals high stakes.Trap Picking full automation or a single control for a high-stakes decision: the exam expects grounding plus guardrails plus human review combined.
Transparent & Explainable Models
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.
Security, Compliance, and Governance for AI Solutions
Securing AI Systems
Read full chapterCheat sheet
Sharp facts the exam loves — scan these before test day.
The AWS shared responsibility model makes AWS responsible for security of the cloud (physical infrastructure, the hypervisor, and the managed AI services such as
Amazon BedrockandAmazon SageMaker AIthemselves) while you are responsible for security in the cloud: IAM permissions, data classification and encryption, the prompts and fine-tuning datasets you supply, and network configuration. AWS does not decide who may call your model or protect the content you send it; that side of the line is always yours.Trap Assuming AWS secures your data and access because the AI service is fully managed. Managed covers the infrastructure, not your in-the-cloud configuration.
- A managed AI service still leaves your data and access to you
A managed service like
Amazon Bedrockbeing patched, isolated, and operated by AWS does not make your data or access secure on its own. Classifying data, choosing encryption, scoping IAM, and configuring network access all stay on the customer side of the shared responsibility line. "Fully managed" describes who runs the infrastructure, not who controls who can reach your data, which is a recurring Domain 5 distractor.Trap Picking "fully managed, so no extra security configuration is needed" for a Bedrock workload, when IAM scoping and network controls are still the customer's job.
- Scope IAM to least privilege for AI workloads
AWS Identity and Access Management (IAM)controls who can do what through identities and policies, and least privilege means granting each identity only the permissions it genuinely needs. For example, an application role allowed to invoke one specificAmazon Bedrockmodel but denied access to the raw training data inAmazon S3. AWS frames this as "grant only the permissions required to perform a task," which limits the blast radius if a credential leaks.Trap Attaching a broad managed policy like a full-access policy to a model-invocation role because it is convenient, instead of narrowing to the specific action and resource.
9 questions test this
- A company uses Amazon Bedrock for several AI workloads. The security team wants to control which users and applications are allowed to…
- A company wants to give its data science and operations teams different levels of access to its AI workloads. Data scientists must be able…
- An internal audit team needs read-only visibility into the Amazon Bedrock configuration and model inventory in an account. The team must…
- A security administrator wants to define a single reusable set of allowed Amazon SageMaker AI actions that can be attached to several…
- A financial services company wants to provide its external auditors with access to AWS compliance reports to validate controls for its…
- A security team must define exactly which Amazon Bedrock API actions an application is allowed to perform and which actions are denied.…
- A company runs Amazon SageMaker training jobs that must read datasets from a specific Amazon S3 bucket. The company wants to grant the…
- A security administrator must ensure that a group of analysts can invoke only two specific Amazon Bedrock foundation models and no others.…
- A company wants to follow the principle of least privilege when granting its developers access to Amazon SageMaker AI. Which IAM approach…
- Give workloads temporary credentials via IAM roles, not access keys
AWS recommends that workloads use temporary credentials with IAM roles rather than long-lived access keys embedded in code: a role supplies short-term, automatically rotated credentials that a service or application assumes, so there is no static secret to leak. When a scenario asks how to let an application call a model with temporary credentials, the answer is an IAM role; long-term access keys are reserved for the narrow cases that genuinely cannot use a role.
Trap Hard-coding an IAM user's long-lived access key in the application to call the model, when an assumed IAM role would supply rotating temporary credentials instead.
8 questions test this
- A data science team uses Amazon SageMaker AI to run training jobs. The training jobs must read datasets from Amazon S3 and write model…
- A containerized application that runs as an Amazon ECS task must call Amazon Comprehend to analyze customer feedback. The company wants the…
- A data engineering team runs AWS Glue jobs that must read training data and start processing in Amazon SageMaker AI. The team wants the…
- A company runs Amazon SageMaker training jobs that must read datasets from a specific Amazon S3 bucket. The company wants to grant the…
- A company runs an application on Amazon EC2 instances that must call Amazon Bedrock to generate text responses. The company wants to avoid…
- A company already manages employee identities in its corporate identity provider. The company wants those employees to access Amazon…
- A company wants to allow a partner that operates in a separate AWS account to run inference against the company's Amazon SageMaker AI…
- Data scientists at a company need short-lived, temporary credentials when they access Amazon SageMaker AI through the AWS Management…
- Use AWS KMS to encrypt data and model artifacts at rest
AWS Key Management Service (AWS KMS)creates and controls the cryptographic keys that encrypt data at rest (Amazon S3objects, training datasets, and model artifacts) and integrates with services such asAmazon S3,Amazon SageMaker AI, andAmazon Bedrockso encryption is applied consistently. When a stem asks how to protect data or model artifacts on disk, manage and rotate keys, or use customer-managed keys, the answer is AWS KMS.Trap Reaching for AWS KMS to protect data while it travels between client and service, when KMS encrypts data at rest and TLS is what protects data in transit.
5 questions test this
- A company runs training jobs in Amazon SageMaker and stores the training datasets in Amazon S3. The company wants to ensure that the stored…
- A company trains custom models in Amazon SageMaker and stores the resulting model artifacts in Amazon S3. A compliance policy requires the…
- A company encrypts the datasets and model artifacts used throughout its AI pipeline. The security team wants a single AWS service to…
- A company stores the datasets used in its ML pipeline in Amazon S3. To meet compliance requirements, the company wants to encrypt the data…
- A financial services company uses sensitive customer data to fine-tune a model. To meet a compliance requirement, the company must be able…
- Encryption in transit protects data on the wire with TLS
Encryption at rest and encryption in transit are distinct controls: at-rest encryption (AWS KMS) protects stored bytes, while in-transit encryption protects data moving over the network using TLS (AWS requires TLS 1.2 and recommends TLS 1.3). A scenario about protecting data as it travels between client and service wants the in-transit / TLS answer, not at-rest key management.
Trap Choosing AWS KMS key management for a requirement about protecting data as it moves over the network, when in-transit protection comes from TLS.
4 questions test this
- A company already encrypts its ML model artifacts at rest by using AWS KMS keys. The company now wants to protect inference request data as…
- A company runs a distributed training job in Amazon SageMaker. Sensitive data is transmitted between the training instances over the…
- A company sends sensitive customer text from its application to an AWS AI service for analysis over the public internet. The company wants…
- A company already encrypts all of its API calls to Amazon Bedrock with TLS. The security team adds a new requirement that the API traffic…
- Encryption protects bytes; IAM and key policy decide access
Encrypting data with
AWS KMSprotects the bytes at rest but does not by itself decide who may decrypt them. That is governed by the KMS key policy together with IAM, which AWS describes as "ensuring that only trusted users have access to KMS keys." A bucket can be fully encrypted and still exposed if permissions are wrong, so a "who is allowed to read this" requirement is solved by IAM and key policy, not by adding more encryption.Trap Adding encryption to a bucket to fix an over-permissive access problem, when the exposure comes from IAM and bucket/key policy rather than from unencrypted data.
- S3 encrypts every new object by default with SSE-S3
Amazon S3applies server-side encryption with S3-managed keys (SSE-S3) as the base level of encryption for every bucket, so all new object uploads are encrypted at rest automatically, at no cost and with no configuration. Step up to server-side encryption with customer-managed KMS keys (SSE-KMS) when you need control over key policy, rotation, and access auditing.Trap Claiming S3 training data sits unencrypted until you turn encryption on. SSE-S3 is the automatic default for all new objects.
- Bedrock encrypts at rest and in transit, and accepts your KMS keys
Amazon Bedrockencrypts data both at rest and in transit, and lets you supply your ownAWS KMSkeys for resources such as model customization (fine-tuning) jobs, the resulting custom models, agents, and knowledge-base ingestion jobs. This reflects the shared responsibility split: AWS provides the encryption capability, while choosing and managing customer-managed keys remains your option.Trap Assuming Bedrock data is unencrypted unless you configure your own KMS keys, when Bedrock encrypts at rest and in transit by default and customer-managed keys are an added option.
- Use Amazon Macie to discover PII in S3 before training
Amazon Macieis a managed data-security service that uses machine learning and pattern matching to automatically discover and classify sensitive data (PII, financial information, and credentials) inAmazon S3. Its exam use case is finding sensitive data such as PII in source or training data before that data is used to train or fine-tune a model.Trap Reaching for Amazon Comprehend to scan S3 datasets for sensitive data, when Macie is the service that discovers and classifies PII directly in S3.
7 questions test this
- A company wants to detect sensitive data in the Amazon S3 buckets that feed its AI pipelines. A developer proposes writing and maintaining…
- A company stores generative AI chatbot conversation transcripts in Amazon S3 and uses them to improve its models. A compliance team wants a…
- An ML team ingests data from multiple business units into a central Amazon S3 bucket for model training. The team wants an automated,…
- A company stores large customer datasets in Amazon S3 to train an ML model. The compliance team wants to automatically discover whether…
- A company maintains a large Amazon S3 data lake that supplies several ML training pipelines. The security team wants a fully managed…
- A company has hundreds of S3 buckets that hold data for multiple AI projects. A security team wants broad, ongoing visibility into which…
- A company maintains a large Amazon S3 data lake that supplies data to multiple ML training pipelines. The security team wants an AWS…
- Macie reports findings but does not remediate the data
Amazon Macieflags and classifies sensitive data and generates findings, but it does not move, delete, redact, or encrypt the data for you. AWS frames the findings as something to "review and remediate as necessary." If the requirement is to remediate (mask, delete, or encrypt), Macie alone is not the answer; you act on its findings with other controls such as IAM, KMS, or downstream automation via EventBridge.Trap Choosing Macie to automatically mask or delete the PII it finds. Macie only detects and reports, leaving remediation to other controls.
- Use VPC interface endpoints with PrivateLink to keep traffic private
An
Amazon VPCinterface endpoint withAWS PrivateLinkestablishes a private connection to a service such asAmazon Bedrock, so model traffic stays on the AWS private network and your data "isn't available over the internet." When a stem asks how to connect privately to Bedrock or keep model traffic off the public internet, the answer is a VPC interface endpoint via PrivateLink.Trap Selecting a public endpoint secured with TLS to keep Bedrock traffic off the internet, when only a VPC interface endpoint with PrivateLink keeps the traffic on the AWS private network.
14 questions test this
- A financial services company runs an application in an Amazon VPC that invokes Amazon Bedrock foundation models. A company security policy…
- A company is building a generative AI application that calls Amazon Bedrock from resources inside its Amazon VPC. For security reasons, the…
- A company must invoke Amazon Bedrock from an Amazon VPC without sending the traffic over the public internet. Which statement best…
- A data analytics company runs Amazon SageMaker Studio inside an Amazon VPC that is configured without internet access. Data scientists need…
- A company hosts a real-time inference endpoint on Amazon SageMaker. Applications that run inside the company's Amazon VPC must connect to…
- A company runs a customer-facing application in an Amazon VPC that calls a deployed Amazon SageMaker AI real-time inference endpoint. The…
- A retail company is designing a generative AI application that runs in an Amazon VPC and must access Amazon Bedrock without using an…
- A company runs an application in an Amazon VPC that must invoke Amazon Bedrock without sending traffic over the public internet. The…
- A company runs workloads in an Amazon VPC that must call both Amazon Bedrock and the Amazon SageMaker AI API. The security team requires…
- A company hosts an internal application in an Amazon VPC that calls Amazon Bedrock through a public service endpoint. The security team…
- A company already encrypts all of its API calls to Amazon Bedrock with TLS. The security team adds a new requirement that the API traffic…
- A company is evaluating networking options to give an application in its Amazon VPC private access to Amazon Bedrock without using the…
- An insurance company connects its on-premises data center to AWS by using AWS Direct Connect. The company wants applications in the data…
- A company already uses IAM policies and AWS KMS encryption for a workload in an Amazon VPC that calls Amazon Bedrock. A new compliance…
- Data lineage and cataloging document where data came from
Documenting data origins is a secure-AI governance practice: data lineage records where a dataset came from and how it was transformed across the pipeline, while a data catalog keeps a central, searchable registry of datasets and their metadata so their origin and ownership are discoverable. Together they establish provenance across the ML lifecycle rather than capturing it at a single checkpoint.
- SageMaker Model Cards document a model's provenance and risk
Amazon SageMaker Model Cardsdocument a model's intended use, training details and metrics, evaluation results and observations, and a risk rating (Unknown, Low, Medium, or High) in a single record, and any edit other than an approval-status change creates a new version for an immutable audit trail. When a question asks how to document a model's details, provenance, and risk for governance, Model Cards is the standard answer.Trap Reaching for an AWS AI Service Card to document a model you built. Service Cards are authored by AWS for AWS-managed services you consume, while you write a Model Card for your own model.
15 questions test this
- A company documents its Amazon SageMaker AI models by using SageMaker Model Cards that capture intended use, training details, and risk…
- A financial services company uses Amazon SageMaker for ML model development. Compliance officers require an immutable record of model…
- An ML governance team is establishing responsible AI policies for their organization. They need to document their custom-trained fraud…
- A data science team is comparing documentation resources for a project that uses both Amazon Textract (an AWS AI service) and a custom…
- A company trains custom ML models in Amazon SageMaker AI. For governance audits, model owners must maintain a single record that documents…
- An e-commerce company has developed a custom fraud detection model using Amazon SageMaker and wants to create transparent documentation for…
- An enterprise is developing responsible AI policies and needs to document critical details about their custom ML models including intended…
- A company's AI governance committee is establishing responsible AI policies and needs to differentiate between AWS AI Service Cards and…
- An enterprise is establishing responsible AI policies and needs to differentiate between AWS AI Service Cards and Amazon SageMaker Model…
- A company wants to implement responsible AI governance for both AWS-managed AI services and their custom-built ML models. Which combination…
- A healthcare organization is implementing model governance and needs to document the risk profile for each ML model used in patient care…
- A financial services company uses Amazon SageMaker to develop ML models for credit risk assessment. The company's compliance team requires…
- A team fine-tunes a foundation model and must give auditors a single, standardized record that documents the model's data sources, training…
- A financial services company is implementing ML governance for regulatory compliance. The company needs to document critical details about…
- A company needs to share ML model documentation with external auditors for annual compliance reviews. The auditors require a portable…
- Secure data engineering applies controls across the lifecycle
Secure data engineering bundles several best practices (assess data quality, apply privacy-enhancing technologies, enforce data access control, and protect data integrity) so that data is safeguarded across collection, storage, training, and inference rather than only at one stage. Treat it as a lifecycle discipline, not a single gate at ingestion.
- Poor data quality is a security risk, not just a reliability one
Assessing data quality is a security concern as well as a reliability one: poisoned, mislabeled, or low-quality training data undermines a model because it is only as trustworthy as the data it learned from, and tampered data is an integrity attack. Protecting data integrity ensures data is not altered in transit or at rest, closing the gap that data-poisoning relies on.
Trap Treating data poisoning as solved by encrypting the dataset, when encryption protects confidentiality but it is integrity checks and data-quality assessment that catch tampered or poisoned training data.
- Use privacy-enhancing technologies to train without exposing PII
Privacy-enhancing technologies (anonymization, pseudonymization, masking, and tokenization of PII) let a model train on the useful signal while individuals stay unidentifiable. Apply them as a secure-data-engineering step before sensitive data enters or moves through the training pipeline, rather than trying to scrub a trained model after the fact.
Trap Planning to remove PII from the model after training, when privacy-enhancing technologies have to be applied to the data before it enters the training pipeline.
- Bedrock Guardrails is the application-layer safety control
Amazon Bedrock Guardrailsfilters harmful content, blocks denied topics, and can detect and block or mask sensitive information including PII in both the user's input prompt and the model's response. It is the application-layer complement to infrastructure controls such as IAM, KMS, and network isolation. It governs what the model is asked and what it returns, not who can reach the service, so it works alongside those controls, not as a substitute.Trap Treating Guardrails as a replacement for IAM and network isolation. It filters prompts and responses but does not control who can invoke the model.
- Use Secrets Manager to keep credentials out of code
AWS Secrets Managerstores, manages, and rotates secrets such as database credentials, API keys, and OAuth tokens, so applications and notebooks retrieve them at runtime instead of hard-coding them in source. AWS positions it as the way to "replace hard-coded credentials with a runtime call," supporting the least-privilege and infrastructure-protection goals of securing an AI system. For your AWS encryption keys use KMS, and for AWS access prefer IAM roles. Secrets Manager is for the other credentials your app must hold.Trap Storing AWS access keys in Secrets Manager so an application can call a model, when an assumed IAM role removes the static AWS credential entirely.
- Use GuardDuty to detect threats against your AWS workloads
Amazon GuardDutyis a managed threat-detection service that continuously analyzes foundational sources (AWS CloudTrailmanagement events, VPC flow logs, and DNS logs) with machine learning and threat intelligence to flag suspicious activity such as compromised or exfiltrated credentials and anomalous API calls, including against generative-AI workloads. It is the automated detection layer for these scenarios, generating findings with no manual log analysis required, and it pairs with services like Amazon Detective for investigation.Trap Reaching for Amazon Macie to catch a compromised-credential or anomalous-API-access threat. Macie classifies sensitive data in S3, whereas GuardDuty is the threat detector.
9 questions test this
- A company uses Amazon Bedrock to power a customer-facing chatbot application. The security team needs to detect when users log in from…
- A security team supports a generative AI workload that uses Amazon Bedrock. The team wants to continuously analyze account activity and API…
- A company deploys Amazon Bedrock foundation models for a customer service application. The security team needs to detect when a user…
- A company is using Amazon Bedrock to power its generative AI application. The security team needs to monitor for suspicious activities,…
- A security team wants to continuously analyze account activity and logs around a generative AI workload that runs on Amazon Bedrock to…
- A company uses Amazon Bedrock to power its customer service chatbot. The security team needs to detect when an attacker who has compromised…
- A company runs a generative AI workload that uses Amazon Bedrock. The security team wants to continuously identify malicious or…
- A machine learning team uses Amazon Bedrock to build generative AI applications. The security team needs to detect when someone attempts to…
- A company is using Amazon Bedrock to build generative AI applications. The security team wants to detect if an attacker attempts to disable…
AI Governance & Compliance
Read full chapterUnlock with Premium — includes all practice exams and the complete study guide.