Courseiva

AWS Certified AI Practitioner AIF-C01 (AIF-C01) — Questions 151–225

862 questions total · 12pages · All types, answers revealed

Page 2

Page 3 of 12

Page 4
151
Multi-Selectmedium

A data scientist is evaluating a regression model and wants to understand its prediction errors. Which TWO metrics should they use? (Select TWO.)

Select 2 answers
A.F1 score
B.Mean Absolute Error (MAE)
C.Root Mean Squared Error (RMSE)
D.Accuracy
E.Precision
AnswersB, C

Mean Absolute Error averages the absolute differences between predicted and actual values, expressing typical error magnitude in the target's original units. This directly satisfies the goal of understanding prediction errors, and it is less sensitive to outliers than squared-error metrics.

Why this answer

Mean Absolute Error (MAE) is correct because it directly quantifies regression prediction error as the average of the absolute differences between predicted and actual values, expressed in the same units as the target variable. Root Mean Squared Error (RMSE) is also correct because it measures regression error as the square root of the mean of squared differences, penalizing larger errors more heavily and remaining in the target's units. Both MAE and RMSE are standard regression error metrics that summarize how far predictions deviate from actual continuous values.

F1 score is incorrect because it is a classification metric combining precision and recall, not applicable to continuous regression errors. Accuracy is incorrect because it measures the proportion of correct class predictions in classification. Precision is incorrect because it is a classification metric for the proportion of positive predictions that are truly positive, not a regression error measure.

Exam trap

AWS often tests the distinction between classification and regression metrics, and the trap here is that candidates mistakenly apply classification metrics like F1 score, Accuracy, or Precision to a regression problem because they are more commonly discussed in introductory ML courses.

152
MCQmedium

A media company's generative AI writing assistant produces fluent but sometimes fabricated statistics. The team wants to reduce these hallucinations without changing the foundation model. Which action best addresses the root cause?

A.Raise the top-p sampling value to make token selection more deterministic
B.Lower the maximum token limit for each response
C.Switch the model to a smaller parameter count to reduce creativity
D.Ground the model's responses by supplying verified reference documents in the prompt and instructing it to cite them
AnswerD

Hallucinated statistics occur when the model generates plausible-sounding content without a factual anchor. Providing verified source documents in the prompt and requiring citations constrains generation to supported claims, reducing fabrication without modifying model weights, which matches the constraint of not changing the foundation model.

Why this answer

Fabricated statistics stem from the model generating text without an authoritative factual anchor. Supplying verified documents and requiring citations ties each claim to a source, which reduces invention while leaving the model untouched. Token limits, parameter count, and sampling parameters influence length, capacity, and randomness respectively, none of which ground output in verified facts.

Exam trap

The trap here is treating sampling parameters as accuracy controls when they only shape randomness and diversity of token selection.

153
Multi-Selectmedium

A logistics company is building an internal assistant on Amazon Bedrock that must answer operational questions using its private runbooks and must return citations so staff can verify answers. The team also needs to control cost by limiting how much source text is sent with each request. Which TWO capabilities should they combine to meet these requirements? (Choose two.)

Select 2 answers
A.Knowledge Bases for Amazon Bedrock to ingest the runbooks and retrieve relevant passages.
B.Guardrails for Amazon Bedrock with a profanity filter enabled.
C.Citations returned from retrieved source chunks in the Knowledge Bases response.
D.Provisioned Throughput to guarantee dedicated model capacity.
E.A larger maxTokens value to include more of each runbook.
AnswersA, C

Knowledge Bases for Amazon Bedrock ingests the runbooks from a supported data source, chunks and embeds them, and retrieves only the passages relevant to each question. That retrieval step both grounds answers in private content and keeps prompt size bounded, which directly serves the citation and cost-control requirements.

Why this answer

Retrieval is the mechanism that both grounds answers in private runbooks and bounds prompt size, because only the most relevant chunks are injected. Knowledge Bases for Amazon Bedrock performs that ingestion and retrieval, and it can return citations linking generated text to source chunks, enabling verification. Capacity reservation, output-length increases, and profanity filtering do not supply grounding, traceability, or cost control.

Exam trap

The trap here is assuming that sending more source text or reserving capacity improves answer quality, when targeted retrieval is what controls both accuracy and cost.

154
Multi-Selectmedium

A company is deploying a generative AI model on Amazon Bedrock and needs to monitor for potential misuse. Which THREE measures should they implement? (Choose 3)

Select 3 answers
A.Require multi-factor authentication (MFA) for all API calls.
B.Configure Amazon Bedrock Guardrails to block harmful content.
C.Use AWS CloudTrail to log API calls and Amazon Bedrock actions.
D.Place the Bedrock endpoint in a private VPC with no internet access.
E.Enable model invocation logging in Amazon CloudWatch.
AnswersB, C, E

Amazon Bedrock Guardrails apply content filters that intercept harmful inputs and outputs at inference time, directly satisfying the requirement to monitor for potential misuse. By defining denied topics and filtering categories, the company enforces safety controls on the generative model itself, rather than relying on post-hoc logging or external review.

Why this answer

Option B is correct because Amazon Bedrock Guardrails are purpose-built to detect and block harmful or inappropriate content (e.g., hate, violence, prompt injection) in both prompts and model responses, directly addressing misuse monitoring and prevention. Option C is correct because AWS CloudTrail records all Bedrock API activity and management events, providing an auditable trail of who invoked which model, when, and from where, which is essential for detecting misuse. Option E is correct because enabling model invocation logging sends full request/response data to Amazon CloudWatch Logs, allowing continuous monitoring, alerting, and forensic analysis of model inputs and outputs.

Option A is not appropriate because MFA applies to human console sign-ins, not programmatic API calls, and Bedrock APIs use IAM credentials/signatures rather than MFA tokens. Option D is not required for misuse monitoring; a private VPC endpoint improves network isolation but does not detect or log misuse, and Bedrock endpoints are AWS-managed services accessed via VPC endpoints rather than being 'placed' in a VPC.

Exam trap

The AIF-C01 exam often tests the distinction between security controls that prevent access (like MFA or VPC isolation) versus monitoring controls that detect or block misuse at the content level, leading candidates to confuse network security with content safety.

155
Multi-Selectmedium

A company uses Amazon Bedrock and wants to ensure that the model outputs are grounded in a set of provided documents to reduce hallucinations. Which TWO actions should they take? (Select TWO.)

Select 2 answers
A.Enable the grounding check in Bedrock Guardrails
B.Configure a word filter to block ungrounded phrases
C.Enable model invocation logging to S3
D.Use Amazon Bedrock Knowledge Bases to store and retrieve document chunks
E.Fine-tune the model on the documents
AnswersA, D

The grounding check compares each model response against the retrieved source chunks and flags or blocks claims unsupported by them, directly reducing hallucination. It satisfies the grounding requirement by validating output against provided documents rather than relying on the model's parametric knowledge.

Why this answer

Option A is correct because Bedrock Guardrails provides a contextual grounding check that evaluates model responses against a provided source (reference) and applies a grounding threshold to filter or flag responses that are not supported by the source, directly reducing hallucinations. Option D is correct because Amazon Bedrock Knowledge Bases ingests the provided documents, chunks them, generates embeddings, and stores them in a vector store so the model can retrieve relevant chunks at inference time via RetrieveAndGenerate, grounding outputs in the actual documents. Option B is wrong because a word filter blocks specific words or phrases and cannot determine whether a statement is factually grounded in the source documents.

Option C is wrong because model invocation logging to S3 only records requests and responses for auditing and monitoring; it does not ground outputs or prevent hallucinations. Option E is wrong because fine-tuning on the documents adapts model weights to style and patterns but does not provide retrieval-based grounding or verifiable citations, and it is not the recommended mechanism for grounding against a document set.

Exam trap

The trap is confusing fine-tuning with RAG. Fine-tuning adjusts model weights but does not provide a mechanism to ground responses in specific documents at runtime. Also, word filters are often mistaken for grounding mechanisms, but they only block specific terms, not verify factual consistency.

156
MCQmedium

A team is planning to build an ML model that recommends products to users based on their purchase history. Which AWS service is MOST suitable?

A.Amazon SageMaker
B.Amazon Forecast
C.Amazon Rekognition
D.Amazon Personalize
AnswerD

Amazon Personalize is purpose-built for recommendation systems, ingesting purchase history to train custom models that surface product suggestions via real-time inference. It satisfies the stem's requirement for purchase-history-driven recommendations without manual algorithm development, unlike general-purpose ML platforms such as SageMaker, which would demand substantial custom engineering.

Why this answer

Amazon Personalize is the correct choice because it is a fully managed service specifically designed to build real-time recommendation systems using user-item interaction data, such as purchase history. It uses deep learning algorithms like HRNN (Hierarchical Recurrent Neural Network) to personalize product recommendations for each user, making it the most suitable for this use case.

Exam trap

The trap here is that candidates often confuse Amazon Personalize with Amazon SageMaker, thinking SageMaker is the only ML service, but Personalize is purpose-built for recommendations and requires far less custom coding and infrastructure management.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker is a general-purpose ML platform for building, training, and deploying custom models, but it requires significant manual effort to implement recommendation algorithms, whereas Personalize provides pre-built, optimized recommendation models. Option B is wrong because Amazon Forecast is designed for time-series forecasting (e.g., demand prediction, inventory planning) and not for personalized product recommendations based on user-item interactions. Option C is wrong because Amazon Rekognition is a computer vision service for analyzing images and videos (e.g., object detection, facial recognition) and has no capability for generating product recommendations from purchase history.

157
MCQmedium

A developer is building a customer support chatbot using Amazon Bedrock Agents. The agent needs to retrieve order status by calling an external API. Which configuration enables the agent to call the API?

A.Define an action group with an API schema and Lambda function
B.Configure a knowledge base with the API documentation
C.Use a guardrail to allow API calls
D.Enable model caching for the API endpoint
AnswerA

An action group with an API schema and Lambda function defines the external API's operations and provides the execution code that calls it. This is the mechanism enabling the agent to invoke the order status API during a session.

Why this answer

Amazon Bedrock Agents use action groups to define custom actions that the agent can invoke, such as calling an external API. An action group requires an API schema (in OpenAPI 3.0 format) to describe the API operations and a Lambda function to execute the API call and return the result. This configuration enables the agent to dynamically retrieve order status by invoking the Lambda function based on the user's request.

Exam trap

AWS often tests the distinction between static data retrieval (knowledge bases) and dynamic action execution (action groups), so candidates mistakenly think a knowledge base can be used to call APIs when it only stores and retrieves pre-indexed content.

How to eliminate wrong answers

Option B is wrong because a knowledge base is used for retrieving static information from documents or data sources via vector search, not for executing API calls or performing real-time operations like fetching order status. Option C is wrong because guardrails are policies that control content safety and topic restrictions, not mechanisms for enabling API calls; they cannot invoke external APIs. Option D is wrong because model caching improves response latency by reusing previous model outputs, but it does not enable the agent to call an external API; it has no role in API invocation.

158
MCQmedium

A financial services company uses Amazon Bedrock with the Anthropic Claude 3 Haiku model to answer employee questions about internal policies. The knowledge base is updated weekly, and the company wants the model to cite the exact source document and page number in its responses. Which approach should the company use to meet these requirements?

A.Increase the temperature setting in the InvokeModel API call to encourage the model to include source references.
B.Fine-tune the Anthropic Claude 3 Haiku model on the internal policy documents and deploy the custom model.
C.Use Amazon Bedrock Guardrails to filter responses and automatically append document citations.
D.Use Amazon Bedrock Knowledge Bases with a vector store and enable citations in the RetrieveAndGenerate API call.
AnswerD

Amazon Bedrock Knowledge Bases supports retrieval-augmented generation and can return citations that identify the source documents and passages used to generate a response. By enabling citations in the RetrieveAndGenerate API call, the model's answers include references to the exact source, satisfying the requirement for document and page-level attribution.

Why this answer

The company needs answers grounded in specific internal documents with citations. Amazon Bedrock Knowledge Bases performs retrieval-augmented generation by fetching relevant passages from a connected data source and can return citations that point to the source document and page. This directly satisfies the requirement, whereas fine-tuning, temperature adjustments, or Guardrails do not provide source attribution.

Exam trap

The trap here is assuming that fine-tuning or prompt engineering can make a model cite sources, when citation requires a retrieval mechanism such as Amazon Bedrock Knowledge Bases.

159
MCQmedium

A developer is using Amazon Bedrock with the Claude model for text summarization. The output sometimes includes inaccurate information. What is the best practice to reduce hallucinations?

A.Use a larger model
B.Increase temperature
C.Use retrieval augmented generation
D.Decrease max tokens
AnswerC

Retrieval augmented generation grounds the model's response in documents fetched from a knowledge base, so summarisation draws on supplied source text rather than parametric memory alone. This constrains the model to verifiable content, directly reducing fabricated output in the summarisation task.

Why this answer

Retrieval Augmented Generation (RAG) grounds the model's output in external, authoritative knowledge sources by retrieving relevant documents and injecting them into the prompt context. This directly reduces hallucinations because the model generates summaries based on factual retrieved data rather than relying solely on its parametric memory, which is the primary source of inaccuracies in text summarization tasks.

Exam trap

AWS often tests the misconception that model size or output length adjustments are the primary levers for accuracy, when in fact grounding techniques like RAG are the standard solution for reducing hallucinations in production systems.

How to eliminate wrong answers

Option A is wrong because using a larger model (e.g., moving from Claude 3 Haiku to Sonnet) may improve general capabilities but does not inherently reduce hallucinations; larger models can still confidently fabricate information without external grounding. Option B is wrong because increasing temperature introduces more randomness into token selection, which actually increases the likelihood of hallucinated or nonsensical outputs rather than reducing them. Option D is wrong because decreasing max tokens limits the length of the output but does not address the root cause of hallucination—the model's lack of factual grounding—and may even truncate important context, leading to incomplete or misleading summaries.

160
MCQeasy

Which prompt engineering technique involves providing the model with a few examples of desired input-output pairs before asking it to complete a new instance?

A.Zero-shot prompting
B.Chain-of-thought prompting
C.System prompting
D.Few-shot prompting
AnswerD

Few-shot prompting supplies the model with several worked input-output pairs inside the prompt, letting it infer the task pattern before handling the new instance. This directly satisfies the stem's requirement for examples of desired pairs, distinguishing it from zero-shot prompting, which provides instructions alone without demonstrations.

Why this answer

Few-shot prompting (Option D) is the correct technique because it explicitly involves providing the model with a few examples of desired input-output pairs before asking it to complete a new instance. This helps the model understand the pattern, format, or task from the examples, improving performance on tasks like classification, translation, or formatting without requiring fine-tuning.

Exam trap

AWS often tests the distinction between zero-shot and few-shot prompting, where candidates may confuse 'providing examples' with 'setting system instructions' or 'step-by-step reasoning', leading them to incorrectly select chain-of-thought or system prompting.

How to eliminate wrong answers

Option A is wrong because zero-shot prompting asks the model to perform a task without any examples, relying solely on its pre-trained knowledge. Option B is wrong because chain-of-thought prompting involves guiding the model to reason step-by-step, often with intermediate reasoning steps, not providing input-output pairs. Option C is wrong because system prompting sets the overall behavior, persona, or constraints for the model (e.g., 'You are a helpful assistant'), but does not provide specific input-output examples for a task.

161
MCQmedium

A developer is building a RAG-based Q&A bot with Amazon Bedrock Knowledge Bases. They need a managed vector store for document embeddings. Which service should they use?

A.Amazon OpenSearch Serverless
B.Amazon DynamoDB
C.Amazon RDS
D.Amazon S3
AnswerA

Amazon OpenSearch Serverless provides a fully managed vector engine that Amazon Bedrock Knowledge Bases can use natively as its vector store, removing server provisioning and cluster scaling work. It satisfies the stem's managed vector store constraint for document embeddings, unlike self-managed alternatives requiring infrastructure upkeep.

Why this answer

Amazon Bedrock Knowledge Bases requires a vector store to store and query document embeddings for Retrieval-Augmented Generation (RAG). Amazon OpenSearch Serverless provides a managed, scalable vector engine that supports k-NN (k-nearest neighbor) search, making it the correct choice for this use case. It integrates natively with Bedrock Knowledge Bases to handle embedding storage and similarity search without manual infrastructure management.

Exam trap

The trap here is that candidates may confuse Amazon DynamoDB or Amazon RDS as viable options because they can store data, but they lack native vector search capabilities required for RAG, leading to an incorrect choice.

How to eliminate wrong answers

Option B (Amazon DynamoDB) is wrong because it is a key-value and document database that does not natively support vector similarity search or k-NN indexing, making it unsuitable as a vector store for RAG. Option C (Amazon RDS) is wrong because it is a relational database service that lacks built-in vector search capabilities; while extensions like pgvector for PostgreSQL exist, Amazon RDS is not a managed vector store and would require custom implementation. Option D (Amazon S3) is wrong because it is an object storage service that cannot perform vector similarity queries; it can store raw documents but not embeddings in a searchable vector index.

162
MCQmedium

A company is building a chatbot using Amazon Bedrock and wants to ensure that the model generates responses consistent with its brand voice. Which technique should be used to provide the model with examples of desired responses without fine-tuning the model?

A.Fine-tune the model on a dataset of brand-compliant conversations.
B.Use prompt chaining to break down the conversation into multiple steps.
C.Implement a Retrieval Augmented Generation (RAG) system with brand documents.
D.Include few-shot examples in the system prompt to demonstrate the desired tone.
AnswerD

Few-shot examples in the system prompt steer Amazon Bedrock's model at inference time by conditioning it on demonstrations of the desired tone, satisfying the constraint of no fine-tuning. Unlike weight-updating approaches, this in-context prompting requires no training job, so brand-voice consistency is achieved immediately and cheaply.

Why this answer

Few-shot prompting allows you to provide the model with examples of desired responses directly in the system prompt, guiding the model's tone and style without modifying its underlying weights. This technique is ideal for brand voice consistency when fine-tuning is not an option, as it leverages in-context learning to influence output behavior.

Exam trap

AWS often tests the distinction between in-context learning (few-shot prompting) and fine-tuning, trapping candidates who confuse RAG (which retrieves facts) with style guidance, or who think prompt chaining is for tone control rather than task decomposition.

How to eliminate wrong answers

Option A is wrong because fine-tuning requires modifying the model's weights, which contradicts the requirement of not fine-tuning the model. Option B is wrong because prompt chaining is a technique for decomposing complex tasks into sequential steps, not for providing examples of desired tone or style. Option C is wrong because Retrieval Augmented Generation (RAG) retrieves external knowledge from documents to ground responses in facts, but it does not inherently teach the model the specific tone or brand voice; it augments context, not style.

163
MCQeasy

A company uses Amazon SageMaker to build a binary classification model for loan approvals. After training, the data science team wants to evaluate the model for potential bias against a protected group. Which AWS service should they use to compute bias metrics?

A.Amazon SageMaker Model Monitor
B.Amazon SageMaker Debugger
C.Amazon SageMaker Clarify
D.Amazon SageMaker Experiments
AnswerC

SageMaker Clarify computes bias metrics such as disparate impact and demographic parity on trained models, detecting potential bias against protected groups. It integrates directly with SageMaker training and endpoints, satisfying the requirement to evaluate the loan model for bias.

Why this answer

Amazon SageMaker Clarify is the correct service because it is specifically designed to detect bias in machine learning models and datasets. It provides built-in bias metrics (e.g., difference in positive proportion, disparate impact) for both pre-training and post-training evaluation, making it the appropriate tool for assessing potential bias against a protected group in a binary classification model.

Exam trap

The AWS AI Practitioner exam often tests the distinction between monitoring tools (Model Monitor, Debugger) and bias detection tools (Clarify), leading candidates to confuse operational monitoring with fairness evaluation.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker Model Monitor is used to detect data drift and model quality degradation over time in production, not to compute bias metrics. Option B is wrong because Amazon SageMaker Debugger is designed to monitor training jobs for issues like vanishing gradients or overfitting, not to evaluate bias. Option D is wrong because Amazon SageMaker Experiments is a tool for tracking and organizing machine learning experiments (e.g., parameters, metrics, runs), not for computing bias metrics.

164
MCQhard

An e-commerce company stores user interaction logs in Amazon S3. They want to use machine learning to segment users based on purchasing behavior. Which unsupervised learning algorithm is most appropriate?

A.Linear regression
B.Random forest
C.K-means clustering
D.Neural network
AnswerC

K-means clustering partitions unlabelled interaction logs into k groups by minimising within-cluster variance, directly satisfying the requirement to segment users by purchasing behaviour without predefined labels. Unlike supervised methods, it needs no target variable, making it appropriate for discovering behavioural cohorts in the S3-stored data.

Why this answer

K-means clustering is the most appropriate unsupervised learning algorithm for segmenting users based on purchasing behavior because it groups data points into clusters based on feature similarity without requiring labeled training data. The e-commerce scenario involves discovering natural groupings (segments) in user interaction logs, which is a classic clustering task, and K-means efficiently partitions users into K distinct segments by minimizing within-cluster variance.

Exam trap

The AIF-C01 exam often tests the distinction between supervised and unsupervised learning by presenting a clustering problem and including supervised algorithms as distractors, leading candidates to mistakenly pick a familiar algorithm like random forest or linear regression without recognizing the lack of labeled data.

How to eliminate wrong answers

Option A is wrong because linear regression is a supervised learning algorithm used for predicting continuous numeric values (e.g., sales amount) from labeled data, not for discovering unlabeled user segments. Option B is wrong because random forest is a supervised ensemble learning method used for classification or regression on labeled datasets, and it cannot perform unsupervised segmentation without target labels. Option D is wrong because neural networks are typically used in supervised or reinforcement learning contexts; while they can be adapted for unsupervised tasks (e.g., autoencoders), they are not the most straightforward or appropriate choice for simple user segmentation compared to K-means clustering.

165
MCQhard

A financial services company is subject to strict regulatory requirements. They plan to use generative AI to summarize customer interaction logs. Which combination of AWS services and configurations best ensures compliance while maintaining accuracy?

A.Deploy an open-source model on Amazon Bedrock in a local on-premises server.
B.Use Amazon Bedrock with a foundation model and public internet access without encryption.
C.Use Amazon SageMaker to host a fine-tuned model with a public API key.
D.Use Amazon Bedrock with a private VPC endpoint, AWS KMS encryption, and content filtering.
AnswerD

A private VPC endpoint keeps traffic off the public internet, KMS encryption protects data at rest and in transit, and content filtering blocks sensitive output, together meeting the strict regulatory constraints while Bedrock summarises the logs.

Why this answer

It combines a private VPC endpoint to keep all traffic within the AWS network (avoiding public internet exposure), AWS KMS encryption for data at rest and in transit, and content filtering to block sensitive or non-compliant outputs. This architecture meets strict regulatory requirements for data privacy and security while using Amazon Bedrock's managed foundation models for accurate summarization.

Exam trap

A common misconception is that encryption alone ensures compliance. However, the trap here is that public internet access (even with HTTPS) violates strict regulatory requirements that mandate private network connectivity (via VPC endpoints) and data residency controls.

How to eliminate wrong answers

Option A is wrong because deploying an open-source model on a local on-premises server does not use Amazon Bedrock (which is a fully managed AWS service) and introduces operational overhead, potential compliance gaps, and lacks AWS-native encryption and auditing. Option B is wrong because using public internet access without encryption exposes customer interaction logs to interception and violates regulatory mandates for data in transit security (e.g., TLS). Option C is wrong because using a public API key with Amazon SageMaker exposes the model endpoint to unauthorized access and lacks the private networking and encryption controls required for compliance.

166
MCQmedium

During a binary classification project, the team wants to optimize for correctly identifying positive cases even if it means more false positives. Which metric should they maximize?

A.Recall
B.Precision
C.AUC-ROC
D.F1 score
AnswerA

Recall measures the proportion of actual positives correctly identified, so maximising it directly satisfies the goal of catching positive cases. Precision would instead penalise the extra false positives the team is willing to accept, making recall the metric aligned with this trade-off.

Why this answer

Recall (also known as sensitivity or true positive rate) measures the proportion of actual positive cases that are correctly identified. By maximizing recall, the model minimizes false negatives, which aligns with the goal of catching as many true positives as possible, even at the cost of increasing false positives.

Exam trap

The distinction between recall and precision is critical. By emphasizing catching all positives, recall is the correct metric; precision would be chosen if the scenario prioritized minimizing false positives.

How to eliminate wrong answers

Option B (Precision) is wrong because precision focuses on the proportion of predicted positives that are actually correct, which penalizes false positives; maximizing precision would reduce false positives, contrary to the stated goal. Option C (AUC-ROC) is wrong because it measures the model's ability to discriminate between classes across all thresholds, not specifically optimizing for high recall with tolerance for false positives. Option D (F1 score) is wrong because it is the harmonic mean of precision and recall, and maximizing it would balance both metrics, not prioritize recall over precision as required.

167
Multi-Selecteasy

A developer is using Bedrock Agents to create an order management assistant. The agent needs to check inventory and process payments. Which TWO components are required to enable these capabilities?

Select 2 answers
A.Knowledge Bases for product information
B.Lambda functions to execute the API calls
C.A vector store to cache transaction data
D.Action groups with API schemas
E.Guardrails to filter sensitive data
AnswersB, D

Lambda functions execute the actual inventory and payment API logic once the agent decides to invoke them. They provide the compute layer that action groups call, satisfying the requirement to perform these external operations during order management.

Why this answer

Option B is correct because Bedrock Agents use AWS Lambda functions as the compute layer that actually executes the business logic and outbound API calls — such as querying an inventory system or invoking a payment gateway — when the agent decides an action is needed. Option D is correct because action groups define the agent's callable capabilities, and each action group is described by an OpenAPI schema (API schema) that tells the agent which operations exist, their parameters, and how to invoke the backing Lambda, which is exactly what enables inventory checks and payment processing. Option A is not required here because Knowledge Bases are for retrieval-augmented generation over documents (e.g., product info), not for performing transactional API operations.

Option C is not required because a vector store is used for embeddings/semantic search in Knowledge Bases, not for caching transaction data. Option E is not required because Guardrails apply content and safety filtering to inputs/outputs, which is unrelated to enabling inventory and payment actions.

Exam trap

A common pitfall in Bedrock Agents is confusing Knowledge Bases (used for static information retrieval like product details) with Action Groups (used for dynamic real-time actions like inventory checks and payment processing). Candidates often select Knowledge Bases for capabilities that require API calls, but those rely on Action Groups + Lambda.

168
MCQmedium

A team needs to identify customer segments based on purchasing behavior without predefined categories. Which algorithm should they use?

A.Linear regression
B.Decision tree
C.K-means clustering
D.Logistic regression
AnswerC

K-means clustering partitions unlabelled data into k groups by minimising within-cluster variance, so it discovers purchasing-behaviour segments without predefined categories. This satisfies the stem's unsupervised requirement, unlike supervised classifiers that need labelled examples. It outputs cluster assignments directly, making it the appropriate choice for exploratory customer segmentation.

Why this answer

K-means clustering is an unsupervised learning algorithm that groups data points into clusters based on feature similarity without requiring predefined labels or categories. Since the team needs to identify customer segments solely from purchasing behavior data, K-means is the appropriate choice as it discovers natural groupings in the data.

Exam trap

AWS often tests the distinction between supervised and unsupervised learning, and the trap here is that candidates may confuse clustering (unsupervised) with classification (supervised) algorithms like logistic regression or decision trees when the question explicitly states 'without predefined categories'.

How to eliminate wrong answers

Option A is wrong because linear regression is a supervised learning algorithm used for predicting continuous numerical values, not for discovering unlabeled segments. Option B is wrong because decision trees are supervised learning models used for classification or regression with labeled data, not for unsupervised segmentation. Option D is wrong because logistic regression is a supervised classification algorithm for predicting binary outcomes, not for identifying clusters without predefined categories.

169
MCQmedium

A healthcare startup is building a patient-education chatbot. They want the model to answer only using an approved set of clinical guideline documents, and they must be able to update those documents weekly without retraining any model. They plan to use Amazon Bedrock. Which approach best meets these requirements?

A.Fine-tune a foundation model in Amazon Bedrock each week on the updated guideline documents.
B.Increase the model's context window by raising the maxTokens parameter for every request.
C.Create a separate Bedrock agent for each clinical guideline document and route questions by keyword.
D.Use Retrieval Augmented Generation by storing the guidelines in a vector store and retrieving relevant passages at inference time.
AnswerD

Retrieval Augmented Generation retrieves relevant passages from an external knowledge base and supplies them to the model as context. Updating the vector store with new guideline documents refreshes the knowledge without any retraining, and grounding responses in the retrieved text improves adherence to the approved source material.

Why this answer

Retrieval Augmented Generation separates knowledge from model weights. The approved guidelines live in a vector store that can be updated weekly, and relevant passages are retrieved and passed to the model as context. This grounds answers in approved content and avoids the cost and delay of fine-tuning for every content change.

Exam trap

The trap here is treating fine-tuning as the default way to add new knowledge, when retrieval is the mechanism that supports frequent updates without retraining.

170
MCQmedium

A media company has millions of customer support emails but no labels indicating topic or sentiment. The company wants to discover natural groupings of emails and reduce dimensionality before further analysis. Which approach should they use?

A.Use reinforcement learning to reward correct email topic assignments
B.Perform regression on email length to predict customer churn
C.Apply unsupervised learning techniques such as clustering and dimensionality reduction
D.Train a supervised classifier on the emails using sentiment labels
AnswerC

With no labels, unsupervised learning is the appropriate paradigm. Clustering algorithms can group emails by textual similarity, and dimensionality reduction techniques such as principal component analysis or t-SNE can compress the feature space for visualization and downstream analysis. This directly satisfies the goal of discovering groupings without predefined categories.

Why this answer

The absence of labels rules out supervised methods and points to unsupervised learning. Clustering reveals natural groupings among the emails, while dimensionality reduction techniques help compress and visualize the feature space. Together they satisfy both stated goals without requiring any annotation effort.

Exam trap

The trap here is reaching for a familiar supervised classifier even though the data has no labels to train on.

171
MCQhard

A healthcare company needs to use a foundation model for analyzing medical records while complying with HIPAA. They plan to use Amazon Bedrock. What should they do to meet HIPAA requirements?

A.Use a model that is HIPAA eligible in a region that supports BAA
B.Implement access logging for all API calls
C.Encrypt data at rest and in transit
D.All of the above
AnswerD

Bedrock's HIPAA eligibility requires a signed AWS Business Associate Addendum, use of HIPAA-eligible models, and no PHI in non-eligible services. Selecting all of the above satisfies the stem's compliance requirement, since each measure is mandatory rather than optional.

Why this answer

HIPAA compliance in Amazon Bedrock requires a combination of controls: using a HIPAA-eligible model in a region where AWS offers a Business Associate Addendum (BAA), enabling access logging for auditability, and encrypting data at rest and in transit. None of the individual options alone satisfy all HIPAA requirements; only the full set of controls ensures compliance.

Exam trap

The trap here is that candidates often pick a single security control (like encryption or logging) thinking it alone ensures HIPAA compliance, but the exam tests that HIPAA requires a combination of administrative, physical, and technical safeguards, all of which must be addressed.

How to eliminate wrong answers

Option A is wrong because while using a HIPAA-eligible model in a BAA-supported region is necessary, it does not address audit logging or encryption requirements. Option B is wrong because access logging alone provides audit trails but does not ensure the model is HIPAA-eligible or that data encryption is enforced. Option C is wrong because encrypting data at rest and in transit is critical but does not cover the need for a BAA or access logging.

All three are required together.

172
MCQmedium

A company is building a generative AI application using Amazon Bedrock. They need to ensure that the model does not generate responses containing personally identifiable information (PII) such as credit card numbers or social security numbers. Which Bedrock feature should they configure?

A.Amazon Bedrock Knowledge Bases
B.Amazon Bedrock Agents
C.Amazon Bedrock Guardrails
D.Amazon Bedrock batch inference
AnswerC

Guardrails applies configurable content filters and sensitive information filters that detect and block PII such as credit card and social security numbers in both prompts and model responses, directly satisfying the requirement to prevent PII leakage without altering the underlying foundation model.

Why this answer

Amazon Bedrock Guardrails is the correct feature because it provides configurable safeguards to filter and block sensitive content, including PII like credit card numbers and social security numbers, from being generated in model responses. It allows you to define denied topics, content filters, and sensitive information filters that are applied at inference time, ensuring compliance with data privacy requirements without modifying the underlying foundation model.

Exam trap

The trap is that candidates may mistakenly believe that other Bedrock features like Knowledge Bases or Agents include built-in PII filtering, or that the Amazon Bedrock Studio interface provides such controls. However, only Bedrock Guardrails offers dedicated configurable safeguards for sensitive information filtering.

How to eliminate wrong answers

Option A is wrong because Amazon Bedrock Knowledge Bases is a feature for retrieving and augmenting responses with data from enterprise data sources (e.g., vector databases), not for filtering PII from model outputs. Option B is wrong because Amazon Bedrock Agents enables the orchestration of multi-step tasks and API calls, but it does not natively include PII filtering capabilities; any content filtering would require separate Guardrails integration. Option D is wrong because Amazon Bedrock batch inference is designed for processing large volumes of inference requests asynchronously, not for real-time content filtering or PII redaction.

173
MCQeasy

A company wants to evaluate the quality of a text generation model for a summarization task. They have reference summaries written by humans. Which automated metric compares the generated summary to the reference by measuring n-gram overlap?

A.BLEU
B.Perplexity
C.ROUGE
D.BERTScore
AnswerC

ROUGE measures n-gram overlap between generated and reference summaries, directly satisfying the stem's requirement for an automated metric with human reference summaries. Recall-oriented variants such as ROUGE-N and ROUGE-L quantify how much reference content the generated summary captures, making it the standard choice for summarization evaluation.

Why this answer

ROUGE (Recall-Oriented Understudy for Gisting Evaluation) measures n-gram overlap between generated and reference summaries. BLEU is for translation, BERTScore uses embeddings, and perplexity measures language model confidence.

174
MCQmedium

A solutions architect is explaining why a foundation model can answer questions about topics it was never explicitly programmed for. Which characteristic of generative AI best explains this behaviour?

A.The model retrieves live answers from a search index at inference time.
B.The model re-trains itself on each user prompt before producing a response.
C.The model stores every training example verbatim and looks up the closest match when prompted.
D.The model learned statistical patterns and relationships from large-scale training data, allowing it to generalize to new prompts.
AnswerD

Foundation models are trained on very large corpora and encode statistical relationships between tokens, which lets them produce coherent responses to prompts they never saw during training. Generalization comes from those learned patterns rather than hard-coded rules, so the model can handle novel questions within the distribution of its training. This is the defining behaviour of generative AI.

Why this answer

Generative models generalize because training over massive datasets encodes statistical patterns and relationships among tokens into the model weights. At inference the prompt is processed against those learned parameters, enabling coherent responses to inputs never seen in training. Retrieval, verbatim lookup, and per-prompt retraining all describe different mechanisms that do not explain inherent generalization.

Exam trap

The trap here is conflating retrieval-augmented generation, which is an optional architecture, with the intrinsic generalization ability of a foundation model.

175
MCQmedium

A retail company wants to generate product descriptions from catalog data. The data includes structured attributes (e.g., price, brand) and unstructured reviews. The team needs to ensure factual accuracy. Which approach is most appropriate?

A.Use prompt engineering with few-shot examples
B.Fine-tune a foundation model on the entire product catalog
C.Deploy a larger foundation model with more parameters
D.Implement Retrieval-Augmented Generation (RAG) with a knowledge base
AnswerD

RAG grounds generation in retrieved catalogue records, so structured attributes such as price and brand are injected into the prompt rather than recalled from model weights. This satisfies the factual-accuracy constraint by anchoring outputs to source data, while unstructured reviews supply tone and descriptive language.

Why this answer

Retrieval-Augmented Generation (RAG) retrieves relevant documents (product attributes, reviews) and provides them as context to the model, reducing hallucinations and grounding responses in facts.

176
MCQmedium

A company uses SageMaker Clarify to detect bias in a deployed model. The monitoring must run automatically on a schedule. Which SageMaker feature should they use?

A.SageMaker Pipelines
B.SageMaker Experiments
C.SageMaker Data Wrangler
D.SageMaker Model Monitor
AnswerD

SageMaker Model Monitor runs scheduled bias and drift jobs against a deployed endpoint, integrating Clarify's bias metrics into automated monitoring schedules. This satisfies the stem's requirement for automatic, recurring bias detection, whereas Clarify alone provides analysis without native scheduling.

Why this answer

SageMaker Model Monitor can be configured to run bias detection jobs on a schedule using Clarify's bias metrics.

177
MCQmedium

A startup uses Amazon Lex to build a chatbot for mental health support. They must ensure user conversations are private and not used for model improvement. Which AWS service can help anonymize text data before storage?

A.Amazon Textract
B.AWS Key Management Service (KMS)
C.Amazon Comprehend
D.Amazon Macie
AnswerC

Amazon Comprehend provides detect-PII and entity-redaction capabilities that identify and mask personal information in text before it is persisted, satisfying the requirement that conversations remain private and unavailable for model improvement. Lex itself does not anonymise stored utterances.

Why this answer

Amazon Comprehend offers a built-in feature called PII (Personally Identifiable Information) detection and redaction, which can automatically identify and mask sensitive data such as names, addresses, and health information in text. By using the `DetectPIIEntities` API with redaction, the startup can anonymize user conversations before storing them, ensuring compliance with privacy requirements and preventing data from being used for model improvement.

Exam trap

The trap here is that candidates may confuse data anonymization with data encryption (KMS) or data discovery (Macie), overlooking that Amazon Comprehend provides direct text-level redaction via its PII detection API.

How to eliminate wrong answers

Option A is wrong because Amazon Textract is an OCR service for extracting text from documents (e.g., PDFs, images), not for anonymizing or redacting sensitive data in text. Option B is wrong because AWS KMS manages encryption keys for data at rest or in transit, but it does not perform content-level anonymization or redaction of text. Option D is wrong because Amazon Macie is a data security service that discovers and protects sensitive data in S3 using machine learning, but it operates on stored data and does not provide real-time text anonymization or redaction before storage.

178
MCQeasy

A developer is building a chatbot that answers questions from a company's internal knowledge base. The knowledge base is updated frequently, and the chatbot must always provide the most current information without retraining the model. Which AWS service or feature is MOST suitable for this requirement?

A.Amazon Bedrock Agents
B.Amazon Bedrock Guardrails
C.Amazon Bedrock Knowledge Bases
D.Fine-tuning a foundation model on the knowledge base
AnswerC

Amazon Bedrock Knowledge Bases performs managed retrieval-augmented generation, querying an indexed data source at inference time so answers reflect the latest content. Because the knowledge base is re-indexed rather than the model retrained, it satisfies the frequent-update, no-retraining requirement.

Why this answer

Amazon Bedrock Knowledge Bases is the correct choice because it enables Retrieval-Augmented Generation (RAG), which allows the chatbot to query the latest data from a vector store or external knowledge base without retraining the model. When the knowledge base is updated, the embeddings are refreshed, and the foundation model retrieves the most current information at inference time, ensuring answers remain up-to-date.

Exam trap

AWS often tests the distinction between fine-tuning and RAG, and the trap here is that candidates may assume fine-tuning is the only way to incorporate domain knowledge, overlooking that RAG with a knowledge base provides dynamic, up-to-date information without retraining.

How to eliminate wrong answers

Option A is wrong because Amazon Bedrock Agents are designed to orchestrate multi-step tasks and API calls, not to directly provide a continuously updated knowledge base for question answering without retraining. Option B is wrong because Amazon Bedrock Guardrails enforce safety, content filtering, and compliance policies, but they do not store or retrieve dynamic knowledge base content. Option D is wrong because fine-tuning a foundation model on the knowledge base would require retraining the model each time the knowledge base is updated, which contradicts the requirement to avoid retraining and to always provide the most current information.

179
MCQhard

A company uses Amazon Bedrock to generate product descriptions. They need to ensure outputs do not contain offensive language. Which service should they integrate to filter content?

A.Amazon Comprehend
B.Amazon Rekognition
C.Bedrock Guardrails
D.AWS WAF
AnswerC

Bedrock Guardrails applies configurable content filters that intercept both prompts and responses, blocking offensive language before it reaches users. This satisfies the requirement to filter outputs, unlike prompt engineering or post-processing, because filtering happens within the Bedrock inference path itself.

Why this answer

Amazon Bedrock Guardrails is the correct choice because it is specifically designed to enforce content policies for foundation model outputs, including filtering for offensive language, hate speech, and other harmful content. It integrates directly with Bedrock to apply customizable safety filters and deny topics without requiring additional services or custom code.

Exam trap

The trap here is that candidates often confuse Amazon Comprehend's text analysis capabilities (like sentiment detection) with real-time content filtering, but Comprehend lacks the policy enforcement and integration with Bedrock that Guardrails provides.

How to eliminate wrong answers

Option A is wrong because Amazon Comprehend is a natural language processing (NLP) service for extracting insights like sentiment, entities, and key phrases from text, but it does not provide real-time content filtering or policy enforcement for Bedrock outputs. Option B is wrong because Amazon Rekognition is an image and video analysis service that detects objects, faces, and text in visual media, not a text-based content filter for offensive language. Option D is wrong because AWS WAF is a web application firewall that protects HTTP/HTTPS endpoints from common web exploits like SQL injection and cross-site scripting, not a content moderation filter for LLM-generated text.

180
MCQeasy

What is a foundation model?

A.A model that only works with tabular data
B.A model that requires no additional tuning for new tasks
C.A model trained on diverse data that can be adapted to many tasks
D.A model that is specifically trained for one task, like image classification
AnswerC

Foundation models are trained on broad, diverse datasets using self-supervision, producing general-purpose representations that transfer to many downstream tasks through fine-tuning or prompting. This satisfies the stem's requirement for a base model adaptable across domains, distinguishing it from narrow task-specific models trained on single-purpose labelled data.

Why this answer

A foundation model is a large-scale AI model trained on vast, diverse datasets (e.g., text, images, code) using self-supervised learning, enabling it to be adapted to a wide range of downstream tasks through fine-tuning or few-shot learning. Option C correctly captures this core property of broad adaptability, which distinguishes foundation models from task-specific models. For example, GPT-4 and Claude are foundation models that can handle translation, summarization, and coding without being retrained from scratch.

Exam trap

AWS often tests the misconception that foundation models require no tuning at all (Option B), but the correct understanding is that they are adaptable—not that they are immediately perfect for every task without any adjustment.

How to eliminate wrong answers

Option A is wrong because foundation models are not limited to tabular data; they are typically trained on unstructured data like text, images, and audio. Option B is wrong because while foundation models can perform zero-shot tasks, they often require additional tuning (e.g., fine-tuning or prompt engineering) to achieve optimal performance on specific tasks, contradicting the claim of 'no additional tuning.' Option D is wrong because foundation models are explicitly designed to be multi-task and adaptable, not trained for a single task like image classification.

181
Multi-Selecteasy

Which TWO practices help ensure transparency in AI systems? (Choose 2)

Select 2 answers
A.Combine multiple models to obscure decision logic
B.Use model-agnostic explainability tools like SHAP
C.Remove all features except the most predictive ones
D.Provide documentation on model limitations and data sources
E.Use black-box models to protect proprietary algorithms
AnswersB, D

SHAP quantifies each feature's contribution to individual predictions, exposing the reasoning behind model outputs rather than leaving them opaque. This directly satisfies the transparency requirement by making decision logic inspectable to stakeholders, auditors and affected users, enabling accountability and informed challenge of automated outcomes.

Why this answer

Option B is correct because model-agnostic explainability tools such as SHAP (SHapley Additive exPlanations) quantify each feature's contribution to a prediction using Shapley values from cooperative game theory, making the model's decision logic visible to stakeholders regardless of the underlying algorithm. Option D is correct because documenting model limitations, intended use, and data sources (as in model cards or datasheets for datasets) gives users the information needed to understand when and how a model's outputs can be trusted, which is a core requirement of transparency. Option A is not correct because combining multiple models to obscure decision logic deliberately hides how outputs are produced, which reduces rather than improves transparency.

Option C is not correct because dropping all but the most predictive features is a feature-selection technique for performance or simplicity; it does not by itself explain decisions or disclose limitations and data provenance. Option E is not correct because black-box models intentionally conceal internal reasoning to protect proprietary algorithms, which is the opposite of transparency.

Exam trap

The AIF-C01 exam often tests the misconception that transparency means simplifying the model (e.g., removing features) or hiding logic (e.g., using ensembles or black-box models), when in fact transparency is achieved through explainability tools and thorough documentation of limitations and data sources.

182
Multi-Selecteasy

A company wants to automatically detect and redact personally identifiable information (PII) from customer support transcripts. Which TWO AWS services can be used together to achieve this? (Choose two.)

Select 2 answers
A.Amazon Comprehend
B.Amazon Rekognition
C.Amazon Transcribe
D.Amazon Textract
E.Amazon Polly
AnswersA, C

Amazon Comprehend provides pre-trained natural language processing that identifies PII entities within text, returning their locations so they can be redacted. Applied to transcripts, it satisfies the detection requirement; a separate service then performs the redaction.

Why this answer

Amazon Transcribe [CORRECT] is the right service to convert the customer support audio transcripts into text, and it also supports PII redaction directly in its transcription jobs via the ContentRedaction parameter with PII redaction type, which detects and masks sensitive data such as names, addresses, and credit card numbers. Amazon Comprehend [CORRECT] is the natural language processing service that provides PII detection and redaction (using the ContainsPiiEntities API and the PII redaction feature) for text, so it can be used together with Transcribe to automatically identify and redact PII in the resulting transcripts. Amazon Rekognition is for image and video analysis (facial recognition, object detection), not text PII redaction, so it does not fit.

Amazon Textract extracts text and data from scanned documents (OCR), which is unnecessary here since the source is support transcripts, not document images. Amazon Polly is a text-to-speech service that converts text into lifelike speech, the opposite of what is needed for detecting and redacting PII in transcripts.

Exam trap

The trap here is that candidates often confuse Amazon Rekognition (image/video analysis) or Amazon Textract (document OCR) with text-based PII detection, forgetting that the input source is audio transcripts, not images or scanned documents.

183
MCQeasy

A company is building a customer support chatbot using Amazon Bedrock. They need to store conversation history for context across sessions. Which AWS service is best suited for this purpose?

A.Amazon S3
B.Amazon DynamoDB
C.Amazon RDS
D.Amazon ElastiCache
AnswerB

Amazon DynamoDB stores conversation history as session-keyed items, giving the chatbot low-latency retrieval of prior turns across sessions. Its schema-flexible, key-value design satisfies the persistence requirement without a relational model, and it scales with request volume, unlike stateless compute or storage-only services.

Why this answer

Amazon DynamoDB is the best choice for storing conversation history because it is a fully managed NoSQL key-value and document database that provides single-digit millisecond latency at any scale. It supports flexible schema, which is ideal for storing variable-length chat sessions, and its Time to Live (TTL) feature can automatically expire old conversations to manage storage costs. DynamoDB also integrates natively with AWS Lambda and Amazon Bedrock for real-time retrieval and update of context across sessions.

Exam trap

The trap here is that candidates often confuse durability with performance, picking Amazon S3 for its low cost or Amazon ElastiCache for its speed, without recognizing that DynamoDB uniquely combines low latency, persistence, and flexible schema for session state management.

How to eliminate wrong answers

Option A is wrong because Amazon S3 is an object storage service designed for large, unstructured data like files and backups, not for low-latency, frequent read/write operations required for real-time conversation history retrieval. Option C is wrong because Amazon RDS is a relational database that requires a fixed schema and is overkill for simple key-value session storage; it also incurs higher operational overhead and latency compared to DynamoDB for this use case. Option D is wrong because Amazon ElastiCache is an in-memory caching service (Redis/Memcached) that is volatile and not designed for durable, persistent storage of conversation history across sessions, making it unsuitable for long-term context retention.

184
MCQeasy

What is the primary purpose of a model card?

A.To provide a detailed performance benchmark on a single metric
B.To register the model in SageMaker Model Registry
C.To document the model's intended use, performance, and limitations for transparency
D.To store the model's parameters and weights for deployment
AnswerC

A model card records intended use, performance metrics, training data characteristics and known limitations, giving consumers the transparency needed to judge whether a model suits their context. It is documentation, not a runtime artefact, so it does not enforce guardrails or govern inference.

Why this answer

A model card is a document that provides essential information about a machine learning model, including its intended use, performance characteristics, limitations, and ethical considerations. Its primary purpose is to promote transparency and responsible AI by helping users understand when and how to use the model appropriately. It is not a technical artifact for deployment or registration.

Exam trap

The trap is confusing model cards with model artifacts or registry entries. Candidates might think a model card is a technical file for deployment, but it is a documentation tool for transparency.

How to eliminate wrong answers

Option A is wrong because a model card includes multiple performance metrics and broader context, not just a single benchmark. Option B is wrong because model registration in SageMaker Model Registry is a separate process; a model card is not used for registration. Option D is wrong because model parameters and weights are stored in model artifacts, not in a model card; a model card is a documentation file.

185
MCQhard

A company uses Amazon SageMaker Clarify to monitor a deployed model for bias. After running an analysis, they find that the model's predictions have a disparate impact on a protected group. What is the MOST appropriate next step?

A.Investigate the root cause of bias, then use techniques such as reweighing training data or applying bias mitigation algorithms before redeploying
B.Modify the SageMaker endpoint to add a random noise to predictions for the protected group
C.Ignore the results because SageMaker Clarify is still in preview
D.Immediately delete the model and retrain from scratch using only data from the protected group
AnswerA

Disparate impact is a measured bias metric, so the remedy is mitigation, not monitoring. Reweighing training data or applying bias mitigation algorithms directly addresses the detected disparity in the protected group before redeployment, satisfying the requirement to correct the bias rather than merely report it.

Why this answer

Discovering bias requires investigation and mitigation. SageMaker Clarify can help identify bias, but mitigation typically involves retraining with balanced data or adjusting model outputs.

186
MCQhard

A law firm uses a foundation model to draft legal briefs. To ensure accuracy, they want to ground the model's outputs in authoritative legal sources. They have a large database of prior case law and statutes stored in Amazon S3. The firm's IT team must implement a solution that reduces hallucinations while being cost-effective. The solution should allow the model to retrieve relevant documents and generate responses based on them. Which approach should they take?

A.Fine-tune the model on the legal database.
B.Manually attach relevant documents to each prompt.
C.Use a larger foundation model with more parameters.
D.Use Amazon Bedrock Agents to create a RAG application.
AnswerD

Amazon Bedrock Agents orchestrate retrieval-augmented generation: documents from Amazon S3 are vectorised into a knowledge base, and relevant passages are retrieved and injected into the prompt, grounding outputs in authoritative case law and statutes while reducing hallucinations cost-effectively.

Why this answer

Amazon Bedrock Agents with a knowledge base can implement Retrieval-Augmented Generation (RAG): the agent retrieves relevant documents from S3 and uses them as context for the model, grounding responses and reducing hallucinations. Option A (fine-tuning) is expensive and does not guarantee grounding for all queries. Option B (manually attaching documents) is not scalable.

Option C (using a larger model) increases cost without solving hallucination.

187
MCQeasy

A data scientist is prototyping a text summarisation application using Amazon Bedrock. They want to quickly test different foundation models and prompts without writing code. Which tool should they use?

A.Amazon SageMaker Studio
B.Amazon Bedrock Playground
C.Amazon Bedrock Agents
D.Amazon Bedrock Model Evaluation
AnswerB

The Playground provides a console interface for running prompts against multiple foundation models and comparing outputs interactively, with no coding required. This directly satisfies the stem's constraint of testing different models and prompts quickly without writing code.

Why this answer

Amazon Bedrock Playground is the correct tool because it provides a no-code, web-based interface for interactively testing and comparing different foundation models and prompts directly within the AWS Management Console. This allows the data scientist to quickly iterate on prompt engineering and model selection without writing any code, which perfectly matches the requirement to prototype a text summarization application.

Exam trap

The trap here is that candidates may confuse Amazon Bedrock Playground with Amazon SageMaker Studio, thinking both are for prototyping, but SageMaker Studio requires coding and is not a no-code tool for testing foundation models.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker Studio is a full-featured integrated development environment (IDE) for building, training, and deploying machine learning models, which requires writing code (e.g., Python notebooks) and is overkill for simply testing pre-built foundation models and prompts without code. Option C is wrong because Amazon Bedrock Agents is a feature for creating autonomous agents that can orchestrate tasks using foundation models, APIs, and knowledge bases, which is more complex than the simple prompt testing described and still requires configuration beyond a no-code playground. Option D is wrong because Amazon Bedrock Model Evaluation is a service for running automated or human evaluation jobs to assess model performance on specific metrics, which is a post-development step and not designed for quick, interactive prototyping of prompts and models.

188
MCQmedium

A data scientist is using Amazon Bedrock to generate product descriptions. They discover that the model frequently repeats phrases and produces overly deterministic outputs. Which parameter adjustment would MOST likely introduce more diversity?

A.Increase the top_p value from 0.9 to 1.0
B.Increase the temperature from 0.7 to 1.2
C.Decrease the top_k value from 50 to 10
D.Decrease the temperature from 0.7 to 0.2
AnswerB

Raising temperature to 1.2 flattens the softmax probability distribution over the vocabulary, so lower-probability tokens are sampled more often, directly countering the repetition and determinism described. The stem's constraint is insufficient output diversity; temperature is the parameter controlling sampling randomness, making this the most direct adjustment.

Why this answer

Increasing the temperature from 0.7 to 1.2 raises the randomness of token selection by flattening the probability distribution, which makes lower-probability tokens more likely to be chosen. This directly counters the overly deterministic and repetitive outputs by introducing more diversity into the generated text.

Exam trap

AWS often tests the misconception that increasing top_p or decreasing top_k increases diversity, when in fact both adjustments can reduce diversity by narrowing the token selection pool, whereas temperature is the primary hyperparameter for controlling randomness.

How to eliminate wrong answers

Option A is wrong because increasing top_p from 0.9 to 1.0 actually reduces diversity by including more low-probability tokens only when the cumulative probability threshold is raised, but at 1.0 it includes all tokens, which can paradoxically increase randomness but does not target the core issue of deterministic repetition as effectively as temperature. Option C is wrong because decreasing top_k from 50 to 10 restricts the sampling pool to only the top 10 most likely tokens, which reduces diversity and would make outputs even more deterministic and repetitive. Option D is wrong because decreasing temperature from 0.7 to 0.2 makes the model more deterministic by sharpening the probability distribution, which would exacerbate the repetition problem rather than solve it.

189
Multi-Selecteasy

A company is using Amazon Bedrock with a foundation model for a text summarization task. They want to evaluate the quality of the summaries. Which TWO metrics are appropriate for evaluating the quality of generated summaries? (Select TWO)

Select 2 answers
A.ROUGE score
B.BLEU score
C.Accuracy
D.Latency
E.Perplexity
AnswersA, B

ROUGE measures n-gram overlap between generated and reference summaries, directly satisfying the stem's requirement for summary-quality evaluation. Recall-oriented variants capture whether key content from the source appears in the output, making it the standard metric for summarisation tasks rather than classification or retrieval.

Why this answer

ROUGE (Recall-Oriented Understudy for Gisting Evaluation) is correct because it measures n-gram and longest-common-subsequence overlap between generated summaries and reference summaries, which directly captures summary content coverage and is the standard metric for summarization quality. BLEU is also correct because it computes precision-based n-gram overlap between generated and reference text, and while traditionally used for machine translation, it is widely applied to summarization evaluation to assess how much of the generated summary matches the reference phrasing. Accuracy is not appropriate because summarization is a free-form generation task without a single discrete correct label, so classification-style accuracy cannot be computed meaningfully.

Latency measures inference speed, not output quality, so it does not evaluate the summary's content. Perplexity measures how well a language model predicts a token sequence and reflects fluency/likelihood, but it does not compare generated summaries against references and thus is not a direct quality metric for summarization.

Exam trap

AWS often tests the distinction between metrics designed for generation tasks (ROUGE, BLEU) versus classification metrics (Accuracy) or model performance metrics (Perplexity, Latency), leading candidates to mistakenly select Accuracy or Perplexity for summarization evaluation.

190
MCQhard

A healthcare company is deploying a conversational AI using a foundation model on Amazon Bedrock for patient triage. The application must minimize hallucinations and ensure factual accuracy. Which combination of techniques should the team implement?

A.Implement Retrieval-Augmented Generation (RAG) using a knowledge base on Amazon Bedrock and a system prompt demanding factual responses.
B.Fine-tune the model on a large dataset of medical transcripts and deploy with default parameters.
C.Use reinforcement learning from human feedback (RLHF) on the deployed model.
D.Set the maxTokens to a low value to force shorter, more focused answers.
AnswerA

RAG grounds responses in a curated knowledge base, so the model cites retrieved clinical content rather than relying on parametric memory, directly minimising hallucination. The system prompt reinforces factual, non-speculative answers. Together they satisfy the accuracy constraint for patient triage.

Why this answer

Retrieval-Augmented Generation (RAG) with a knowledge base on Amazon Bedrock grounds the model's responses in authoritative, up-to-date documents, dramatically reducing hallucinations. Pairing RAG with a system prompt that demands factual, sourced answers further constrains the model. This combination directly addresses the requirement to minimize hallucinations and ensure factual accuracy for patient triage.

Exam trap

AIF-C01 often tests the misconception that fine-tuning or RLHF eliminates hallucinations, when RAG with grounded retrieval is the primary technique for factual accuracy.

How to eliminate wrong answers

Option B is wrong because fine-tuning on medical transcripts improves domain style but does not prevent hallucinations and can even amplify incorrect patterns; default parameters offer no grounding. Option C is wrong because RLHF is a training-time alignment technique not available as a runtime control on Bedrock and does not provide factual grounding. Option D is wrong because limiting maxTokens only shortens output; it does not improve factual accuracy and can truncate critical information.

191
MCQmedium

A company deployed a question-answering system using Amazon Bedrock with a knowledge base (RAG). Users report that the model often hallucinates facts not in the knowledge base. What is the most effective way to reduce hallucinations?

A.Reduce the maximum context length to limit model input
B.Fine-tune the foundation model on a large general corpus
C.Improve the relevance of retrieved documents by refining the retrieval strategy
D.Increase the chunk size of documents in the knowledge base
AnswerC

Refining retrieval directly targets the RAG constraint: hallucinations arise when retrieved context lacks the facts needed, so the model fabricates answers. Improving retrieval relevance—through better chunking, embeddings or hybrid search—ensures grounding documents actually contain the answer, reducing fabrication without changing the foundation model itself.

Why this answer

Hallucinations in RAG systems often stem from the model receiving irrelevant or low-quality retrieved documents, which forces it to rely on its parametric knowledge rather than the provided context. By refining the retrieval strategy—such as improving embedding quality, adjusting chunk overlap, or using hybrid search—the system ensures the foundation model has the most relevant information to ground its answers, directly reducing the likelihood of fabricating facts.

Exam trap

A common misconception is that hallucinations are primarily a model training issue (fine-tuning or context length) rather than a retrieval quality issue in RAG systems, leading candidates to overlook the critical role of the retriever in grounding responses.

How to eliminate wrong answers

Option A is wrong because reducing the maximum context length limits the amount of retrieved context the model can use, which actually increases the risk of hallucinations by forcing the model to rely more on its own training data rather than the knowledge base. Option B is wrong because fine-tuning on a large general corpus would further embed general knowledge into the model, potentially exacerbating hallucinations when the model defaults to its training data instead of the knowledge base; fine-tuning is not a targeted fix for retrieval quality. Option D is wrong because increasing chunk size can lead to chunks that contain irrelevant or noisy information, reducing the precision of retrieval and potentially introducing more irrelevant context that confuses the model, rather than improving answer accuracy.

192
MCQeasy

A company is building a generative AI application for code generation. They want to minimize costs while maintaining acceptable performance for their workload, which has periodic spikes in demand. Which approach would be MOST cost-effective?

A.Right-size model selection: use a smaller model for simple tasks and a larger model only when needed
B.Always use the largest available foundation model for all requests
C.Use model caching to store responses for repeated prompts
D.Use batch inference for all requests
AnswerA

Routing simple requests to a smaller, cheaper model and reserving the larger model for complex tasks cuts inference cost substantially, while elastic scaling absorbs periodic demand spikes. This satisfies the stem's dual constraint of minimising cost without dropping below acceptable performance.

Why this answer

Right-sizing model selection involves using smaller, cheaper models for simple tasks and reserving larger, more expensive models for complex tasks. This optimizes cost while maintaining acceptable performance, especially for workloads with periodic spikes. It avoids over-provisioning and leverages the most cost-effective model for each request.

Exam trap

AIF-C01 often tests cost optimization strategies; candidates may focus on caching or batch but overlook the fundamental principle of matching model size to task complexity.

How to eliminate wrong answers

Option B is wrong because always using the largest model incurs unnecessary costs for simple tasks that could be handled by smaller models. Option C is wrong because model caching can reduce costs for repeated prompts, but it doesn't address the variability of tasks and may not be applicable for unique code generation requests. Option D is wrong because batch inference is for non-urgent, large-scale processing, not for interactive applications with periodic spikes; it may introduce latency and is not suitable for real-time code generation.

193
MCQmedium

A financial institution is building a model to approve loan applications. They must comply with the EU AI Act, which classifies credit scoring as a high-risk AI system. Which requirement is the MOST likely to apply under the EU AI Act?

A.The model must be trained exclusively on data from within the EU
B.The model must achieve a minimum accuracy of 95%
C.The system must be able to be overridden or stopped by a human
D.The system must be explainable using SHAP values
AnswerC

High-risk AI systems under the EU AI Act must allow effective human oversight, including the ability to intervene, override or halt the system. For credit scoring, this means a human can override or stop automated decisions.

Why this answer

Under the EU AI Act, high-risk AI systems (including credit scoring) must ensure human oversight, meaning the system can be overridden or stopped by a human. This is a core requirement in Article 14, ensuring meaningful human control over high-risk decisions. Other requirements include risk management, data governance, and transparency, but human oversight is explicitly mandated.

Exam trap

The trap is assuming specific technical mandates (95% accuracy, SHAP, EU-only data) that the EU AI Act does not require; candidates must focus on the actual high-risk requirements like human oversight.

How to eliminate wrong answers

Option A is wrong because the EU AI Act does not require training data to originate exclusively from the EU; it requires data governance and quality, not geographic restriction. Option B is wrong because the Act does not mandate a specific accuracy threshold like 95%; it requires appropriate accuracy, robustness, and cybersecurity, but no fixed number. Option D is wrong because while explainability is encouraged, the Act does not mandate SHAP specifically — it requires transparency and provision of information, not a particular technique.

194
MCQmedium

A developer uses Amazon Bedrock to generate code. Some outputs contain syntax errors. What is the most likely cause?

A.The prompt lacks constraints or examples
B.The max_tokens is too low
C.The temperature is too high
D.The model lacks knowledge of the language
AnswerA

Foundation models infer intent from prompt context, so an unconstrained prompt lets the model choose arbitrary syntax and libraries. Adding explicit language, style and formatting constraints plus few-shot code examples narrows the output distribution, which is the direct mechanism preventing the syntax errors described.

Why this answer

Syntax errors in generated code typically arise when the prompt lacks sufficient constraints or examples to guide the model toward producing syntactically valid output. Amazon Bedrock's foundation models rely on clear instructions and few-shot examples to adhere to language syntax rules; without them, the model may generate plausible-looking but incorrect code.

Exam trap

The AWS exam often tests the misconception that syntax errors are due to model limitations (e.g., lack of knowledge or parameter settings) rather than the more common cause of insufficient prompt engineering, such as missing constraints or examples.

How to eliminate wrong answers

Option B is wrong because max_tokens controls the length of the output, not the syntactic correctness; a low max_tokens might truncate code but does not cause syntax errors. Option C is wrong because temperature affects randomness and creativity, not syntax; a high temperature might produce more varied but still syntactically valid code. Option D is wrong because Bedrock's foundation models are trained on vast corpora including many programming languages and have sufficient knowledge of language syntax; the issue is prompt design, not model capability.

195
MCQeasy

Which pricing model does Amazon Bedrock use for foundation model inference?

A.Per-request
B.Per-hour instance
C.Per-GB storage
D.Per-token
AnswerD

Amazon Bedrock charges for foundation model inference by the number of input and output tokens processed, satisfying the stem's demand for its actual pricing model. This consumption-based approach bills each API call according to tokens consumed, unlike provisioned throughput's hourly commitment, making per-token the accurate answer.

Why this answer

Amazon Bedrock charges for foundation model inference based on the number of tokens processed, which includes both input and output tokens. Each model has a specific per-token price, and the total cost is calculated by multiplying the token count by the model's rate. This is the standard pricing model for generative AI inference services like Bedrock.

Exam trap

AWS often tests the distinction between on-demand inference (per-token) and provisioned throughput (per-hour instance), so candidates mistakenly select per-request thinking it covers all inference, but Bedrock's on-demand pricing is explicitly token-based.

How to eliminate wrong answers

Option A is wrong because Amazon Bedrock does not use a per-request pricing model; instead, it charges per token, which accounts for the variable length of each request. Option B is wrong because per-hour instance pricing applies to provisioned throughput or dedicated instances, not to on-demand inference, which is token-based. Option C is wrong because per-GB storage pricing is used for data storage services like Amazon S3 or EBS, not for inference compute in Bedrock.

196
Multi-Selecteasy

Which TWO actions can help mitigate bias in a face recognition model trained on AWS? (Select two.)

Select 2 answers
A.Ensure the training dataset is balanced across demographics
B.Regularly evaluate model performance across subgroups
C.Deploy the model in multiple regions
D.Use a larger neural network
E.Use Amazon Rekognition's content moderation
AnswersA, B

Balancing the training dataset across demographics directly addresses the stem's bias-mitigation constraint by preventing the model from overfitting to a majority group. Underrepresented subgroups otherwise yield skewed feature weights, so equalising sample counts per demographic reduces disparate error rates before training begins.

Why this answer

Options A and B are correct. Mitigating bias in a face recognition model requires a balanced training dataset (A) and regular evaluation of model performance across demographic subgroups (B). Option C (deploying in multiple regions) affects latency or availability, not bias.

Option D (larger neural network) does not address data imbalance. Option E (Amazon Rekognition's content moderation) is for detecting inappropriate content, not for bias mitigation.

197
MCQmedium

A company wants to ensure that only approved machine learning models are deployed to production on Amazon SageMaker. Which combination of services can enforce this governance requirement?

A.AWS CodePipeline and Amazon CodeGuru
B.Amazon CloudWatch Events and AWS CloudTrail
C.AWS Organizations and AWS Artifact
D.AWS Config custom rules and AWS IAM policies
AnswerD

AWS Config custom rules continuously evaluate SageMaker model deployments against approved-model criteria, flagging non-compliant resources, while IAM policies restrict which principals can invoke deployment APIs. Together they enforce the governance constraint that only approved models reach production.

Why this answer

AWS Config custom rules can evaluate SageMaker model deployment configurations against defined policies (e.g., requiring models to be from an approved registry), and AWS IAM policies can restrict who can create or update endpoints, together enforcing that only approved ML models are deployed. This combination provides both continuous compliance checking and access control, directly addressing the governance requirement.

Exam trap

The trap here is that candidates often confuse monitoring/auditing services (like CloudTrail and CloudWatch) with enforcement mechanisms, failing to recognize that only AWS Config rules combined with IAM policies can actively prevent or flag non-compliant deployments.

How to eliminate wrong answers

Option A is wrong because AWS CodePipeline is a CI/CD service for automating build and deploy pipelines, and Amazon CodeGuru provides code reviews and profiling, neither of which can enforce governance over which specific ML models are deployed to SageMaker. Option B is wrong because Amazon CloudWatch Events (now Amazon EventBridge) and AWS CloudTrail are monitoring and auditing services that record API calls and trigger events, but they cannot prevent or enforce deployment of only approved models. Option C is wrong because AWS Organizations manages multi-account governance and service control policies, and AWS Artifact provides compliance reports, but neither can directly evaluate or restrict SageMaker model deployment approvals.

198
MCQhard

A security engineer creates the above IAM policy to allow a user to invoke an Amazon Bedrock model. However, invocation fails. What is the issue?

A.The action should be "bedrock:InvokeModelWithResponseStream".
B.The resource ARN is missing the account ID.
C.The ARN should use "foundation-model" instead of "model".
D.The statement is missing a condition for the model ID.
AnswerC

Bedrock foundation models are addressed with the resource ARN segment "foundation-model", not "model". The policy's incorrect ARN means the Allow statement matches no real resource, so the invocation is implicitly denied despite otherwise valid permissions.

Why this answer

The IAM policy's resource ARN incorrectly uses 'model' in the path, but Amazon Bedrock requires 'foundation-model' to reference foundation models. The correct ARN format for invoking a Bedrock foundation model is 'arn:aws:bedrock:region::foundation-model/model-id'. Using 'model' instead of 'foundation-model' causes the policy to not match any valid Bedrock resource, resulting in an invocation failure.

Exam trap

AWS often tests the distinction between 'model' and 'foundation-model' in Bedrock ARNs, as candidates may assume all Bedrock models use the same resource type, overlooking that foundation models require a specific path.

How to eliminate wrong answers

Option A is wrong because 'bedrock:InvokeModelWithResponseStream' is a separate action for streaming responses, but the standard 'bedrock:InvokeModel' action is sufficient for non-streaming invocation; the failure is not due to the action name. Option B is wrong because the resource ARN for Bedrock foundation models does not require an account ID; the ARN format uses a double colon (::) in the account ID position, which is correct for service-owned resources. Option D is wrong because a condition for the model ID is optional and not required for invocation; the primary issue is the incorrect resource type in the ARN.

199
MCQhard

A developer is integrating an Amazon Bedrock foundation model into an application that must support multi-turn conversations, maintain chat history, and switch between different provider models with minimal code changes. The application should use a consistent request and response format. Which Amazon Bedrock API should the developer use?

A.The InvokeModel API
B.The Converse API
C.The ListFoundationModels API
D.The CreateModelCustomizationJob API
AnswerB

The Converse API provides a unified, model-agnostic interface for multi-turn conversations, accepting a structured messages array and returning a consistent response shape across supported models. It supports system prompts and tool use, and it reduces provider-specific code when switching models, directly satisfying the requirement for consistent formats and minimal changes.

Why this answer

The Converse API offers a unified conversational interface with a consistent message structure and response format across supported foundation models, simplifying multi-turn applications and reducing code changes when switching providers. InvokeModel requires provider-specific payloads, while model listing and customization job APIs serve discovery and training rather than conversational inference.

Exam trap

The trap here is choosing InvokeModel for portability, when its provider-specific payloads and responses require custom code for each model rather than a unified conversation format.

200
MCQmedium

A company uses Amazon Bedrock to build an AI assistant. They need to restrict the model from generating responses about competitors. Which Bedrock feature should they configure?

A.Word filters
B.Denied topics
C.PII redaction
D.Content filters
AnswerB

Denied topics let you define a set of undesirable subjects, described in natural language, that Bedrock Guardrails blocks the model from discussing. Configuring a denied topic covering competitors prevents the assistant generating responses about them, meeting the restriction requirement.

Why this answer

Bedrock Guardrails allows you to define topic restrictions that block certain topics from being discussed. Other options are for content filtering, PII redaction, or grounding.

201
MCQmedium

A company wants to personalize product recommendations for its e-commerce website. The recommendation engine should adapt to each user's browsing and purchase history in real time. Which AWS service is MOST suitable?

A.Amazon Personalize
B.Amazon Rekognition
C.Amazon Comprehend
D.Amazon Forecast
AnswerA

Amazon Personalize builds custom recommendation models from user interaction data and serves real-time personalised recommendations via API, adapting to each user's browsing and purchase history. This satisfies the requirement for real-time personalisation on an e-commerce site without building ML infrastructure.

Why this answer

Amazon Personalize is the correct choice because it is a fully managed ML service specifically designed to build real-time personalized recommendation systems. It uses the same technology as Amazon's own recommendation engine, processing user-item interaction data (browsing and purchase history) to generate tailored product suggestions with sub-second latency via a real-time inference endpoint.

Exam trap

The trap here is that candidates may confuse Amazon Personalize with Amazon Forecast, as both involve 'predicting' something, but Forecast is for time-series numeric predictions (e.g., sales volume) while Personalize is for user-specific item recommendations.

How to eliminate wrong answers

Option B (Amazon Rekognition) is wrong because it is a computer vision service for analyzing images and videos, not for generating product recommendations. Option C (Amazon Comprehend) is wrong because it is a natural language processing (NLP) service for extracting insights from text, such as sentiment or entities, not for building recommendation engines. Option D (Amazon Forecast) is wrong because it is a time-series forecasting service for predicting future metrics like demand or sales, not for personalizing recommendations based on user behavior.

202
MCQeasy

A developer is using Amazon Bedrock to generate summaries of news articles. They notice that the model sometimes includes information not present in the original article. Which term describes this phenomenon?

A.Data leakage
B.Hallucination
C.Underfitting
D.Overfitting
AnswerB

Hallucination refers to the phenomenon where a foundation model generates content that is not grounded in the input data or factual reality. In this scenario, the model adds details not present in the original article, which is a classic example of hallucination. This is a common challenge when using generative AI and requires mitigation strategies such as grounding or retrieval augmentation.

Why this answer

The phenomenon where a foundation model generates information not present in the source material is called hallucination. It is a key challenge in generative AI, especially for summarization tasks. Mitigation includes grounding the model with retrieval-augmented generation or using guardrails to filter unsupported claims.

Exam trap

The trap here is confusing hallucination with overfitting or data leakage, which are unrelated to the model adding unsupported content during inference.

203
MCQmedium

A company uses Amazon Bedrock Agents to automate a multi-step data processing workflow. The agent needs to call an external API to enrich customer records. How should the developer expose this API to the agent?

A.By embedding the API directly in the agent's prompt instructions
B.By creating a custom model that has been fine-tuned to call the API
C.By defining an action group with the API specification and a Lambda function
D.By configuring a Bedrock Knowledge Base with API documentation
AnswerC

Action groups bind an OpenAPI schema describing the API's operations to a Lambda function that performs the actual invocation. Defining the group this way gives the agent a callable interface, satisfying the requirement to expose the external enrichment API without bespoke orchestration code.

Why this answer

Action groups define the tools an agent can invoke. Each action group contains Lambda functions or API schemas that the agent calls during execution.

204
Multi-Selecteasy

A developer is selecting a foundation model on Amazon Bedrock for a real-time text summarization application. Which THREE factors should they consider when choosing the model? (Choose three.)

Select 3 answers
A.The color of the model's logo
B.Latency and throughput requirements
C.Model's ability to generate images
D.Cost per token for inference
E.Supported output modalities (text, code, etc.)
AnswersB, D, E

Latency and throughput determine how quickly requests return and how many concurrent summarisations the model sustains. This satisfies the real-time constraint: a model with slow token generation or low throughput cannot meet interactive summarisation demands, regardless of output quality.

Why this answer

Option B is correct because a real-time text summarization application demands low latency and high throughput, so the developer must evaluate each Bedrock foundation model's inference speed and tokens-per-second capacity to meet interactive response times. Option D is correct because Bedrock charges based on input and output tokens, so the cost per token directly affects the operating budget of a high-volume summarization workload. Option E is correct because the model must support the required output modality—text (and possibly code)—for summarization; models limited to other modalities such as embeddings or image generation would not satisfy the use case.

Option A is incorrect because a model's logo color is purely cosmetic branding and has no bearing on technical or business fit. Option C is incorrect because image generation is irrelevant to text summarization, and selecting a model for that capability would waste cost and latency on unneeded functionality.

Exam trap

AWS often tests the ability to distinguish between essential technical requirements (like latency, cost, and output modality) and superficial or irrelevant features (like logo color or unrelated capabilities) to see if candidates focus on functional criteria for model selection.

205
Multi-Selectmedium

A company is deploying a customer-facing chatbot using Amazon Bedrock. They want to reduce the risk of generating biased or harmful responses. Which TWO measures should they implement? (Choose 2.)

Select 2 answers
A.Implement a human-in-the-loop review for sensitive replies
B.Train the model exclusively on historical customer conversations
C.Use guardrails to filter content
D.Set the temperature parameter to 1.5
E.Disable logging to improve performance
AnswersA, C

Human-in-the-loop review catches biased or harmful outputs that automated guardrails miss, satisfying the requirement to reduce harmful responses in a customer-facing chatbot. Reviewers assess sensitive replies before they reach users, providing a feedback loop that can also refine prompts and filters over time.

Why this answer

Option A is correct because implementing a human-in-the-loop review for sensitive replies adds a manual verification layer that can catch biased or harmful outputs before they reach customers, which is a recommended responsible-AI practice for customer-facing generative applications. Option C is correct because Amazon Bedrock Guardrails lets you configure content filters (for hate, insults, sexual, violence, misconduct), denied topics, word filters, and contextual grounding checks that automatically block or mask harmful or biased responses at inference time. Option B is not appropriate because training exclusively on historical customer conversations can perpetuate existing biases and does not by itself mitigate harmful output.

Option D is incorrect because setting temperature to 1.5 increases randomness and creativity, making outputs less predictable and potentially more harmful. Option E is incorrect because disabling logging reduces observability and auditability, which undermines monitoring and continuous improvement of safety controls.

Exam trap

A common misconception when using Amazon Bedrock is that increasing the temperature parameter or training on raw historical data alone can improve safety, when in fact these actions increase risk or reduce oversight.

206
MCQhard

A financial services company uses Amazon SageMaker to train models with sensitive customer data. They must ensure that no data leaves a specific AWS Region due to data residency regulations. The training data is in S3. Which architecture meets this requirement while minimizing data transfer?

A.Place SageMaker training job in a private subnet with a NAT gateway and route traffic through the internet
B.Configure S3 Transfer Acceleration and use a public SageMaker training job
C.Use AWS Glue to copy data to an EBS volume attached to the training instance
D.Use S3 VPC endpoints and place SageMaker training job in a private subnet with no internet access
AnswerD

S3 VPC endpoints keep S3 traffic on the AWS private network within the Region, and the private subnet without internet access prevents any egress outside it. This satisfies the data residency constraint while avoiding NAT gateway data transfer costs.

Why this answer

Using a VPC with S3 VPC endpoints ensures data stays within the AWS network and does not traverse the internet. Data remains in the same Region because S3 endpoints are Regional.

207
MCQeasy

Which AWS service provides managed foundation models from providers like Anthropic, Meta, and Stability AI through a single API?

A.AWS Lambda
B.Amazon Bedrock
C.Amazon SageMaker
D.Amazon Rekognition
AnswerB

Amazon Bedrock exposes foundation models from Anthropic, Meta, Stability AI and others through one unified API, satisfying the single-API constraint. It is serverless and managed, so no infrastructure provisioning is needed, unlike SageMaker, which requires deploying and hosting each model separately.

Why this answer

Amazon Bedrock is a fully managed service that provides access to foundation models (FMs) from leading AI companies such as Anthropic (Claude), Meta (Llama), and Stability AI (Stable Diffusion) through a single, unified API. This allows developers to integrate and experiment with multiple FMs without managing underlying infrastructure or dealing with separate provider endpoints.

Exam trap

The trap here is that candidates may confuse Amazon Bedrock with Amazon SageMaker, thinking SageMaker also provides managed foundation models, but SageMaker is primarily for custom model training and deployment, not for consuming pre-built third-party FMs via a single API.

How to eliminate wrong answers

Option A is wrong because AWS Lambda is a serverless compute service for running code in response to events, not a managed foundation model service; it does not provide access to pre-trained models via a single API. Option C is wrong because Amazon SageMaker is a machine learning platform for building, training, and deploying custom models, not a managed service for consuming third-party foundation models through a unified API. Option D is wrong because Amazon Rekognition is a specialized computer vision service for image and video analysis, not a general-purpose foundation model hub that includes models from Anthropic, Meta, or Stability AI.

208
Multi-Selectmedium

A data scientist is preparing data for a classification model. The dataset contains missing values in several features. Which TWO approaches are appropriate for handling missing data? (Select TWO.)

Select 2 answers
A.Remove rows with any missing values
B.Set missing values to zero
C.Ignore missing values during training
D.Replace missing values with -1
E.Impute missing values with the median of the feature
AnswersA, E

Dropping rows containing any missing value is valid when missingness is sparse and random, since the remaining complete records still represent the population. It preserves data integrity without fabricating values, though it reduces sample size and can bias results if missingness is systematic.

Why this answer

Option A (Remove rows with any missing values) is correct because listwise deletion is a standard, valid preprocessing approach when missingness is sparse or completely at random, producing a clean dataset that most classifiers can consume directly. Option E (Impute missing values with the median of the feature) is correct because median imputation is a widely accepted technique that preserves all records and is robust to outliers and skewed distributions, making it suitable for numeric features feeding a classification model. Option B (Set missing values to zero) is not appropriate in general because zero is a real value that can distort the feature's distribution and mislead the model unless zero is a meaningful sentinel.

Option C (Ignore missing values during training) is not valid because most classification algorithms cannot natively process NaN values and will error or produce biased results. Option D (Replace missing values with -1) is also not generally appropriate because -1 is an arbitrary constant that can introduce artificial patterns and skew numeric features unless it is a documented missing-value code.

209
MCQmedium

A financial services company needs to ensure that the machine learning models used for loan approval are explainable and meet regulatory compliance. Which AWS feature can help explain model predictions?

A.SageMaker Ground Truth
B.SageMaker Clarify
C.SageMaker Automatic Model Tuning
D.SageMaker Model Monitor
AnswerB

SageMaker Clarify computes feature attribution values, such as SHAP, showing how much each input contributed to an individual prediction. This satisfies the explainability and regulatory compliance constraint by documenting the reasoning behind each loan approval decision.

Why this answer

SageMaker Clarify is the correct AWS service for explaining model predictions because it provides feature attribution and bias detection capabilities. It uses SHAP (SHapley Additive exPlanations) to generate explainability reports, which are essential for meeting regulatory compliance in financial services like loan approval.

Exam trap

The trap here is confusing monitoring (Model Monitor) with explainability (Clarify), as both relate to model governance but serve fundamentally different purposes—monitoring tracks performance over time, while Clarify explains individual predictions.

How to eliminate wrong answers

Option A is wrong because SageMaker Ground Truth is a data labeling service for creating training datasets, not for explaining model predictions. Option C is wrong because SageMaker Automatic Model Tuning (hyperparameter optimization) adjusts model parameters to improve performance, but does not provide explainability or feature attribution. Option D is wrong because SageMaker Model Monitor detects data drift and model quality degradation over time, but does not generate explanations for individual predictions.

210
Multi-Selecteasy

Which TWO techniques can reduce the cost of running a fine-tuned foundation model on Amazon SageMaker? (Choose TWO.)

Select 2 answers
A.Implement structured pruning to remove less important model parameters.
B.Use larger instance types with more GPUs to speed up inference.
C.Apply model quantization to reduce precision from FP32 to FP16 or INT8.
D.Store the model parameters in FP32 to maintain accuracy during inference.
E.Increase the number of training epochs to achieve higher accuracy.
AnswersA, C

Structured pruning removes entire neurons, channels or attention heads, shrinking parameter count and memory footprint. The smaller model needs fewer SageMaker instance hours and less GPU memory, directly lowering inference hosting cost while retaining most accuracy.

Why this answer

Option A is correct because structured pruning removes less important weights, neurons, or channels from the fine-tuned model, producing a smaller model that requires fewer compute and memory resources during SageMaker inference, which directly lowers hosting cost. Option C is correct because quantization reduces numerical precision from FP32 to FP16 or INT8, shrinking model size and memory bandwidth needs and enabling faster, cheaper inference on SageMaker endpoints, especially with GPU instances that support lower-precision arithmetic. Option B is not correct because using larger GPU instances increases the hourly cost of the endpoint rather than reducing it.

Option D is not correct because keeping parameters in FP32 preserves accuracy but consumes more memory and compute, raising cost. Option E is not correct because increasing training epochs affects training time and accuracy, not the cost of running inference on the deployed model.

Exam trap

AWS often tests the distinction between techniques that reduce inference cost (pruning, quantization) versus those that improve training speed or accuracy, leading candidates to mistakenly select options that increase resource usage or are irrelevant to inference cost.

211
MCQeasy

An organization wants to document key information about their machine learning model, including intended use, performance metrics, training data, and ethical considerations. Which tool or practice should they adopt?

A.SageMaker Model Registry
B.Data sheets
C.Model cards
D.AWS CloudTrail logs
AnswerC

Model cards are short structured documents recording a model's intended use, performance metrics, training data and ethical considerations. They satisfy the documentation requirement directly, giving stakeholders a standardised reference for each model's purpose, limitations and fairness characteristics.

Why this answer

Model cards are structured documents that describe a model's intended use, performance across relevant subgroups, training data provenance, and ethical considerations such as bias and limitations. They were popularized by Google and are now a standard responsible-AI artifact. This matches the question's requirement to document intended use, metrics, training data, and ethics in one place.

Exam trap

The trap is confusing model cards (model-level documentation) with data sheets (dataset-level documentation) or with registries that store artifacts rather than describe them.

How to eliminate wrong answers

Option A is wrong because SageMaker Model Registry is a catalog for versioning and approving model artifacts, not a documentation format for intended use and ethics. Option B is wrong because data sheets describe datasets (composition, collection, preprocessing), not the model's intended use, metrics, and ethical considerations. Option D is wrong because CloudTrail logs record API activity for auditing, not model documentation.

212
Multi-Selectmedium

A company needs to select a vector store for their Amazon Bedrock Knowledge Base. Which TWO options are supported as vector stores? (Choose TWO.)

Select 2 answers
A.Amazon Aurora pgvector
B.Amazon OpenSearch Serverless
C.Amazon Redshift
D.Amazon RDS for MySQL
E.Amazon DynamoDB
AnswersA, B

Amazon Aurora PostgreSQL supports the pgvector extension, and Amazon Bedrock Knowledge Bases can use it as a vector store for storing and querying embedded chunks. This satisfies the requirement for a supported vector store backing the knowledge base.

Why this answer

Amazon Aurora pgvector (Option A) is a supported vector store for Amazon Bedrock Knowledge Bases because Aurora PostgreSQL supports the pgvector extension, allowing it to store and query embeddings via vector similarity search. Amazon OpenSearch Serverless (Option B) is also supported, as Bedrock Knowledge Bases can use an OpenSearch Serverless vector search collection as the backing vector index for embeddings. Amazon Redshift (Option C) is a data warehouse and is not a supported vector store for Bedrock Knowledge Bases.

Amazon RDS for MySQL (Option D) does not natively support vector embeddings in the way required by Bedrock Knowledge Bases. Amazon DynamoDB (Option E) is a key-value and document database and is not a supported vector store for this purpose.

Exam trap

AIF-C01 often tests the distinction between general-purpose AWS databases and the specific vector stores that Bedrock Knowledge Bases actually supports, tricking candidates into selecting DynamoDB or Redshift because they are 'AWS data services.'

213
MCQmedium

A retail bank trained a loan-approval model using Amazon SageMaker. Before deployment, the compliance team asks the ML engineer to produce a report that shows, for each input feature, how strongly its values influence the model's predictions, so reviewers can confirm the model is not making decisions based on a protected attribute such as postal code. Which SageMaker Clarify capability should the engineer use to generate this feature-attribution report?

A.SHAP (Shapley Additive exPlanations) analysis via SageMaker Clarify
B.AWS Trusted Advisor security and fault-tolerance checks
C.Amazon SageMaker Model Monitor data drift detection
D.Amazon SageMaker Clarify pre-training bias metrics
AnswerA

SageMaker Clarify computes SHAP values that assign each input feature a contribution to a prediction, producing global and local feature-attribution reports. This directly answers the compliance requirement by quantifying how strongly each feature, including postal code, influences outcomes, letting reviewers detect reliance on protected or proxy attributes before the model goes into production.

Why this answer

Feature attribution is needed to show which inputs drive predictions. SageMaker Clarify's SHAP analysis produces per-feature contribution values that reviewers can inspect to confirm the loan model is not leaning on a protected or proxy attribute. Drift detection, dataset-level bias metrics, and Trusted Advisor do not attribute model behavior to individual input features.

Exam trap

The trap here is assuming any SageMaker Clarify or monitoring output reveals feature influence, when only SHAP-based feature attribution quantifies how each input affects an individual prediction.

214
MCQmedium

A developer is using the Amazon Bedrock Converse API to build a multi-turn conversation application. The developer wants the model to adopt a specific persona and follow strict formatting rules for all responses. Which approach should the developer take?

A.Include the persona and formatting instructions in every user message
B.Use few-shot examples in the first user message only
C.Adjust the temperature to 0 to force deterministic formatting
D.Set the persona and formatting instructions in the system prompt
AnswerD

The system prompt is processed as high-priority context preceding user turns, so persona and formatting rules placed there persist across every turn of the multi-turn conversation. This satisfies the requirement for consistent behaviour throughout the dialogue.

Why this answer

The Amazon Bedrock Converse API supports a system prompt that allows developers to set global instructions, such as persona and formatting rules, which persist across the entire conversation. This is the correct approach because system prompts are designed to define the model's behavior and constraints without needing to repeat them in every user message, ensuring consistency and efficiency.

Exam trap

The AWS AI Practitioner exam often tests the distinction between system prompts and user messages, trapping candidates who think repeating instructions in every user message is necessary or that temperature alone can enforce formatting rules.

How to eliminate wrong answers

Option A is wrong because including persona and formatting instructions in every user message is inefficient and can lead to token waste, as the system prompt is specifically designed for persistent instructions. Option B is wrong because few-shot examples in the first user message only provide initial guidance but do not enforce consistent persona and formatting across all turns, as the model may drift without ongoing reinforcement. Option C is wrong because adjusting temperature to 0 forces deterministic output but does not define persona or formatting rules; it only reduces randomness, not enforce specific behavior or structure.

215
MCQmedium

A machine learning engineer needs to choose a service to extract text from scanned PDF forms, including handwritten fields. Which AWS service is MOST appropriate?

A.Amazon Transcribe
B.Amazon Textract
C.Amazon Comprehend
D.Amazon Rekognition
AnswerB

Amazon Textract uses optical character recognition with specialised handwriting recognition models, satisfying the scanned-form and handwritten-field constraints. Unlike Rekognition, which classifies images, Textract returns structured text and form key-value pairs directly. Its DetectDocumentText and AnalyzeDocument APIs handle both printed and handwritten content without custom model training.

Why this answer

Amazon Textract is specifically designed to extract text and data from scanned documents, including PDFs, and supports handwriting recognition via its 'forms' and 'tables' features. It uses machine learning to detect and extract printed text and handwritten content from form fields, making it the most appropriate choice for this use case.

Exam trap

The trap here is that candidates may confuse Amazon Rekognition's text detection (which can find text in images but not extract structured form data or handwriting) with Textract's specialized document analysis, or assume Transcribe handles any 'text' extraction due to its name.

How to eliminate wrong answers

Option A is wrong because Amazon Transcribe is an automatic speech recognition (ASR) service that converts audio to text, not designed for extracting text from scanned PDFs or handwritten fields. Option C is wrong because Amazon Comprehend is a natural language processing (NLP) service that analyzes text for entities, sentiment, and key phrases, but it cannot extract text from images or scanned documents. Option D is wrong because Amazon Rekognition is primarily an image and video analysis service for object detection, facial recognition, and content moderation, and while it can detect text in images, it lacks the specialized form and handwriting extraction capabilities of Textract.

216
MCQhard

A healthcare organization is developing a clinical decision support system using Amazon Bedrock with a large language model (LLM) to analyze patient symptoms and suggest potential diagnoses. The system must comply with HIPAA and internal responsible AI guidelines. During testing, the model occasionally generates diagnoses that are inconsistent with established medical guidelines and shows a tendency to recommend more aggressive treatments for patients from certain demographic groups. The team has already implemented data encryption, access controls, and basic content filtering. They need to further reduce biased and unsafe outputs without delaying the deployment timeline. What should the team do next?

A.Increase the logging of all model inputs and outputs to Amazon CloudWatch and set up alarms for any mentions of protected attributes.
B.Replace the current LLM with a different pre-trained model that has been benchmarked for lower bias on medical datasets.
C.Fine-tune the model using a curated dataset of anonymized patient records that is balanced across demographic groups and aligned with clinical guidelines.
D.Apply stronger content filtering rules using Amazon Comprehend Medical to block any diagnosis that contains demographic-related terms.
AnswerC

Fine-tuning on a curated, demographically balanced dataset aligned to clinical guidelines adjusts the model's weights to reduce biased and unsafe outputs. This directly targets the demographic disparity and guideline inconsistency while meeting HIPAA and responsible AI requirements without delaying deployment.

Why this answer

Fine-tuning the model with a balanced, curated dataset directly addresses both the bias and clinical accuracy issues at the model level, which is the most effective approach for reducing biased and unsafe outputs without delaying deployment. This method adjusts the model's internal weights to align with established medical guidelines and demographic fairness, rather than relying on post-processing filters or logging that do not fix the root cause. Since the team has already implemented basic content filtering, fine-tuning provides a targeted, efficient solution that can be completed within a reasonable timeline.

Exam trap

The trap here is that candidates may confuse monitoring and logging (Option A) with actual bias mitigation, or assume that a different pre-trained model (Option B) will inherently solve domain-specific bias without requiring additional fine-tuning or validation.

How to eliminate wrong answers

Option A is wrong because increasing logging and setting alarms for protected attributes only monitors for bias after it occurs, but does not prevent or reduce biased or unsafe outputs; it adds operational overhead without addressing the model's behavior. Option B is wrong because replacing the current LLM with a different pre-trained model introduces significant risk of deployment delays due to re-evaluation, integration, and compliance validation, and does not guarantee lower bias on the specific medical domain without further customization. Option D is wrong because applying stronger content filtering with Amazon Comprehend Medical to block diagnoses containing demographic terms is a blunt, post-processing approach that can suppress legitimate clinical information and still allow biased patterns that do not explicitly mention protected attributes, failing to address the underlying model bias.

217
MCQeasy

A data scientist needs to restrict access to a SageMaker notebook instance to only the corporate network. Which configuration should they use?

A.Enable multi-factor authentication for the notebook
B.Use an IAM policy to allow only corporate users
C.Place the notebook instance in a VPC and configure security groups to allow only corporate IP ranges
D.Use a SageMaker lifecycle configuration to block external IPs
AnswerC

Placing the notebook in a VPC lets security groups act as stateful IP filters, permitting only the corporate CIDR ranges. Direct internet access is removed, so the network-origin constraint is enforced at the elastic network interface.

Why this answer

To restrict access to a SageMaker notebook instance to only the corporate network, the best approach is to place the notebook instance in a VPC and configure security groups to allow inbound traffic only from corporate IP ranges. This network-level control ensures that only traffic from specified IPs can reach the notebook.

Exam trap

The trap is confusing authentication (IAM, MFA) with network-level restrictions. Candidates must remember that to restrict by network, you need VPC and security groups.

How to eliminate wrong answers

Option A is wrong because multi-factor authentication adds an authentication layer but does not restrict network access; users can still connect from any network. Option B is wrong because an IAM policy controls AWS API permissions, not network access to the notebook instance; it does not restrict the source IP. Option D is wrong because lifecycle configurations are scripts that run during notebook instance creation or startup, and they cannot dynamically block external IPs at the network level.

218
MCQeasy

A startup company is developing an e-commerce platform and wants to use Amazon Bedrock to generate product descriptions automatically. They have a small team of developers who are not machine learning experts. The product catalog is stored in a DynamoDB table, and each product has attributes like name, category, price, and a brief description. The company wants the generated descriptions to reflect the unique brand voice, which is documented in a few internal style guides stored as PDF files in Amazon S3. They need a solution that allows them to quickly test the approach without significant infrastructure changes or model training. The development team is familiar with AWS SDKs and want to minimize ongoing maintenance. The team has already set up a Bedrock foundation model (Claude) and can make API calls. They tested simple prompts but the output lacked the brand's informal yet professional tone. They want to incorporate examples from the style guides directly into the prompt without retraining. The team fears that including the entire style guide in each prompt would exceed token limits and increase costs. Which approach should they take to effectively incorporate the brand voice with minimal changes?

A.Fine-tune the foundation model using the style guides with Amazon Bedrock Custom Models.
B.Use Amazon Bedrock with a custom prompt template that includes a few representative examples from the style guides as few-shot examples in the system prompt.
C.Concatenate all style guide PDFs into a single text and include it in every prompt.
D.Use Amazon Comprehend to analyze the style guides and extract a list of keywords to include in the prompt.
AnswerB

Few-shot examples embedded in the system prompt steer Claude's tone without weight updates, satisfying the no-training constraint. Selecting only representative excerpts keeps token usage within limits, avoiding the cost and context-window problems of pasting whole style guides, and requires no infrastructure change beyond prompt edits.

Why this answer

Amazon Bedrock supports few-shot prompting, where you include a few representative examples in the prompt to guide the model's style without retraining. By extracting a few examples from the style guides and incorporating them into the system prompt, the model can learn the desired tone and apply it to new product descriptions. This approach requires minimal changes, no model training, and keeps token usage manageable by not including the entire style guide.

Exam trap

AIF-C01 often tests the misconception that fine-tuning is always necessary to adapt a model to a specific style, when in fact few-shot prompting can achieve similar results with less effort and cost.

How to eliminate wrong answers

Option A is wrong because fine-tuning requires significant data preparation, training time, and cost, and the team wants to avoid model training. Option C is wrong because concatenating all style guide PDFs into every prompt would likely exceed token limits and increase costs, as the team fears. Option D is wrong because Amazon Comprehend extracts keywords and topics, not writing style or tone, so it would not effectively capture the brand voice.

219
MCQhard

A machine learning engineer notices that the training loss decreases steadily, but the validation loss starts increasing after a few epochs. Which of the following is the MOST likely cause?

A.Learning rate too low
B.Overfitting
C.Underfitting
D.Data leakage from validation set into training set
AnswerB

Overfitting occurs when the model memorises training data, so training loss keeps falling while validation loss rises from poor generalisation to unseen samples. The diverging loss curves after a few epochs are the classic signature, satisfying the stem's observation of decreasing training loss alongside increasing validation loss.

Why this answer

The scenario describes training loss decreasing while validation loss increases after a few epochs, which is the classic signature of overfitting. The model is memorizing the training data (including noise) rather than learning generalizable patterns, causing it to perform poorly on unseen validation data.

Exam trap

AWS AI Practitioner often tests the distinction between overfitting and underfitting by describing loss curves; the trap here is that candidates may confuse a rising validation loss with a learning rate issue or data leakage, but the steady decrease in training loss rules out underfitting and points directly to overfitting.

How to eliminate wrong answers

Option A is wrong because a learning rate that is too low would cause both training and validation loss to decrease very slowly or plateau, not cause validation loss to increase after initially decreasing. Option C is wrong because underfitting occurs when the model is too simple to capture patterns in the data, resulting in both training and validation loss remaining high and not decreasing steadily. Option D is wrong because data leakage from the validation set into the training set would artificially inflate training performance and likely cause both losses to be low and correlated, not a divergence where validation loss increases.

220
MCQeasy

A company wants to detect sensitive data such as PII in their training datasets stored in S3 before using them for model training. Which AWS service should they use?

A.Amazon Macie
B.Amazon Inspector
C.AWS Shield
D.Amazon GuardDuty
AnswerA

Amazon Macie uses machine learning and pattern matching to automatically discover, classify and alert on sensitive data such as PII within S3 buckets, directly satisfying the requirement to scan training datasets before use. It continuously evaluates bucket contents against managed and custom data identifiers, providing the visibility needed prior to model training.

Why this answer

Amazon Macie uses machine learning to discover and protect sensitive data in S3, including PII.

221
MCQhard

A developer is using the Amazon Bedrock Converse API to build a conversational agent. The agent needs to maintain context across multiple turns of dialogue. Which parameter should be used to provide the conversation history?

A.The 'additionalModelRequestFields' parameter with a custom field
B.The 'system' parameter with a concatenated history
C.The 'inferenceConfig' parameter with maxTokens set to a high value
D.The 'messages' parameter with an array of previous messages
AnswerD

The Converse API is stateless, so context must be supplied each call. Passing prior turns as an array of role-tagged message objects in 'messages' lets the model see the full dialogue history and maintain continuity across turns.

Why this answer

The Amazon Bedrock Converse API uses the 'messages' parameter to pass an array of previous message objects, each with a 'role' (user or assistant) and 'content'. This array represents the full conversation history, allowing the model to maintain context across multiple turns of dialogue.

Exam trap

The trap here is that candidates may confuse the 'system' parameter (which sets the assistant's behavior) with the 'messages' parameter (which holds the dialogue history), leading them to incorrectly concatenate history into the system prompt.

How to eliminate wrong answers

Option A is wrong because 'additionalModelRequestFields' is used to pass model-specific parameters (e.g., for Anthropic Claude's top_k or top_p) and is not designed for conversation history. Option B is wrong because the 'system' parameter is for providing a system prompt or instructions to the model, not for concatenating conversation history; doing so would mix system context with dialogue turns and break the expected message structure. Option C is wrong because 'inferenceConfig' controls inference parameters like maxTokens, temperature, and stop sequences, and setting maxTokens to a high value does not provide conversation history—it only increases the maximum output length.

222
MCQeasy

A company uses Amazon Rekognition to analyze images stored in an S3 bucket. The security team requires that all image analysis be logged to AWS CloudTrail for auditing. What is the minimum configuration needed to meet this requirement?

A.Enable Rekognition logging in the AWS Management Console
B.Enable CloudTrail management events for the S3 bucket
C.Enable S3 server access logs on the bucket
D.Enable CloudTrail data events for the S3 bucket to capture GetObject API calls
AnswerD

CloudTrail management events do not record object-level S3 operations, so Rekognition's GetObject calls on the bucket remain invisible by default. Enabling data events for that bucket captures the GetObject API calls, satisfying the auditing requirement with the minimum configuration.

Why this answer

CloudTrail data events capture S3 object-level API operations such as GetObject, which is the API call made by Amazon Rekognition when it retrieves images from the S3 bucket for analysis. By enabling data events for the S3 bucket, every GetObject request is logged to CloudTrail, providing the audit trail the security team requires. Management events alone do not capture object-level operations, and S3 server access logs are not integrated with CloudTrail for auditing.

Exam trap

The trap here is that candidates often confuse management events with data events, assuming that enabling CloudTrail for the S3 bucket automatically captures all API calls, when in fact management events only cover control-plane operations and not the object-level GetObject calls made by Rekognition.

How to eliminate wrong answers

Option A is wrong because Amazon Rekognition does not have a separate logging configuration in the AWS Management Console; its API calls are logged via CloudTrail when data events are enabled for the relevant S3 bucket. Option B is wrong because CloudTrail management events capture control-plane operations (e.g., bucket creation, policy changes) but do not capture data-plane operations like GetObject, which is the specific API call used by Rekognition to read images. Option C is wrong because S3 server access logs provide detailed records of requests made to the bucket, but they are not part of CloudTrail and do not satisfy the requirement for auditing via CloudTrail; they are a separate logging mechanism.

223
MCQeasy

A media company stores 40 TB of raw video footage in Amazon S3 and wants to automatically detect scene boundaries, identify on-screen text, and flag unsafe frames without building custom computer vision models. Which AWS service should they use?

A.Amazon Comprehend
B.Amazon Polly
C.Amazon Rekognition Video
D.Amazon Transcribe
AnswerC

Amazon Rekognition Video is a managed computer vision service that analyzes stored and streaming video for scene detection, text detection, content moderation, and activity recognition, so the media company can process S3-hosted footage without training any models. It exposes these capabilities through a single API call, which matches the requirement to detect scene boundaries, on-screen text, and unsafe frames with no custom ML development.

Why this answer

Amazon Rekognition Video is purpose-built for analyzing video stored in S3 or streamed in real time, offering scene detection, text detection, content moderation, and activity recognition through managed APIs. Because the company wants those visual capabilities without training custom models, the managed video analysis service is the correct fit. The other services address speech, text, or audio generation rather than visual video understanding.

Exam trap

The trap here is assuming that a general-purpose language or speech service can analyze visual video content.

224
MCQmedium

A healthcare organization uses an ML model to predict patient readmission risk. To comply with regulations, they need to explain individual predictions to clinicians. Which explainability technique provides local, model-agnostic explanations that are computationally efficient?

A.Partial dependence plots
B.Amazon SageMaker Autopilot
C.Global feature importance from a random forest
D.LIME (Local Interpretable Model-agnostic Explanations)
AnswerD

LIME fits because it perturbs individual instances and fits a local surrogate model, producing explanations for single predictions without needing access to model internals. This model-agnostic, per-patient approach satisfies the regulatory need to explain individual readmission predictions efficiently to clinicians.

Why this answer

LIME (Local Interpretable Model-agnostic Explanations) is a model-agnostic method that approximates the model locally to provide explanations for individual predictions. SHAP is also local and model-agnostic but can be computationally intensive.

225
MCQmedium

A company wants to build a model to forecast monthly sales. The data is a time series with trend and seasonality. Which SageMaker algorithm is most appropriate?

A.XGBoost
B.K-Means
C.Linear Learner
D.DeepAR
AnswerD

DeepAR is a supervised recurrent neural network designed for time series forecasting. It learns from many related series and natively models trend, seasonality and uncertainty, directly satisfying the stem's requirement for monthly sales data exhibiting both trend and seasonality.

Why this answer

DeepAR is the most appropriate algorithm because it is specifically designed for time series forecasting, handling both trend and seasonality through autoregressive recurrent neural networks. It learns from multiple related time series and produces probabilistic forecasts, making it ideal for monthly sales prediction.

Exam trap

The trap here is that candidates often choose XGBoost or Linear Learner because they are familiar with regression tasks, but fail to recognize that time series forecasting requires algorithms that explicitly model temporal dependencies and seasonality, which DeepAR is built for.

How to eliminate wrong answers

Option A is wrong because XGBoost is a gradient boosting algorithm for tabular data, not designed to capture temporal dependencies or seasonality in time series without extensive feature engineering. Option B is wrong because K-Means is an unsupervised clustering algorithm that groups data points by similarity, with no capability for forecasting sequential data. Option C is wrong because Linear Learner is a linear regression model that assumes independence of observations and cannot model complex time series patterns like seasonality or long-term trends.

Page 2

Page 3 of 12

Page 4