Courseiva

AWS Certified AI Practitioner AIF-C01 (AIF-C01) — Questions 226–300

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

Page 3

Page 4 of 12

Page 5
226
MCQmedium

A startup is building an AI-powered code assistant using a large language model (LLM). They want to ensure the model generates syntactically correct code and avoids security vulnerabilities. Which technique should they prioritize?

A.Augment prompts with few-shot examples of secure coding practices and unit tests
B.Deploy the model with max tokens set to 4096
C.Fine-tune the model on a large corpus of open-source code
D.Use chain-of-thought prompting to explain reasoning before code generation
AnswerA

Few-shot examples steer the LLM toward secure coding patterns and unit-test structure within the prompt itself, requiring no retraining or architectural change. This directly satisfies the startup's constraints of syntactic correctness and vulnerability avoidance, since the model conditions on concrete secure snippets rather than relying on its base pretraining alone.

Why this answer

Few-shot prompting with examples of secure coding practices and unit tests directly shapes the model's output distribution toward syntactically valid, security-conscious code by conditioning on concrete in-context demonstrations. This is a prompt-engineering technique that requires no retraining and can be updated instantly as new vulnerability patterns emerge. It simultaneously addresses both stated goals: syntactic correctness (via code examples) and security (via secure-coding exemplars).

Exam trap

AIF-C01 often tests the misconception that model configuration knobs (max tokens, temperature) or fine-tuning are the primary levers for output quality, when prompt engineering with targeted examples is usually the fastest, most controllable fix.

How to eliminate wrong answers

Option B is wrong because max tokens only caps output length and has no bearing on code correctness or security — a 4096-token limit could even truncate code mid-function. Option C is wrong because fine-tuning on generic open-source code often propagates the very vulnerabilities (e.g., hardcoded secrets, SQL injection) present in public repositories, and it is costly and slow to iterate. Option D is wrong because chain-of-thought improves reasoning transparency but does not guarantee syntactic validity or security; the model can reason correctly and still emit insecure code.

227
MCQmedium

A financial services company wants to generate personalized investment recommendations using a large language model via Amazon Bedrock. They have customer data that includes risk tolerance, portfolio holdings, and financial goals. The company is highly concerned about data privacy and must avoid exposing sensitive personally identifiable information (PII) to the model. They plan to use a foundation model to generate recommendations based on customer profiles. What is the best approach to protect customer privacy while still enabling personalization?

A.Fine-tune the model on a large dataset of investment recommendations without any customer-specific data.
B.Use prompt engineering to instruct the model to disregard any personally identifiable information.
C.Preprocess the customer data to replace sensitive fields with placeholders, then use the processed data in the prompt.
D.Include the customer data directly in the prompt and rely on the model to anonymize it.
AnswerC

Replacing sensitive fields with placeholders removes PII before any prompt reaches the foundation model, so personal identifiers never leave the company's environment. The model still receives behavioural context such as risk tolerance and goals, preserving personalisation while satisfying the privacy constraint.

Why this answer

Preprocessing customer data to replace sensitive fields with placeholders (e.g., using synthetic IDs) allows the model to generate personalized recommendations without accessing real PII. This minimizes risk. Option A is incorrect because fine-tuning on a large dataset of generic recommendations does not produce personalized outputs for individual customers.

Option B is incorrect because prompt engineering instructions are not a robust privacy control and cannot reliably prevent PII exposure. Option D is incorrect because including customer data directly in the prompt and relying on the model to anonymize it is unreliable and may still leak PII.

228
MCQmedium

A machine learning engineer is training a neural network and wants to prevent overfitting. Which technique should they apply?

A.Gradient descent
B.Backpropagation
C.Boosting
D.Dropout
AnswerD

Dropout randomly deactivates a proportion of neurons during each training iteration, forcing the network to learn redundant representations rather than memorising training samples. This directly counteracts the overfitting the engineer wants to prevent, and at inference time all neurons are active with scaled weights.

Why this answer

Dropout is a regularization technique that randomly drops a fraction of neurons during training, which prevents the network from becoming overly reliant on any single neuron and reduces co-adaptation. This forces the model to learn more robust features, effectively reducing overfitting by acting as an ensemble of sub-networks.

Exam trap

AWS often tests the distinction between optimization techniques (gradient descent, backpropagation) and regularization techniques (dropout), trapping candidates who confuse training algorithms with overfitting prevention methods.

How to eliminate wrong answers

Option A is wrong because gradient descent is an optimization algorithm used to minimize the loss function by updating weights, not a technique to prevent overfitting. Option B is wrong because backpropagation is the algorithm for computing gradients of the loss with respect to weights, enabling training, but it does not directly address overfitting. Option C is wrong because boosting is an ensemble method that combines weak learners sequentially to reduce bias, and while it can sometimes reduce overfitting with careful tuning, it is primarily designed to improve accuracy and can actually increase overfitting if not regularized.

229
MCQhard

A bank is using Amazon Bedrock to summarize customer support transcripts. The summaries often contain factual inaccuracies (hallucinations). Which approach is most effective for reducing hallucinations?

A.Decrease the top-p to 0.1
B.Increase the model's temperature to make outputs more diverse
C.Fine-tune a smaller model on a large dataset of transcripts
D.Implement RAG by grounding summarization on retrieved transcripts
AnswerD

Grounding summaries in retrieved transcript passages constrains generation to source text, directly countering the factual drift that causes hallucinations. Retrieval narrows the model's context to verified customer dialogue, so fabricated details lack support and are suppressed. This satisfies the stem's core requirement: reducing inaccuracies in Bedrock summarisation without retraining.

Why this answer

Retrieval-Augmented Generation (RAG) grounds the model's output on actual retrieved chunks of the customer support transcripts, providing factual context that reduces the likelihood of hallucination. By retrieving relevant transcript segments and feeding them as context to the LLM, the model generates summaries based on verified source material rather than relying solely on its parametric knowledge, which is the primary cause of factual inaccuracies.

Exam trap

AWS often tests the misconception that adjusting sampling parameters (top-p, temperature) or fine-tuning alone can fix hallucinations, when in fact these methods do not provide factual grounding and RAG is the standard industry approach for reducing factual inaccuracies in generative AI.

How to eliminate wrong answers

Option A is wrong because decreasing top-p to 0.1 reduces the nucleus sampling pool to only the most likely tokens, which can actually increase repetition and factual errors by making the model overly deterministic and less able to select correct but less probable tokens. Option B is wrong because increasing temperature makes outputs more random and diverse, which typically increases hallucination risk rather than reducing it, as the model is more likely to generate plausible-sounding but incorrect content. Option C is wrong because fine-tuning a smaller model on a large dataset of transcripts may improve domain adaptation but does not directly address hallucinations; smaller models have less capacity to memorize factual details, and fine-tuning can still produce hallucinations when the model encounters queries outside its training distribution or when it must generalize beyond exact training examples.

230
MCQmedium

A machine learning engineer notices that a generative AI model occasionally produces biased outputs. Which AWS feature can automatically filter harmful content before it reaches users?

A.Amazon CloudWatch alarms
B.Amazon SageMaker Clarify
C.AWS Identity and Access Management (IAM) policies
D.Amazon Bedrock Guardrails
AnswerD

Amazon Bedrock Guardrails applies configurable content filters and denied-topic policies to model inputs and outputs, blocking harmful content before it reaches users. This automated intervention satisfies the requirement to filter biased or harmful generative output without custom moderation code.

Why this answer

Amazon Bedrock Guardrails is specifically designed to implement safeguards for generative AI applications, including the ability to filter harmful, biased, or inappropriate content before it reaches users. It allows you to define denied topics, content filters, and sensitive information filters that are applied at inference time, directly addressing the need to automatically filter biased outputs from a generative AI model.

Exam trap

The trap here is that candidates may confuse Amazon SageMaker Clarify (which detects bias in training data or model predictions) with a real-time content filtering solution, but Clarify is a static analysis tool, not a runtime guardrail for generative AI outputs.

How to eliminate wrong answers

Option A is wrong because Amazon CloudWatch alarms are used for monitoring metrics and triggering notifications based on thresholds, not for filtering or modifying the content of AI model outputs. Option B is wrong because Amazon SageMaker Clarify is a tool for detecting bias in machine learning models and data during development and training, not for real-time filtering of generated content in a production generative AI application. Option C is wrong because AWS Identity and Access Management (IAM) policies control permissions and access to AWS resources, not the content or safety of outputs from a generative AI model.

231
MCQmedium

An e-commerce company is building a product description generator using Amazon Bedrock. They want to ensure that the generated descriptions do not include any prohibited content (e.g., offensive language or competitor mentions). The company has a list of denied topics and keywords. Which feature should they use?

A.Amazon Comprehend for toxicity detection
B.Bedrock Guardrails with content filters and denied topics
C.Bedrock Knowledge Bases with metadata filtering
D.Bedrock Agents with a custom action group to filter outputs
AnswerB

Guardrails content filters screen prompts and responses for harmful categories, while denied topics block the specific prohibited subjects and competitor mentions the company listed. This directly enforces the stated content restrictions at inference time without retraining or prompt engineering.

Why this answer

Bedrock Guardrails provides content filters and topic denial that can block specific words, phrases, or entire topics. This is the managed way to enforce content policies on model outputs.

232
Multi-Selecthard

A company uses Amazon SageMaker Pipelines for MLOps. The security team requires that all pipeline steps use only approved Docker images from a private Amazon ECR repository, and that all pipeline artifacts are encrypted with a customer managed KMS key. Which THREE steps must the company configure to meet these requirements? (Choose three.)

Select 3 answers
A.Specify a KMS key in the pipeline definition for encrypting output artifacts.
B.Set an ECR lifecycle policy to delete untagged images older than 30 days.
C.Configure each pipeline step to use an ImageUri that references a Docker image in the private Amazon ECR repository.
D.Enable AWS Config rules to check for public ECR repositories.
E.Assign an IAM role to the pipeline that includes kms:Encrypt and kms:Decrypt permissions for the customer managed KMS key.
AnswersA, C, E

This encrypts artifacts with the customer managed key.

Why this answer

Amazon SageMaker Pipelines allows you to specify a KMS key in the pipeline definition to encrypt output artifacts at rest. This ensures that all artifacts generated by pipeline steps are encrypted using a customer managed KMS key, meeting the security team's encryption requirement.

Exam trap

The AIF-C01 exam often tests the distinction between configuration that directly enforces a requirement (like specifying ImageUri and KMS key) versus monitoring or housekeeping actions (like lifecycle policies or Config rules) that do not enforce the requirement at the pipeline step level.

233
Multi-Selecthard

A company is optimizing costs for a Bedrock application that performs sentiment analysis on customer reviews. The workload is steady with occasional spikes. Which THREE strategies can help reduce costs without sacrificing accuracy? (Choose THREE)

Select 3 answers
A.Enable model caching to avoid reprocessing identical reviews
B.Use batch inference to process reviews in bulk during off-peak hours
C.Fine-tune a large model on the sentiment dataset for better accuracy
D.Select a smaller, right-sized foundation model that performs well on sentiment analysis
E.Provision enough throughput capacity to handle peak loads
AnswersA, B, D

Model caching stores responses for previously seen inputs, so identical reviews reuse the stored result instead of invoking the model again. This satisfies the cost-reduction goal without changing model outputs, preserving accuracy for steady workloads with repeated content.

Why this answer

Option A is correct because enabling model caching (e.g., Bedrock prompt caching) stores results for identical review inputs, so repeated or duplicate reviews are served from cache instead of invoking the model again, directly cutting inference token costs while returning the same accurate output. Option B is correct because Bedrock batch inference processes large volumes of reviews asynchronously at a lower per-token price than on-demand invocation, and running these jobs during off-peak hours aligns with the steady workload with occasional spikes, reducing cost without changing model accuracy. Option D is correct because right-sizing to a smaller foundation model that still performs well on sentiment analysis lowers the per-token price and latency, and since accuracy is validated on the task, cost drops without sacrificing quality.

Option C is not correct because fine-tuning a large model increases training and inference costs and is aimed at accuracy gains, not cost reduction, which the scenario does not need. Option E is not correct because provisioning throughput capacity (Provisioned Throughput) is a fixed hourly commitment suited to predictable high utilization; for a steady workload with only occasional spikes it can cost more than on-demand or batch usage rather than reducing costs.

Exam trap

A common misconception is that fine-tuning a larger model always yields better accuracy and cost savings, but in reality, fine-tuning increases cost and a smaller, right-sized model can achieve comparable accuracy for the specific task. Additionally, enabling model caching and using batch inference are effective cost-saving strategies without sacrificing accuracy.

234
MCQeasy

A company is using Amazon Bedrock to deploy a generative AI application. They want to implement guardrails to prevent the model from generating harmful or offensive content. Which feature of Bedrock Guardrails should they configure?

A.Enable data privacy settings in the model invocation
B.Use prompt engineering to instruct the model to be safe
C.Set up invocation logging to review all outputs
D.Configure denied topics and content filters
AnswerD

Denied topics define subject areas the model must refuse, while content filters block harmful or offensive categories such as hate, violence and sexual content, together satisfying the requirement to prevent harmful output. Both are configured as guardrail policies applied to the model invocation.

Why this answer

Amazon Bedrock Guardrails provides configurable safeguards including content filters and denied topics. Content filters block harmful categories (hate, violence, sexual, insults, misconduct) based on configurable strength, while denied topics let you define specific subjects the model must refuse to discuss. Together they directly prevent harmful or offensive output at inference time.

Exam trap

AIF-C01 often tests the misconception that prompt engineering or logging can enforce safety, when only Guardrails provide deterministic, configurable content filtering and topic denial.

How to eliminate wrong answers

Option A is wrong because data privacy settings control whether data is used for service improvement and encryption, not content safety. Option B is wrong because prompt engineering is a soft, easily bypassed instruction method and does not enforce guardrails at the platform level. Option C is wrong because invocation logging is for auditing and monitoring after the fact, not for preventing harmful content generation.

235
Multi-Selectmedium

A machine learning team is using prompt engineering to guide a large language model on Amazon Bedrock. They want the model to follow a specific reasoning process step-by-step. Which THREE prompt engineering techniques are most relevant? (Select THREE.)

Select 3 answers
A.Zero-shot prompting
B.Few-shot prompting with examples of step-by-step reasoning
C.System prompts that describe the desired reasoning process
D.Chain-of-thought (CoT) prompting
E.Adjusting the temperature to a high value
AnswersB, C, D

Few-shot prompting supplies worked examples demonstrating the exact step-by-step reasoning chain, letting the model imitate that structure through in-context learning. This directly satisfies the stem's goal of guiding the model to follow a specific reasoning process rather than producing an unstructured answer.

Why this answer

Option B (few-shot prompting with examples of step-by-step reasoning) is correct because providing worked examples that demonstrate each reasoning step conditions the model to imitate that structured reasoning pattern for new inputs. Option C (system prompts that describe the desired reasoning process) is correct because a system prompt sets persistent instructions and context for the model, so explicitly describing the required step-by-step reasoning process steers all subsequent responses accordingly. Option D (chain-of-thought prompting) is correct because CoT explicitly elicits intermediate reasoning steps before the final answer, which is exactly the step-by-step reasoning process the team wants.

Option A (zero-shot prompting) does not belong because it only supplies a task instruction with no reasoning examples or process guidance, so it does not specifically enforce a step-by-step reasoning procedure. Option E (adjusting temperature to a high value) does not belong because temperature controls randomness/creativity of sampling, not the structure or presence of a reasoning process, and a high value would typically make outputs less deterministic rather than more step-by-step.

Exam trap

AWS often tests the distinction between techniques that guide reasoning (CoT, few-shot, system prompts) versus those that control output style (temperature), leading candidates to mistakenly select high temperature as a reasoning technique.

236
MCQeasy

A developer is building an application that translates customer support tickets from English to Spanish using Amazon Bedrock. They need to evaluate the quality of translations. Which automated metric is most appropriate for comparing the model's translations to professional human translations?

A.Accuracy
B.BLEU
C.BERTScore
D.ROUGE
AnswerB

BLEU scores machine translation by measuring n-gram overlap between model output and reference human translations, making it the standard automated metric for this comparison. It requires no model-based judging and directly quantifies translation quality against professional references.

Why this answer

BLEU (Bilingual Evaluation Understudy) is specifically designed to evaluate machine translation quality by comparing n-gram overlap between the model's output and one or more professional human reference translations. It is the standard automated metric for translation tasks on Amazon Bedrock and in NLP generally.

Exam trap

The trap is that BERTScore and ROUGE sound more 'modern' and semantically aware, so candidates pick them — but the exam expects you to know BLEU is the canonical metric for machine translation specifically, while ROUGE is for summarization and BERTScore is general-purpose.

How to eliminate wrong answers

Option A is wrong because 'accuracy' is a generic classification metric (correct predictions / total predictions) and does not measure translation quality where there is no single correct output. Option C is wrong because BERTScore uses contextual embeddings to measure semantic similarity and is more common for summarization or general text generation, not the canonical translation benchmark. Option D is wrong because ROUGE measures recall-oriented n-gram overlap and is designed for summarization evaluation, not translation.

237
MCQeasy

Which AWS service is best suited for extracting text (including handwriting) from scanned documents, such as invoices and forms?

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

Amazon Textract uses optical character recognition with machine learning to extract text and handwriting from scanned documents, satisfying the invoice and form requirement. Unlike Rekognition, which handles images and video, Textract is purpose-built for document text, forms and tables.

Why this answer

Amazon Textract is purpose-built to extract text, handwriting, and structured data (like tables and forms) from scanned documents. It uses machine learning to go beyond simple OCR by understanding the layout and relationships within documents, making it ideal for processing invoices and forms.

Exam trap

The trap here is that candidates often confuse Amazon Rekognition's text-in-image capability with Textract's document-specific extraction, but Rekognition lacks the ability to extract structured data like tables and forms from multi-page documents.

How to eliminate wrong answers

Option A is wrong because Amazon Comprehend is a natural language processing (NLP) service that extracts insights like sentiment, entities, and key phrases from text, not from scanned images or documents. Option B is wrong because Amazon Transcribe converts speech to text from audio files, not from scanned documents or images. Option D is wrong because Amazon Rekognition is primarily for image and video analysis (e.g., object detection, facial recognition) and can extract text from images via OCR, but it lacks the specialized form and table extraction capabilities that Textract provides for structured document processing.

238
MCQmedium

A company wants its Amazon Bedrock application to always answer in a formal tone, never discuss competitors, and never reveal internal project codenames. The controls must apply consistently to every request and response without changing the underlying model. Which Amazon Bedrock capability should the company configure?

A.A higher temperature setting
B.Amazon Bedrock Guardrails
C.Provisioned Throughput
D.A larger context window
AnswerB

Guardrails let you define denied topics, content filters, word filters, and sensitive information filters that are evaluated on both prompts and responses, independent of the foundation model. A denied topic can block competitor discussion, a word filter can block codenames, and contextual grounding checks can enforce answer fidelity. This provides consistent, model-agnostic policy enforcement exactly as required.

Why this answer

Amazon Bedrock Guardrails enforce content policies such as denied topics, word filters, and sensitive information detection on inputs and outputs independently of the model, so the same rules apply across every request. Sampling parameters, throughput reservations, and context window size influence generation behavior or capacity but cannot block topics or enforce tone consistently.

Exam trap

The trap here is assuming that prompt engineering or sampling settings can enforce hard policy controls, when only Guardrails apply model-independent filters to requests and responses.

239
MCQhard

A machine learning team is fine-tuning a foundation model using Amazon SageMaker. They need to optimize training time and cost. Which approach should they take?

A.Use a larger instance type with more vCPUs
B.Increase the batch size to the maximum possible
C.Use the full model weights and train on a single GPU
D.Use Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA
AnswerD

LoRA freezes the base model weights and trains small low-rank adapter matrices instead, drastically reducing the number of trainable parameters. This lowers GPU memory and compute requirements, cutting both training time and cost compared with full fine-tuning.

Why this answer

Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA (Low-Rank Adaptation) significantly reduce the number of trainable parameters by injecting low-rank matrices into the model layers, while keeping the original weights frozen. This drastically lowers memory usage and computational cost, enabling faster training and reduced GPU hours on SageMaker without sacrificing model quality.

Exam trap

A common mistake is thinking that larger instances always improve performance, but Amazon SageMaker optimization often relies on algorithmic efficiency like PEFT rather than just scaling hardware.

How to eliminate wrong answers

Option A is wrong because simply using a larger instance with more vCPUs does not optimize training time or cost if the workload is not parallelizable; it often leads to diminishing returns and higher per-hour costs without proportional speedup. Option B is wrong because increasing the batch size to the maximum possible can cause out-of-memory errors, degrade model convergence, and may require learning rate adjustments, making it an unreliable optimization strategy. Option C is wrong because using full model weights on a single GPU ignores the benefits of distributed training and parameter efficiency, leading to excessive memory consumption and longer training times, which is the opposite of optimizing cost and speed.

240
MCQmedium

A team is training a binary classification model using Amazon SageMaker. They notice that the training accuracy is 99% but the test accuracy is only 70%. Which technique should they apply first to address this?

A.Reduce training data
B.Apply regularization
C.Increase learning rate
D.Increase model complexity
AnswerB

Regularization adds penalty for large weights, helping to reduce overfitting.

Why this answer

The high training accuracy (99%) paired with significantly lower test accuracy (70%) is a classic symptom of overfitting, where the model memorizes the training data instead of learning generalizable patterns. Regularization (Option B) is the first-line technique to combat overfitting by adding a penalty to the loss function (e.g., L1 or L2 regularization), which discourages overly complex decision boundaries. In Amazon SageMaker, this can be implemented via hyperparameters like `l1` or `l2` in built-in algorithms or by adding dropout layers in a custom framework.

Exam trap

AWS often tests the misconception that overfitting is solved by increasing data or model complexity, when in fact the first step should be regularization to penalize overly complex models.

How to eliminate wrong answers

Option A is wrong because reducing training data would worsen overfitting by providing the model with fewer examples to learn from, making it even more prone to memorization. Option C is wrong because increasing the learning rate can cause the model to overshoot optimal weights during training, leading to divergence or poor convergence, but it does not directly address the variance problem of overfitting. Option D is wrong because increasing model complexity (e.g., adding more layers or parameters) would exacerbate overfitting by giving the model more capacity to memorize noise in the training data.

241
MCQeasy

A healthcare startup uses Amazon Bedrock to power a patient-facing chatbot. Compliance officers are concerned that prompts or responses could contain protected health information and want an automated control that detects and blocks such content in real time before it reaches the model or the user. Which Amazon Bedrock feature should the team configure?

A.Amazon Macie sensitive data discovery jobs scoped to the Bedrock service-linked bucket.
B.AWS PrivateLink interface endpoints for the Amazon Bedrock runtime.
C.Amazon Bedrock Guardrails with sensitive information filters enabled.
D.Amazon Bedrock model evaluation jobs configured with an automatic toxicity metric.
AnswerC

Guardrails evaluate prompts and responses against configured policies, and the sensitive information filters detect and block entities such as names, addresses, and other PII patterns. Because Guardrails act inline during InvokeModel and Converse calls, they stop disallowed content before it reaches the model or returns to the user, matching the real-time blocking requirement.

Why this answer

The requirement is inline detection and blocking of sensitive content in both prompts and responses. Amazon Bedrock Guardrails applies configurable policies during inference, and its sensitive information filters identify PII and can mask or block it. Storage scanning, private networking, and offline evaluation each miss the real-time enforcement point where the chatbot interacts with patients.

Exam trap

The trap here is confusing asynchronous data discovery in storage with inline content filtering that can actually block a live prompt or response.

242
MCQhard

A healthcare startup is building a patient inquiry system using Amazon Bedrock. They must ensure the model does not generate responses containing medical advice or unverified treatment suggestions. The compliance team also requires that no personally identifiable information (PII) is output. Which Bedrock feature should the startup configure to meet both requirements?

A.Bedrock Knowledge Bases with a custom chunking strategy
B.Bedrock Guardrails with topic denial and PII detection
C.Amazon Comprehend for PII detection and a separate content moderation service
D.Bedrock Agents with a Lambda function that validates responses
AnswerB

Bedrock Guardrails enforce configurable policies at inference time: topic denial blocks medical advice and unverified treatment suggestions, while PII detection filters personally identifiable information from outputs. Both compliance constraints are satisfied within a single guardrail configuration, avoiding custom prompt engineering or post-processing logic.

Why this answer

Bedrock Guardrails provides content filtering, topic denial (to block medical advice), and PII detection/redaction. Topic denial can block entire categories of unwanted responses, and PII detection prevents leakage of personal data.

243
MCQeasy

Which AWS service can be used to create a personalized recommendation engine for an e-commerce website without requiring prior machine learning experience?

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

Amazon Personalize provides pre-built recommendation recipes that train on your interaction data and expose a real-time inference endpoint, requiring no ML expertise. It directly satisfies the stem's constraint of building a personalised e-commerce recommendation engine without prior machine learning experience, unlike general-purpose model-building services.

Why this answer

Amazon Personalize is a fully managed machine learning service designed specifically to build personalized recommendation engines (e.g., product recommendations, personalized content) without requiring prior ML expertise. It uses the same technology that powers Amazon.com's recommendations, providing pre-built algorithms and automatic model training, tuning, and deployment via a simple API.

Exam trap

The trap here is that candidates often confuse Amazon Personalize with Amazon SageMaker, assuming SageMaker is the only ML service for building models, but SageMaker requires manual ML expertise while Personalize is a purpose-built, no-code recommendation service.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker is a broad ML platform that requires users to build, train, and deploy custom models, demanding significant ML knowledge and coding; it is not a turnkey recommendation service. Option B is wrong because Amazon Rekognition is a computer vision service for image and video analysis (e.g., object detection, facial recognition), not for generating personalized recommendations. Option D is wrong because Amazon Forecast is a time-series forecasting service for predicting future metrics (e.g., demand, sales), not for building recommendation engines.

244
MCQeasy

A startup wants to integrate a generative AI chatbot into their mobile app with minimal latency. Which AWS service is purpose-built for deploying foundation models with low latency and high throughput?

A.AWS Lambda
B.Amazon SageMaker
C.Amazon Bedrock
D.Amazon Transcribe
AnswerC

Amazon Bedrock provides serverless access to foundation models through a single API with low-latency, high-throughput inference, meeting the chatbot's responsiveness requirement. It avoids managing infrastructure, unlike self-hosted options such as Amazon SageMaker endpoints or EC2-based deployments.

Why this answer

Amazon Bedrock is a fully managed service that provides access to foundation models (FMs) from leading AI providers via a serverless API, purpose-built for deploying generative AI applications with low latency and high throughput. It handles the underlying infrastructure, model hosting, and scaling automatically, making it ideal for integrating a generative AI chatbot into a mobile app with minimal latency.

Exam trap

Candidates often mistake Amazon SageMaker for the purpose-built service, but SageMaker requires manual infrastructure management for low-latency generative AI inference, whereas Amazon Bedrock is a fully managed, serverless service designed specifically for deploying foundation models with low latency and high throughput.

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 designed for hosting or serving large foundation models; it lacks the GPU acceleration and model-specific optimizations needed for low-latency generative AI inference. Option B is wrong because Amazon SageMaker is a broad machine learning platform that can deploy models, but it requires manual setup of endpoints, instance selection, and scaling configuration, adding complexity and potential latency overhead compared to Bedrock's managed FM serving. Option D is wrong because Amazon Transcribe is a speech-to-text service, not a generative AI model deployment service; it cannot host or serve foundation models for chatbot responses.

245
MCQeasy

A developer wants to store and search vector embeddings for a RAG application. Which AWS-managed vector store option is serverless and can be used with Amazon Bedrock?

A.Amazon RDS for MySQL
B.Amazon Redshift
C.Amazon DynamoDB
D.Amazon OpenSearch Serverless
AnswerD

Amazon OpenSearch Serverless provides a fully managed, serverless vector engine with no cluster capacity to provision, and it integrates natively with Amazon Bedrock as a knowledge base vector store. This satisfies the serverless and Bedrock-compatible constraints for storing and searching embeddings.

Why this answer

Amazon OpenSearch Serverless is a fully managed, serverless vector store that supports k-NN vector search and is a natively supported backend for Amazon Bedrock Knowledge Bases. It requires no cluster provisioning or capacity planning, making it the correct serverless option for storing and searching embeddings in a RAG application.

Exam trap

AIF-C01 often tests whether candidates know which AWS services are actually serverless vector stores integrated with Bedrock, luring them toward DynamoDB or RDS because those are familiar 'managed' services.

How to eliminate wrong answers

Option A is wrong because Amazon RDS for MySQL is a relational database without native vector similarity search and is not a serverless vector store for Bedrock. Option B is wrong because Amazon Redshift is a data warehouse (though it has some vector capabilities via Redshift ML, it is not the serverless vector store integrated with Bedrock Knowledge Bases). Option C is wrong because Amazon DynamoDB is a key-value store that lacks native vector search and is not a supported Bedrock vector store.

246
MCQhard

A company uses an AI system to automate loan approvals. The model uses demographic features and achieves high accuracy, but the company wants to ensure compliance with responsible AI guidelines. Which practice best balances performance and fairness?

A.Use demographic features but with minimal monitoring
B.Use a complex black-box model and rely on post-hoc explanations
C.Remove sensitive attributes and monitor for proxy bias
D.Optimize the model solely for accuracy on historical data
AnswerC

Removing sensitive attributes directly addresses the fairness constraint, while monitoring for proxy bias catches indirect discrimination that demographic features create through correlated variables. This preserves predictive performance better than suppressing the model entirely, satisfying the stem's requirement to balance accuracy against responsible AI compliance.

Why this answer

Removing sensitive attributes (e.g., race, gender) from the training data directly addresses fairness by preventing the model from explicitly using these features. However, simply removing them is insufficient; monitoring for proxy bias (e.g., zip code or income correlating with race) is critical to ensure the model does not inadvertently learn discriminatory patterns through correlated features. This approach balances performance by retaining predictive power from non-sensitive features while actively auditing for fairness violations.

Exam trap

The AIF-C01 exam often tests the misconception that simply removing sensitive attributes from the dataset guarantees fairness, without considering proxy bias or the need for ongoing monitoring.

How to eliminate wrong answers

Option A is wrong because using demographic features with minimal monitoring violates responsible AI guidelines; it risks encoding historical biases and does not mitigate fairness concerns, as even high-accuracy models can be discriminatory. Option B is wrong because relying on a complex black-box model with post-hoc explanations (e.g., SHAP or LIME) does not inherently ensure fairness; post-hoc explanations can be unreliable and do not prevent the model from learning biased correlations from sensitive attributes. Option D is wrong because optimizing solely for accuracy on historical data ignores fairness; historical data often contains systemic biases, and maximizing accuracy can amplify those biases, leading to unfair outcomes for protected groups.

247
MCQhard

A financial services company uses Amazon Bedrock Knowledge Bases to power a Q&A bot for analysts. They notice that the bot sometimes gives outdated information because documents are updated weekly. They cannot retrain or rebuild the knowledge base weekly. What is the MOST efficient solution?

A.Rebuild the entire knowledge base from scratch every week using a scheduled job
B.Use incremental data ingestion to sync only the updated documents weekly
C.Set the chunk size to zero so the entire document is always retrieved
D.Use a Lambda function to manually delete and re‑upload all documents each week
AnswerB

Incremental ingestion re-synchronises only changed documents into the existing vector store, so the knowledge base reflects weekly updates without a full rebuild. This directly satisfies the constraint that retraining or rebuilding weekly is not possible, keeping the Q&A bot current with minimal compute and ingestion overhead.

Why this answer

Amazon Bedrock Knowledge Bases supports incremental data ingestion, which allows you to sync only the documents that have changed since the last sync. This avoids the need to rebuild the entire knowledge base from scratch, saving time and compute resources while keeping the Q&A bot up to date with weekly document updates.

Exam trap

The trap here is that candidates may assume incremental ingestion is not supported or that a full rebuild is the only reliable method, but Bedrock Knowledge Bases explicitly provides incremental sync as a first-class feature to handle exactly this use case.

How to eliminate wrong answers

Option A is wrong because rebuilding the entire knowledge base from scratch every week is inefficient and unnecessary; it consumes more time and resources than incremental ingestion. Option C is wrong because setting the chunk size to zero is not a valid configuration in Bedrock Knowledge Bases—chunking is a fundamental part of the ingestion process, and a zero chunk size would break the indexing pipeline. Option D is wrong because manually deleting and re-uploading all documents via a Lambda function is essentially a manual rebuild, which is less efficient than using the built-in incremental ingestion feature that only processes changed documents.

248
MCQhard

A financial institution uses Amazon SageMaker to host a model for credit scoring. The model was trained on data that includes demographic attributes. During a routine audit, the compliance team finds that the model produces significantly different approval rates for applicants of different ethnicities, even when credit profiles are similar. The institution must continue using the model but needs to ensure compliance with fair lending laws. What should the company do FIRST?

A.Adjust the decision threshold to equalize approval rates across groups.
B.Run Amazon SageMaker Clarify to analyze the model for bias and generate a bias report.
C.Document the disparity in a compliance report and continue using the model.
D.Replace the model with a simpler explainable model to eliminate bias.
AnswerB

Amazon SageMaker Clarify measures bias across demographic groups and produces a report quantifying disparate impact, giving the compliance team evidence before any mitigation. Detecting and documenting the bias first is the prerequisite for every subsequent remediation step under fair lending rules.

Why this answer

Amazon SageMaker Clarify is the correct first step because it provides built-in bias detection and explainability for machine learning models. Before taking any corrective action, the company must first quantify and understand the nature and extent of the bias using SageMaker Clarify's bias metrics (e.g., Difference in Positive Proportions, Disparate Impact). This diagnostic report is essential for compliance documentation and for determining whether the bias is due to the model, the data, or the threshold, thereby guiding any subsequent remediation steps.

Exam trap

AWS often tests the principle that the first step in addressing bias is always to measure and understand it using a dedicated tool like SageMaker Clarify, rather than jumping to a corrective action like threshold adjustment or model replacement.

How to eliminate wrong answers

Option A is wrong because blindly adjusting the decision threshold to equalize approval rates can introduce new forms of bias, violate fair lending laws by ignoring legitimate risk factors, and does not address the root cause of the bias in the model or data. Option C is wrong because merely documenting the disparity without any analysis or remediation fails to meet regulatory requirements under fair lending laws, which mandate proactive identification and mitigation of discriminatory outcomes. Option D is wrong because replacing the model with a simpler explainable model is a premature and potentially unnecessary action that does not first diagnose the source of bias; a simpler model may still exhibit bias if trained on the same biased data, and the company must first use SageMaker Clarify to understand the bias before deciding on a replacement.

249
MCQmedium

A team is using a prompt engineering technique where they provide a few examples of desired input-output pairs in the prompt to guide the model's response. Which technique are they using?

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

Supplying labelled input-output pairs directly in the prompt conditions the model on the desired pattern without weight updates, which is precisely few-shot prompting. This satisfies the stem's constraint of guiding responses through in-context examples rather than fine-tuning or zero-shot instruction.

Why this answer

Few-shot prompting (Option C) is the correct technique because it involves providing a small number of input-output examples within the prompt to condition the model on the desired task format and pattern. This approach helps the model generalize from the examples to produce accurate responses for new inputs, without requiring fine-tuning.

Exam trap

The AWS AI Practitioner exam often tests the distinction between few-shot and zero-shot prompting, where candidates mistakenly think that providing any instruction (like a system prompt) counts as a 'shot,' but the key is the explicit inclusion of input-output pairs as examples.

How to eliminate wrong answers

Option A is wrong because system prompting sets the overall behavior or persona of the model via a system-level instruction, not by providing specific input-output examples. Option B is wrong because zero-shot prompting relies on the model's pre-trained knowledge to perform a task without any examples, which is the opposite of providing few-shot examples. Option D is wrong because chain-of-thought prompting guides the model to produce intermediate reasoning steps, not by giving multiple input-output pairs, but by encouraging step-by-step thinking.

250
MCQmedium

A company wants to use Amazon SageMaker to train a model using a custom Docker container that has specific dependencies. The training code is stored in an S3 bucket. Which steps must be taken to run the training job?

A.Install dependencies via SageMaker's lifecycle configuration instead of a custom container
B.Push the custom container to Amazon ECR and create a training job with the container URI
C.Use SageMaker's built-in framework container and override the entry point
D.Upload the container to S3 and reference it in the training job
AnswerB

Pushing the image to Amazon ECR gives SageMaker a registry URI it can pull from, satisfying the custom-dependency requirement. The training job then references that image URI alongside the S3 code location, so SageMaker runs your container rather than a built-in algorithm image.

Why this answer

Amazon SageMaker requires custom Docker containers to be stored in Amazon Elastic Container Registry (ECR) to run training jobs. The container URI from ECR is specified in the `AlgorithmSpecification` parameter of the `CreateTrainingJob` API call, allowing SageMaker to pull and execute the container with the training code from S3. Option B correctly describes this mandatory workflow.

Exam trap

AWS often tests the misconception that any S3-uploaded artifact (including Docker images) can be directly referenced in a training job, but SageMaker strictly requires container images to be stored in ECR, not S3.

How to eliminate wrong answers

Option A is wrong because lifecycle configurations are used to customize notebook instances (e.g., install packages on Jupyter kernels), not to provide dependencies for training jobs; training jobs run in ephemeral containers that do not use lifecycle configurations. Option C is wrong because overriding the entry point of a built-in framework container only works if the container already includes the required dependencies; if custom dependencies are needed, a custom container must be built and pushed to ECR. Option D is wrong because SageMaker does not accept Docker containers stored in S3; containers must be registered in ECR and referenced by their URI.

251
MCQhard

A security analyst is reviewing CloudTrail logs for SageMaker API calls to identify which user executed a particular training job. The logs show assumed roles. In which CloudTrail event field can the analyst find the name of the user who assumed the role?

A.userIdentity.arn
B.eventName
C.requestParameters
D.userIdentity.sessionContext.sessionIssuer.userName
AnswerD

When a principal assumes a role, CloudTrail records the assumed-role identity, and sessionContext.sessionIssuer.userName holds the originating user's name. This satisfies the stem's constraint of identifying who assumed the role, since the ARN alone shows only the role session.

Why this answer

When a user assumes an IAM role to perform SageMaker actions, the CloudTrail log records the assumed role's ARN in the `userIdentity.arn` field, but the original user's identity is preserved in the `userIdentity.sessionContext.sessionIssuer.userName` field. This field contains the name of the IAM user or role that initiated the `sts:AssumeRole` call, allowing the analyst to trace back to the actual user who assumed the role.

Exam trap

The trap here is that candidates see `userIdentity.arn` and assume it shows the original user, but it actually shows the ARN of the assumed role, while the original user is nested deeper in `sessionContext.sessionIssuer.userName`.

How to eliminate wrong answers

Option A is wrong because `userIdentity.arn` contains the ARN of the assumed role (e.g., `arn:aws:sts::123456789012:assumed-role/SageMakerExecutionRole/session`), not the original user who assumed it. Option B is wrong because `eventName` records the API action (e.g., `CreateTrainingJob`), not the identity of the user. Option C is wrong because `requestParameters` contains the input parameters of the API call (e.g., training job configuration), not user identity information.

252
Multi-Selectmedium

A data scientist is evaluating different AWS services for building a machine learning pipeline. Which THREE components are part of Amazon SageMaker? (Select THREE.)

Select 3 answers
A.AWS Glue
B.Notebook instances
C.Ground Truth
D.Model registry
E.Amazon Athena
AnswersB, C, D

Notebook instances are a core SageMaker component, providing managed Jupyter environments for data exploration, preprocessing and model development within the pipeline. They satisfy the stem's requirement to identify genuine SageMaker features, unlike unrelated AWS analytics or storage services that lack integrated notebook tooling.

Why this answer

Amazon SageMaker is a fully managed ML platform, and three of the listed items are native SageMaker capabilities. B (Notebook instances) is correct because SageMaker provides managed Jupyter notebook instances for data exploration, preprocessing, and model development. C (Ground Truth) is correct because SageMaker Ground Truth is the built-in data labeling service used to create high-quality training datasets, including with automated labeling and human review workflows.

D (Model registry) is correct because SageMaker includes a model registry for cataloging, versioning, and managing trained models through approval and deployment stages. A (AWS Glue) is a separate ETL and data catalog service, and E (Amazon Athena) is a separate serverless query service for S3 data, so neither is a component of SageMaker.

Exam trap

The trap here is that candidates often confuse AWS Glue (a separate ETL service) as part of SageMaker because both are used in ML pipelines, but Glue is not a SageMaker component.

253
MCQeasy

A company is using Amazon Comprehend for sentiment analysis on customer reviews. They notice that the sentiment is often incorrect for negative reviews with sarcasm. What is the likely cause?

A.The model is not fine-tuned for the domain
B.The pre-trained model cannot handle sarcasm well
C.Insufficient training data
D.The input text is too long
AnswerB

Amazon Comprehend's pre-trained sentiment model learns patterns from literal text and lacks the contextual reasoning needed to detect sarcasm, where stated sentiment inverts intended meaning. Sarcastic negative reviews therefore get classified by surface wording, producing incorrect sentiment labels.

Why this answer

Amazon Comprehend's pre-trained sentiment analysis models are trained on general text corpora and lack the ability to detect sarcasm, which relies on contextual cues, tone, and figurative language. Sarcasm often inverts the literal sentiment (e.g., 'Great job, as always' for a failure), and standard NLP models without explicit sarcasm detection or fine-tuning cannot reliably interpret this inversion. Therefore, the likely cause is that the pre-trained model cannot handle sarcasm well.

Exam trap

The AIF-C01 exam often tests the misconception that 'fine-tuning' or 'more data' can fix any NLP issue, but here the trap is that sarcasm is a distinct linguistic challenge that pre-trained models inherently fail at, regardless of domain or data volume, unless specifically addressed with sarcasm-aware training or custom classifiers.

How to eliminate wrong answers

Option A is wrong because while fine-tuning can improve domain-specific accuracy, the core issue here is not domain mismatch but the model's inherent inability to detect sarcasm—a linguistic phenomenon that even domain-tuned models struggle with unless specifically trained on sarcastic examples. Option C is wrong because insufficient training data is not the primary cause; Amazon Comprehend's pre-trained model is trained on vast datasets, but sarcasm detection requires specialized training data and architectures (e.g., contrastive learning) that the base model lacks. Option D is wrong because input text length is not the issue; Comprehend handles up to 5,000 UTF-8 characters per request, and sarcasm is a semantic problem, not a truncation or length-related one.

254
Multi-Selecthard

A marketing team is using a foundation model to generate marketing copy. Which THREE of the following should they consider to ensure responsible and cost-effective use?

Select 3 answers
A.Bias mitigation to avoid unfair stereotypes
B.Cost per token for the model
C.Model size (number of parameters)
D.Toxicity detection in generated content
E.Latency of model inference
AnswersA, B, D

Bias mitigation directly addresses fairness, a core responsible-AI dimension for generative marketing copy that could otherwise propagate stereotypes. It satisfies the stem's responsible-use constraint by reducing discriminatory outputs, complementing cost controls. Unlike accuracy or latency tuning, bias mitigation targets the ethical risk inherent in open-ended text generation.

Why this answer

Option A (Bias mitigation to avoid unfair stereotypes) is correct because foundation models can reproduce or amplify biases present in their training data, and marketing copy that relies on unfair stereotypes creates reputational, legal, and ethical risk, so teams should apply bias detection and mitigation techniques. Option B (Cost per token for the model) is correct because foundation models are typically billed by input and output tokens, so tracking cost per token directly supports cost-effective use and lets the team choose the most economical model or prompt design for the workload. Option D (Toxicity detection in generated content) is correct because generative models can produce offensive, harmful, or brand-damaging text, so toxicity detection and filtering are needed to keep marketing content responsible and safe to publish.

Option C (Model size, number of parameters) is not one of the required answers here because parameter count is only an indirect proxy for capability and cost, and by itself it does not ensure responsible or cost-effective use. Option E (Latency of model inference) is not one of the required answers because inference latency affects user experience and responsiveness, not the responsible-use or token-cost concerns the scenario asks about.

Exam trap

AWS often tests the misconception that model size (parameters) is a key cost driver, but in practice, cost is tied to token consumption and inference infrastructure, not just parameter count, and latency is a performance metric, not a cost or responsibility factor.

255
Multi-Selectmedium

A retail company is preparing to launch a generative AI assistant built on Amazon Bedrock that will answer customer questions using internal product documents. The governance team wants to reduce the risk of the assistant producing fabricated, misleading, or harmful outputs before launch and during operation. (Choose two.)

Select 2 answers
A.Enable AWS CloudTrail management event logging for all Bedrock API calls in the account.
B.Run Amazon Bedrock model evaluation jobs that score responses for accuracy, toxicity, and robustness against a curated dataset.
C.Store all assistant conversations in Amazon S3 with default encryption and a lifecycle policy.
D.Attach an AWS WAF web ACL with rate-based rules to the application's public endpoint.
E.Configure Amazon Bedrock Guardrails with contextual grounding and relevance checks tied to the retrieved source documents.
AnswersB, E

Model evaluation jobs provide systematic, repeatable measurements before launch, letting the team compare models or configurations on quality and safety metrics. The results create evidence for a go or no-go decision and a baseline for later comparisons. This is a pre-deployment governance control that complements runtime filtering rather than replacing it.

Why this answer

Reducing fabricated and harmful output requires both pre-launch measurement and runtime enforcement. Bedrock model evaluation jobs quantify accuracy, toxicity, and robustness so the team can make an evidence-based launch decision, while Guardrails contextual grounding and relevance checks block or flag responses unsupported by the retrieved documents. Logging, WAF rules, and storage encryption address unrelated risks.

Exam trap

The trap here is selecting logging or network controls as safety mitigations, when only evaluation and guardrail checks actually influence or measure the model's generated content.

256
MCQmedium

A media company runs a daily news digest built on Amazon Bedrock with Anthropic Claude. Editors complain that summaries of long policy documents sometimes omit the final recommendations, even though the source text clearly contains them near the end. The requests currently pass only the document body and set a maximum output length of 300 tokens. Which change best addresses the truncation of the source content before the model reasons over it?

A.Chunk the document and apply retrieval or summarization so all sections reach the model.
B.Raise the temperature setting so the model explores more of the document.
C.Increase the maxTokens parameter so the digest can be longer.
D.Switch the model invocation to streaming responses.
AnswerA

When the source exceeds the model's context window, the trailing content is silently truncated, so recommendations at the end never reach inference. Splitting the document into chunks and either summarizing hierarchically or retrieving the most relevant passages ensures every section is represented, restoring the omitted recommendations without exceeding context limits.

Why this answer

The symptom points to input truncation: content beyond the context window is discarded before the model sees it, so the closing recommendations vanish. Increasing output length or changing sampling cannot recover text that never entered the prompt. Chunking the document, then summarizing or retrieving relevant chunks, ensures the full source is represented and the recommendations reach the model.

Exam trap

The trap here is assuming that a larger output token limit also expands how much source text the model can read.

257
MCQmedium

A company is using a foundation model on Amazon Bedrock to generate customer support responses. They notice that the model sometimes produces harmful or offensive content. Which approach is MOST effective to mitigate this issue?

A.Use prompt engineering to instruct the model to avoid harmful content
B.Enable model invocation logging to review and block responses
C.Fine-tune the model on a curated dataset of safe responses
D.Configure Amazon Bedrock Guardrails with content filters
AnswerD

Guardrails apply configurable content filters that evaluate both prompts and model responses, blocking harmful categories before they reach the user. This enforces safety at the Bedrock layer without retraining the foundation model, directly addressing the offensive-output constraint.

Why this answer

Amazon Bedrock Guardrails provides configurable content filters that can block harmful, offensive, or inappropriate content in both user inputs and model outputs. This is the most effective approach because it operates at the inference layer, applying safety policies consistently across all requests without requiring model retraining or manual review. Prompt engineering alone is unreliable, and fine-tuning may not generalize to all harmful content patterns.

Exam trap

The AIF-C01 exam often tests the misconception that prompt engineering or fine-tuning alone is sufficient for safety, when in fact a dedicated guardrail mechanism is required for reliable, policy-based content filtering at inference time.

How to eliminate wrong answers

Option A is wrong because prompt engineering can be easily bypassed by adversarial inputs or model drift, and it does not provide deterministic enforcement of safety policies. Option B is wrong because model invocation logging only records responses for auditing; it does not block harmful content in real time. Option C is wrong because fine-tuning on a curated dataset of safe responses reduces but does not eliminate the risk of generating harmful content, especially for edge cases or novel inputs not seen during training.

258
MCQmedium

A financial services company is using Amazon Bedrock to generate personalized investment advice. The compliance team requires that the model's responses do not contain any personally identifiable information (PII) such as account numbers or social security numbers, and that all PII is automatically masked. Which AWS service or feature should the company use to meet this requirement?

A.Amazon Macie
B.Amazon Bedrock Guardrails
C.AWS Identity and Access Management (IAM) policies
D.Amazon SageMaker Model Monitor
AnswerB

Amazon Bedrock Guardrails allows you to define policies that filter and mask sensitive information in model inputs and outputs. You can configure sensitive information filters to detect and redact PII such as account numbers and social security numbers. This directly meets the compliance requirement by preventing PII from appearing in responses and automatically masking it in real time.

Why this answer

Amazon Bedrock Guardrails provides configurable safeguards that can detect and mask sensitive information like PII in both prompts and responses. By defining a sensitive information filter, the company can ensure that account numbers and social security numbers are automatically redacted from the model's output. This is the only option that directly addresses real-time content filtering and masking within the generative AI application.

Exam trap

The trap here is confusing data discovery services like Amazon Macie with runtime content filtering features like Bedrock Guardrails.

259
Multi-Selectmedium

A company is developing a generative AI application for content creation. They want to ensure transparency as per responsible AI guidelines. Which THREE practices should they implement? (Choose three.)

Select 3 answers
A.Encourage users to trust the AI outputs without question
B.Label AI-generated content with a clear disclosure
C.Provide a disclaimer about the model's capabilities and limitations
D.Monitor the model for bias in production
E.Document the training data sources and potential biases
AnswersB, C, E

Labelling AI-generated content with a clear disclosure directly satisfies the transparency requirement by informing end users that output is machine-generated. Disclosure prevents audiences from mistaking synthetic material for human-authored work, which is a core responsible AI transparency practise for generative content creation applications.

Why this answer

Option B is correct because labeling AI-generated content with a clear disclosure directly supports transparency, allowing users to know when content was produced by a generative AI system rather than a human. Option C is correct because providing a disclaimer about the model's capabilities and limitations helps users understand what the system can and cannot reliably do, which is a core responsible AI transparency practice. Option E is correct because documenting the training data sources and potential biases makes the model's provenance and known risks visible to stakeholders, supporting accountability and informed use.

Option A is not appropriate because encouraging unquestioning trust undermines transparency and responsible AI principles. Option D, while a valid responsible AI practice for fairness, focuses on ongoing bias monitoring rather than the transparency-specific disclosure and documentation requirements described in the scenario.

Exam trap

AIF-C01 often tests the confusion between transparency practices (disclosure, documentation) and fairness practices (bias monitoring), causing candidates to select bias monitoring as a transparency answer.

260
Multi-Selecthard

A company is building a generative AI application to answer questions from a large set of technical manuals. Which TWO services or features can be used together in a RAG architecture on AWS? (Choose TWO.)

Select 2 answers
A.Amazon SageMaker
B.Amazon OpenSearch Serverless
C.AWS Lambda
D.Amazon Bedrock Knowledge Bases
E.Amazon Bedrock Guardrails
AnswersB, D

Amazon OpenSearch Serverless provides the vector store that RAG requires: it indexes embedded manual chunks and returns the nearest neighbours to a query embedding, so retrieved passages can be passed to the foundation model as context.

Why this answer

Amazon OpenSearch Serverless (B) is correct because it provides a vector search collection that can store and retrieve document embeddings, serving as the retrieval layer in a RAG architecture for querying the technical manuals. Amazon Bedrock Knowledge Bases (D) is correct because it is a fully managed RAG feature that ingests source documents, generates embeddings, stores them in a vector store (such as OpenSearch Serverless), and orchestrates retrieval-augmented generation with foundation models. Together, these two services directly implement the retrieval and generation components of a RAG pipeline on AWS.

Amazon SageMaker (A) is a general ML platform for building, training, and deploying models, not a purpose-built RAG retrieval or knowledge base service. AWS Lambda (C) is a serverless compute service that could glue components together but is not itself a RAG retrieval or knowledge base feature. Amazon Bedrock Guardrails (E) applies safety and content filtering policies to model inputs and outputs, which is unrelated to the retrieval and knowledge grounding required by RAG.

Exam trap

AIF-C01 often tests whether candidates can distinguish RAG retrieval components (Knowledge Bases + vector store) from adjacent services like Guardrails or SageMaker that sound relevant but serve different purposes.

261
MCQmedium

An organization wants to detect anomalies in real-time streaming data from IoT devices. The data includes sensor readings, and the team plans to use a machine learning model. Which AWS service should be used to build and deploy the model with minimal operational overhead?

A.Amazon SageMaker
B.AWS Glue
C.Amazon QuickSight
D.Amazon Kinesis Data Analytics
AnswerA

Amazon SageMaker provides fully managed infrastructure for building, training and deploying models, with built-in algorithms suited to streaming anomaly detection. It satisfies the stem's minimal operational overhead constraint by handling provisioning, scaling and endpoint hosting, letting the team focus on the model rather than servers.

Why this answer

Amazon SageMaker is the correct choice because it provides a fully managed environment for building, training, and deploying machine learning models at scale. For real-time anomaly detection on streaming IoT data, SageMaker can host a trained model as a real-time endpoint that processes incoming sensor readings via Amazon Kinesis Data Streams or AWS Lambda, minimizing operational overhead by handling infrastructure, scaling, and monitoring automatically.

Exam trap

AWS often tests the misconception that Amazon Kinesis Data Analytics can build and deploy custom ML models, when in fact it only supports built-in ML functions for simple anomaly detection and cannot train or host custom models.

How to eliminate wrong answers

Option B (AWS Glue) is wrong because it is a serverless data integration and ETL service for preparing and transforming batch data, not for building or deploying machine learning models for real-time anomaly detection. Option C (Amazon QuickSight) is wrong because it is a business intelligence (BI) service for visualizing and analyzing data, not for building or deploying ML models. Option D (Amazon Kinesis Data Analytics) is wrong because it is designed for real-time stream processing using SQL or Apache Flink, but it does not provide the capability to build, train, or deploy custom machine learning models; it is limited to built-in ML functions like anomaly detection on simple metrics, not custom model deployment.

262
Multi-Selecthard

A media company is evaluating foundation models for an application that will summarize long earnings-call transcripts in English for internal analysts. The transcripts are up to 40,000 words, and the summaries must remain faithful to the source. Which TWO model characteristics are most important to evaluate for this workload? (Choose two.)

Select 2 answers
A.The model's ability to run on edge devices without network connectivity
B.The model's text-to-speech voice quality
C.The model's quality on text summarization and faithfulness to source content
D.The model's ability to generate images from text
E.The model's supported context window size
AnswersC, E

Faithfulness determines whether the summary reflects what the transcript actually said rather than inventing figures or positions. A model with weak summarization quality will produce fluent but unreliable output, which is unacceptable for financial analysis. Benchmarking summarization quality on representative transcripts is therefore essential.

Why this answer

Long transcripts demand a model whose context window can accommodate the input, and financial summarization demands strong faithfulness so the output does not distort the source. Those two characteristics together determine whether the application can produce trustworthy summaries without excessive chunking. Image generation, speech quality, and edge deployment do not address the stated requirements.

Exam trap

The trap here is selecting impressive-sounding multimodal or edge capabilities instead of the two characteristics that actually govern long-document summarization quality.

263
MCQmedium

A company has a large dataset of customer support emails labeled with issue categories. They need to classify new emails automatically. Which algorithm is BEST suited for this task?

A.Linear regression
B.K-means clustering
C.Logistic regression
D.Gradient boosting
AnswerC

Logistic regression is used for classification, including multiclass via softmax.

Why this answer

Logistic regression is the best choice because it is a supervised learning algorithm specifically designed for binary or multi-class classification tasks. Given labeled emails with issue categories, logistic regression models the probability that a new email belongs to each category using a logistic (sigmoid) function, making it ideal for this classification problem.

Exam trap

AWS certification exams often test the distinction between regression and classification by placing linear regression as a distractor, exploiting the common misconception that 'regression' implies any predictive modeling, when in fact it is only for continuous outputs.

How to eliminate wrong answers

Option A is wrong because linear regression predicts continuous numeric values, not discrete class labels, and would produce unbounded outputs unsuitable for classification. Option B is wrong because K-means clustering is an unsupervised learning algorithm that groups data based on similarity without using labels, so it cannot leverage the labeled training data to classify new emails into predefined categories. Option D is wrong because gradient boosting, while capable of classification, is an ensemble method that is more complex and prone to overfitting on smaller datasets; logistic regression is simpler, more interpretable, and often preferred for baseline text classification tasks.

264
MCQhard

A logistics company deployed a demand forecasting model six months ago. The data science team notices that forecast accuracy has degraded gradually, and investigation shows that customer ordering patterns changed after a competitor entered the market. The team wants a repeatable process that detects when incoming data drifts from the training distribution and automatically retrains the model when drift exceeds a threshold. Which AWS approach should they implement?

A.Use Amazon SageMaker Clarify to run a bias report on the training data weekly and retrain whenever the bias metric changes by more than five percent.
B.Configure AWS Glue DataBrew to profile the training dataset nightly and use AWS Step Functions to rebuild the feature store whenever a profile anomaly appears.
C.Use Amazon SageMaker Model Monitor with a data quality baseline to detect drift, and trigger an AWS Lambda function from a CloudWatch alarm to start a SageMaker Pipelines retraining execution.
D.Enable Amazon CloudWatch Logs insights queries over the model endpoint logs and schedule a nightly EventBridge rule that restarts the endpoint when error rates rise.
AnswerC

Model Monitor compares incoming inference data against a baseline captured from the training dataset and emits violations to CloudWatch when drift exceeds configured thresholds. Wiring a CloudWatch alarm to Lambda that starts a SageMaker Pipelines execution creates the automatic, repeatable retraining loop the team asked for, closing the gap between detection and remediation.

Why this answer

The requirement is automated drift detection on live traffic plus automatic retraining. SageMaker Model Monitor establishes a baseline from training data and continuously compares production inputs, raising CloudWatch violations when distributions diverge. Connecting those alarms to a Lambda function that starts a SageMaker Pipelines execution produces a repeatable detect-and-retrain loop, which is precisely the pattern the team needs after the market shift.

Exam trap

The trap here is reaching for bias detection or data profiling tools when the actual problem is distribution shift in production inputs, which requires comparing live traffic to a captured training baseline.

265
Multi-Selectmedium

A company is deploying an AI model on Amazon SageMaker and needs to monitor for model drift over time. Which TWO actions should they take? (Choose TWO)

Select 2 answers
A.Use AWS CloudTrail to log all inference requests and responses
B.Enable data capture on the SageMaker endpoint to store real-time inference data in S3
C.Store model artifacts in Amazon ECR and tag each version
D.Set up Amazon CloudWatch anomaly detection on the endpoint invocation count
E.Configure SageMaker Model Monitor to schedule monitoring jobs that compare new data against a baseline
AnswersB, E

Data capture on a SageMaker endpoint records real-time inference requests and responses to S3, producing the live production dataset that drift detection requires. Without captured data, Model Monitor has nothing to compare against the training baseline.

Why this answer

Option B is correct because enabling data capture on a SageMaker endpoint records the request and response payloads of real-time inference traffic and stores them in Amazon S3, which is the required input for drift analysis. Option E is correct because SageMaker Model Monitor runs scheduled monitoring jobs that compare newly captured data against a baseline (created from training or a baseline job) and can emit CloudWatch metrics and alarms when drift, such as data or model quality drift, is detected. Together, B supplies the live data and E performs the comparison and alerting needed to monitor model drift over time.

Option A is not appropriate because CloudTrail records control-plane API activity, not inference payloads, so it cannot detect data or model drift. Option C is unrelated because storing model artifacts in Amazon ECR and tagging versions addresses artifact versioning, not runtime drift detection. Option D is insufficient because CloudWatch anomaly detection on invocation count only tracks traffic volume, not changes in input data distribution or model prediction quality.

266
MCQmedium

A machine learning team is working on a multi-label classification problem. They have a highly imbalanced dataset where some labels appear very infrequently. Which evaluation metric is MOST appropriate for assessing model performance across all labels?

A.Precision
B.Micro-averaged F1 score
C.Accuracy
D.Macro-averaged F1 score
AnswerD

Macro-averaged F1 computes the F1 score for each label independently, then takes the unweighted mean, so every label contributes equally regardless of frequency. This directly satisfies the stem's requirement to assess performance across all labels, preventing rare labels from being masked by the dominant classes in the imbalanced dataset.

Why this answer

Macro-averaged F1 score is the most appropriate metric for multi-label classification with highly imbalanced data because it computes the F1 score independently for each label and then averages them, giving equal weight to all labels regardless of their frequency. This ensures that the performance on rare labels is not overshadowed by the performance on frequent labels, which is critical when infrequent labels are equally important.

Exam trap

AWS often tests the distinction between micro and macro averaging in imbalanced multi-label scenarios, where candidates mistakenly choose micro-averaged F1 because it is commonly used in multi-class problems, failing to recognize that it favors majority labels in multi-label settings.

How to eliminate wrong answers

Option A is wrong because precision alone ignores recall and does not provide a balanced view of model performance, especially in imbalanced multi-label settings where trade-offs between precision and recall are crucial. Option B is wrong because micro-averaged F1 score aggregates contributions from all labels by summing true positives, false positives, and false negatives across labels, which biases the metric toward the majority labels and masks poor performance on infrequent labels. Option C is wrong because accuracy in multi-label classification is misleading; it often counts partially correct predictions as errors and is heavily skewed by the majority class, making it unsuitable for imbalanced datasets.

267
MCQmedium

A company is developing an LLM-powered application that generates investment advice. They are concerned about the model producing inaccurate or fabricated information. Which combination of techniques should they implement to minimize hallucinations?

A.Fine-tune the LLM on a dataset of correct investment advice
B.Use a larger LLM and rely on its pre-trained knowledge
C.Implement Retrieval-Augmented Generation (RAG) and use Bedrock Guardrails
D.Use a lower temperature setting and increase the max token count
AnswerC

Retrieval-Augmented Generation grounds responses in retrieved, verifiable documents rather than relying solely on parametric memory, directly reducing fabricated investment claims. Bedrock Guardrails adds contextual grounding and automated reasoning checks that filter unsupported statements. Together they satisfy the stem's requirement to minimise hallucinations in generated advice.

Why this answer

RAG grounds the model in retrieved factual documents, and Bedrock Guardrails can filter or block content that contradicts known facts or is speculative. Prompt engineering alone is insufficient. Fine-tuning reduces but does not eliminate hallucinations.

Reducing temperature may reduce creativity but doesn't ground the model.

268
MCQmedium

A financial services company uses Amazon Bedrock to power a customer-facing chatbot that answers questions about loan products. During testing, the team notices the model sometimes produces responses that sound confident but contain fabricated interest rates. The compliance team requires a mechanism to automatically detect when responses are not grounded in the company's approved product documentation. Which AWS capability should the team use to meet this requirement?

A.Amazon SageMaker Model Monitor data drift detection
B.Amazon Comprehend sentiment analysis on the model output
C.Amazon Bedrock Guardrails with contextual grounding checks
D.AWS CloudTrail management event logging on the Bedrock endpoint
AnswerC

Contextual grounding checks in Amazon Bedrock Guardrails evaluate whether a model response is supported by the source content provided in the prompt, and assign grounding and relevance scores. Because the team needs to detect fabricated rates that are not grounded in approved documentation, this feature directly filters ungrounded responses and can block or flag them before the customer sees them.

Why this answer

The requirement is to detect responses not supported by approved documentation, which is precisely what contextual grounding checks in Amazon Bedrock Guardrails do by scoring whether a response is grounded in the supplied reference text. Sentiment analysis, data drift monitoring, and API audit logging all operate on different layers and cannot judge whether a generated interest rate is factually supported.

Exam trap

The trap here is assuming any content-safety or monitoring service detects hallucinations, when only grounding-aware evaluation that compares output against supplied source text can flag ungrounded statements.

269
Multi-Selectmedium

A company is using Bedrock Agents to automate multi-step workflows that interact with external APIs and databases. They need to ensure the agent can perform actions like querying a database and calling an API. Which TWO components must be defined to enable these capabilities? (Choose TWO)

Select 2 answers
A.A prompt flow to manage multiple prompts
B.Lambda functions that implement the business logic for each action
C.Action groups that describe the APIs and databases
D.Bedrock Guardrails to filter inappropriate actions
E.A Bedrock Knowledge Base to store static documents
AnswersB, C

Bedrock Agents invoke Lambda functions to execute each action's business logic, so the function performs the actual database query or API call the workflow requires. Without a Lambda backing, the action group has no executable code, so defining these functions satisfies the requirement to perform actions.

Why this answer

In Amazon Bedrock Agents, action groups (option C) are the required construct that defines the set of actions the agent can invoke, including the OpenAPI schema describing the external APIs and the parameters/operations for database interactions, so the agent knows what actions exist and how to call them. Lambda functions (option B) provide the actual business logic execution behind those action groups, receiving the agent's invocation and performing the concrete work such as running SQL queries against a database or calling an external API. Together, the action group defines the interface and the Lambda function implements it, which is exactly what is needed for querying a database and calling an API.

Option A is incorrect because prompt flows are for orchestrating prompt sequences in Amazon Bedrock Flows, not for defining agent action capabilities. Option D is incorrect because Guardrails filter and constrain content and safety, not enable action execution. Option E is incorrect because a Knowledge Base stores and retrieves static documents via RAG for informational responses, not for performing actions against APIs or databases.

270
Multi-Selectmedium

A hospital is deploying an Amazon Bedrock-powered assistant that answers staff questions about internal policies. The compliance team requires that the assistant refuse requests for individual patient diagnoses and that any response containing protected health information be masked before it is returned. Which TWO capabilities should the team configure in Amazon Bedrock Guardrails to meet these requirements? (Choose two.)

Select 2 answers
A.Enable model invocation logging to capture all prompts and responses for later compliance review.
B.Create a Provisioned Throughput purchase for the model to guarantee response capacity for clinical staff.
C.Configure a sensitive information policy that detects and masks protected health information in model responses.
D.Set the model temperature to zero so responses are deterministic and cannot include patient details.
E.Define a denied topics policy that blocks requests and responses related to individual patient diagnosis.
AnswersC, E

Sensitive information filters in Guardrails use pattern matching and identifiers to detect categories such as personally identifiable information and can redact or mask matches. Configuring this for protected health information ensures detected data is masked before the response reaches the user, satisfying the masking requirement.

Why this answer

Guardrails enforce content policy on both inputs and outputs. A denied topics policy blocks requests and responses about individual patient diagnosis, while a sensitive information policy detects and masks protected health information in responses. Together they satisfy the refusal and masking requirements.

Logging, temperature settings, and Provisioned Throughput do not prevent or redact content at inference time.

Exam trap

The trap here is treating invocation logging as a compliance control, when logging only records interactions and performs no real-time blocking or masking.

271
MCQhard

A company uses Bedrock Guardrails to filter harmful content in a generative AI application. They need to prevent the model from discussing proprietary internal projects. Which Guardrail component should be configured?

A.Topic restrictions
B.Content filters
C.Grounding check
D.Word filters
AnswerA

Topic restrictions define denied topics using natural-language descriptions and example phrases, blocking discussion of named subjects such as proprietary internal projects. Content filters address harmful categories, not specific business topics, so topic restrictions satisfy this constraint.

Why this answer

Topic restrictions allow administrators to define denied topics; the model will not generate responses related to those topics.

272
Multi-Selecteasy

A company uses Amazon Bedrock to build a question-answering system. Which THREE features of Amazon Bedrock can improve answer accuracy? (Choose three.)

Select 3 answers
A.Retrieval Augmented Generation (RAG)
B.Auto-scaling of provisioned throughput
C.Model fine-tuning
D.Encryption at rest
E.Prompt engineering
AnswersA, C, E

Retrieval Augmented Generation grounds responses in your own data by retrieving relevant passages and injecting them into the prompt, so answers reflect actual source content rather than parametric guesses. This directly satisfies the accuracy requirement by reducing hallucination and stale knowledge, which a question-answering system over proprietary documents demands.

Why this answer

Retrieval Augmented Generation (RAG) (A) is correct because it grounds the model's responses in an external knowledge base retrieved from sources like Amazon OpenSearch Serverless or Aurora, injecting relevant, up-to-date context into the prompt so answers are factually accurate rather than hallucinated. Model fine-tuning (C) is correct because adapting a foundation model on domain-specific labeled data adjusts its weights to better match the company's terminology, style, and task patterns, directly raising answer quality for that use case. Prompt engineering (E) is correct because carefully designing instructions, few-shot examples, and output formatting in the prompt steers the model toward more precise, relevant, and consistent answers without retraining.

Auto-scaling of provisioned throughput (B) only affects performance and cost under load, not answer correctness, and encryption at rest (D) is a security control protecting stored data, neither of which improves the accuracy of generated answers.

Exam trap

AWS often tests the distinction between features that improve accuracy (RAG, fine-tuning, prompt engineering) versus features that improve operational aspects like scalability (auto-scaling) or security (encryption), leading candidates to mistakenly select non-accuracy-related options.

273
MCQmedium

A data scientist trains a binary classification model and obtains the following results on the test set: accuracy 0.92, precision 0.90, recall 0.85, F1 0.87. The dataset has 5% positive class. The business requirement is to minimize false negatives. Which metric should the team prioritize?

A.F1 score
B.Accuracy
C.Precision
D.Recall
AnswerD

Recall measures the proportion of actual positives correctly identified, so maximising it directly minimises false negatives. With only 5% positives and a business requirement to avoid missed detections, recall is the metric the team must prioritise over accuracy or precision.

Why this answer

Recall (sensitivity) measures the proportion of actual positives correctly identified, which directly addresses the business requirement to minimize false negatives. With a 5% positive class, accuracy is misleadingly high because the model can simply predict the majority class (negative) and still achieve 95% accuracy, but this would result in zero recall. Prioritizing recall ensures the model captures as many true positives as possible, reducing false negatives at the cost of potentially more false positives.

Exam trap

For the AWS AI Practitioner exam, recall is the key metric when minimizing false negatives is the business requirement. Accuracy can be misleading in imbalanced datasets like this one (5% positives). Candidates often pick accuracy out of habit, ignoring the specific business need.

How to eliminate wrong answers

Option A (F1 score) is wrong because F1 is the harmonic mean of precision and recall, balancing both; it does not specifically minimize false negatives, which is the goal of recall. Option B (Accuracy) is wrong because with a highly imbalanced dataset (5% positive), accuracy can be high even if the model predicts all negatives, failing to capture any positives and thus maximizing false negatives. Option C (Precision) is wrong because precision focuses on minimizing false positives (the proportion of predicted positives that are actually positive), not false negatives; optimizing precision would likely reduce recall further, worsening the false negative problem.

274
MCQmedium

A data scientist is using Amazon SageMaker to train a deep learning model for image classification. The training job is taking too long. The dataset consists of 100,000 images stored in Amazon S3. Which action can the data scientist take to reduce training time without modifying the model architecture?

A.Convert images to CSV format before training.
B.Use a GPU instance type for training.
C.Enable checkpointing to save intermediate models.
D.Reduce the number of training epochs.
AnswerB

GPU instances accelerate the matrix operations in deep neural network training far more than CPU instances, cutting training time without altering the architecture. The 100,000 images in Amazon S3 already stream efficiently, so compute acceleration is the binding constraint.

Why this answer

GPU instances are specifically designed for parallel processing of matrix operations, which are fundamental to deep learning training. By switching to a GPU instance type (e.g., p3 or p4d families) in SageMaker, the data scientist can significantly accelerate the training of the image classification model without altering the model architecture, as the dataset of 100,000 images benefits from GPU's massive parallelism for forward and backward passes.

Exam trap

The trap here is that candidates may confuse checkpointing (which helps with recovery, not speed) or reducing epochs (which changes training duration but also model performance) with legitimate performance optimizations, while overlooking that GPU acceleration directly addresses the computational bottleneck without altering the model or dataset.

How to eliminate wrong answers

Option A is wrong because converting images to CSV format would increase data size, lose spatial structure, and introduce unnecessary serialization overhead, making training slower, not faster. Option C is wrong because checkpointing saves intermediate model states for fault tolerance or resumption, but it does not reduce training time; it may even add overhead due to I/O operations. Option D is wrong because reducing the number of training epochs would change the training process and likely degrade model accuracy, which violates the constraint of not modifying the model architecture (epochs are a hyperparameter, not part of architecture, but the question implies no changes that affect training duration by reducing work).

275
Multi-Selecthard

A financial services firm is deploying a generative AI chatbot using Amazon Bedrock. They must ensure that the chatbot does not generate investment advice and that it automatically redacts any personally identifiable information (PII) from user inputs before processing. Which TWO Bedrock features should they use?

Select 2 answers
A.Bedrock Guardrails with topic denial
B.Bedrock Knowledge Bases
C.Bedrock Guardrails with PII detection and redaction
D.Bedrock Studio
E.Bedrock Agents
AnswersA, C

Bedrock Guardrails with topic denial defines a denied-topics policy that blocks investment-advice requests before the model responds, satisfying the no-advice constraint. Guardrails also apply sensitive-information filters that detect and redact PII in prompts, meeting the redaction requirement within the same policy evaluation.

Why this answer

Option A is correct because Bedrock Guardrails support topic denial policies, which let you define denied topics (such as investment advice) so the model refuses to generate content on those subjects, directly satisfying the requirement to prevent investment advice. Option C is correct because Bedrock Guardrails provide sensitive information filters with PII detection and redaction, which identify and mask PII in user inputs before processing, meeting the redaction requirement. Option B (Knowledge Bases) is for retrieval-augmented generation over your own data sources and does not enforce content restrictions or redact PII.

Option D (Bedrock Studio) is a collaborative development environment for building generative AI applications, not a content-safety or redaction control. Option E (Bedrock Agents) orchestrates multi-step tasks and API calls, but it does not itself deny topics or redact PII.

276
MCQmedium

A company uses Amazon Bedrock with a third-party foundation model. They are concerned about the third-party provider accessing their data. What should they review to understand data handling practices?

A.AWS Artifact reports for SOC and PCI compliance
B.AWS CloudTrail logs for model invocation
C.The third-party model provider's data privacy and handling documentation within AWS Bedrock's service description
D.Amazon SageMaker Model Registry metadata
AnswerC

Reviewing the third-party provider's privacy and handling documentation within the AWS Bedrock service description reveals whether prompts, completions, or fine-tuning data are retained, logged, or used for model training. This directly addresses the stem's constraint: understanding the provider's data handling practices and whether they can access company data.

Why this answer

When using a third-party foundation model through Amazon Bedrock, the model provider's own data privacy and handling documentation — surfaced within the Bedrock service description and model details — is the authoritative source for how that provider treats your prompts, completions, and any fine-tuning data. AWS's shared responsibility model means AWS secures the Bedrock infrastructure, but the third-party model provider defines its own data usage terms. Reviewing that documentation tells you whether inputs are used for training, how long they are retained, and what regional or contractual safeguards apply.

Exam trap

AIF-C01 often tests the misconception that AWS Artifact or CloudTrail covers third-party model data practices, when in fact the model provider's own documentation is the correct source under the shared responsibility model.

How to eliminate wrong answers

Option A is wrong because AWS Artifact reports cover AWS's own compliance certifications (SOC, PCI, ISO) for AWS services, not the data-handling practices of a third-party model provider running on Bedrock. Option B is wrong because CloudTrail logs record API activity such as InvokeModel calls for auditing and security, but they do not describe how the provider stores or uses the data. Option D is wrong because SageMaker Model Registry is a catalog for managing model versions and approval workflows in SageMaker, and it is unrelated to Bedrock third-party model data governance.

277
Multi-Selecthard

A company is using Amazon Bedrock to generate personalized marketing emails. They notice that the model sometimes produces outputs that are off-brand or contain factual errors about their products. Which TWO prompt engineering techniques would be MOST effective to address these issues? (Choose TWO.)

Select 2 answers
A.Include few-shot examples in the prompt that demonstrate correct brand tone and factual accuracy
B.Apply chain-of-thought prompting to encourage reasoning
C.Use a system prompt that includes brand guidelines and factual product details
D.Use zero-shot prompting without any examples
E.Decrease the temperature to 0.0 to eliminate randomness
AnswersA, C

Few-shot examples embed concrete demonstrations of brand tone and correct product facts directly in the prompt, conditioning the model on desired output patterns. This satisfies the stem's constraints of off-brand tone and factual errors by grounding generation in verified exemplars, rather than relying on abstract instructions alone.

Why this answer

Option A is correct because few-shot examples embed concrete demonstrations of the desired brand tone and accurate product facts directly in the prompt, letting the model imitate those patterns and reducing off-brand or incorrect outputs. Option C is correct because a system prompt sets persistent instructions and context—such as brand guidelines and authoritative product details—that condition every response, which directly constrains tone and factual grounding. Chain-of-thought prompting (B) mainly improves multi-step reasoning and does not supply brand or factual grounding, so it does not address these issues.

Zero-shot prompting (D) removes the very examples that would steer tone and accuracy, making it counterproductive. Lowering temperature to 0.0 (E) only reduces sampling randomness; it cannot correct a model that lacks brand or product knowledge, so it does not fix off-brand or factually wrong content.

Exam trap

AWS often tests the distinction between techniques that reduce randomness (temperature) versus techniques that provide explicit guidance (few-shot, system prompts), and candidates mistakenly choose temperature reduction as a fix for content accuracy rather than for style variability.

278
MCQeasy

A hospital uses an AI system to prioritize patients for organ transplant based on predicted survival rates. The system was trained on historical data that includes socioeconomic factors. A review reveals that the system systematically assigns lower priority to patients from lower-income neighborhoods, even when medical urgency is similar. The hospital's ethics board demands an immediate remedy. The data science team is small and must act quickly. What should the hospital do to address this fairness issue most effectively?

A.Discontinue the AI system and have all prioritization done by a human committee
B.Retrain the model with only medically relevant features, after removing socioeconomic factors and correlated proxies
C.Apply a re-weighting penalty to boost priority for low-income patients
D.Use a different model type, such as a random forest instead of gradient boosting, on the same data
AnswerB

Removing socioeconomic features and their correlated proxies stops the model learning proxy discrimination, addressing the bias at its source. Retraining on medically relevant variables only directly corrects the systematic prioritisation disparity the ethics board identified.

Why this answer

The bias stems from socioeconomic features and their correlated proxies leaking into the model, so the most effective remedy is to retrain using only medically relevant features after removing socioeconomic variables and any correlated proxies (e.g., ZIP code, insurance type). This addresses the root cause of the disparate impact rather than masking it. It is also feasible for a small team acting quickly, since it is a data and feature-engineering change rather than a full system rebuild.

Exam trap

AIF-C01 often tests the misconception that changing the algorithm or adding a fairness penalty fixes bias, when the correct root-cause fix is removing biased features and their correlated proxies from the training data.

How to eliminate wrong answers

Option A is wrong because discontinuing the AI entirely is a disproportionate, non-technical response that discards the system's clinical value and does not itself guarantee fairer decisions — human committees exhibit their own biases. Option C is wrong because re-weighting to boost low-income patients is a post-hoc fairness patch that treats symptoms, can introduce reverse discrimination, and does not remove the biased signal from the model. Option D is wrong because swapping gradient boosting for random forest on the same biased data leaves the socioeconomic leakage intact — the algorithm is not the source of the bias, the features are.

279
MCQmedium

A data scientist is building a RAG application using Amazon Bedrock Knowledge Bases. The team requires that responses only use information from the uploaded documents and reject queries that are not related to the documents. Which Bedrock feature should be used to enforce this?

A.Bedrock Knowledge Bases
B.Bedrock Agents
C.Bedrock Model Evaluation
D.Bedrock Guardrails
AnswerD

Bedrock Guardrails apply contextual grounding and denied-topic filters that block responses unsupported by the retrieved source documents, forcing the model to reject out-of-scope queries. This enforces the requirement that answers derive only from the uploaded knowledge base content.

Why this answer

Amazon Bedrock Guardrails lets you define denied topics, content filters, and contextual grounding checks that constrain what a model can say. For a RAG app that must answer only from uploaded documents and reject off-topic queries, Guardrails' contextual grounding and denied-topics policies enforce that boundary at inference time. This is the Bedrock feature purpose-built for controlling model responses.

Exam trap

The trap is that Knowledge Bases sounds like the answer because it is the RAG component, but the requirement is to enforce response restrictions and reject off-topic queries — that is Guardrails, not retrieval.

How to eliminate wrong answers

Option A is wrong because Bedrock Knowledge Bases is the RAG retrieval component that stores and retrieves document chunks — it does not enforce response restrictions or reject off-topic queries. Option B is wrong because Bedrock Agents orchestrate multi-step tasks and tool calls; they do not provide content filtering or grounding enforcement. Option C is wrong because Bedrock Model Evaluation measures model quality metrics (accuracy, robustness, toxicity) for comparison — it is an assessment tool, not a runtime guard.

280
MCQmedium

A company uses Amazon Bedrock Agents to process user requests that involve multiple steps, such as checking inventory and placing an order. The Agent sometimes fails to complete the workflow because it makes incorrect assumptions about the order of steps. What is the MOST effective way to guide the Agent's reasoning?

A.Implement the entire workflow in a single Lambda function and bypass the Agent's reasoning
B.Include explicit step‑by‑step instructions in the Agent's prompt or instruction template
C.Switch to a larger foundation model in the Agent configuration
D.Add more action groups to cover every possible step
AnswerB

Explicit step-by-step instructions in the instruction template constrain the agent's reasoning path, directly addressing the incorrect step-ordering assumption. Amazon Bedrock Agents use the instruction field as the foundation for orchestration planning, so encoding the required sequence there guides action-group invocation order deterministically, rather than relying on the model to infer ordering from tool descriptions alone.

Why this answer

Amazon Bedrock Agents rely on the instructions provided in the agent's prompt or instruction template to orchestrate multi-step workflows. By explicitly including step-by-step instructions, you guide the agent's reasoning and reduce incorrect assumptions about the order of operations, directly addressing the failure to complete workflows.

Exam trap

The trap here is that candidates often assume that a larger or more powerful foundation model will automatically fix reasoning errors, but the real issue is the lack of explicit guidance in the agent's instructions, which is a prompt engineering problem, not a model capability problem.

How to eliminate wrong answers

Option A is wrong because implementing the entire workflow in a single Lambda function bypasses the agent's reasoning entirely, which defeats the purpose of using Bedrock Agents for dynamic, multi-step processing and removes the ability to leverage foundation model reasoning. Option C is wrong because switching to a larger foundation model does not inherently improve the agent's ability to follow a specific sequence of steps; the issue is about instruction clarity, not model capacity. Option D is wrong because adding more action groups does not correct the agent's reasoning about step order; it only expands the available actions, potentially increasing complexity without addressing the root cause of incorrect sequencing.

281
MCQeasy

A binary classification model outputs probabilities. The default threshold of 0.5 results in high precision but low recall. Which action would likely increase recall while maintaining acceptable precision?

A.Use F1 score instead of accuracy
B.Decrease the threshold to 0.3
C.Apply oversampling to the minority class
D.Increase the threshold to 0.7
AnswerB

Lowering the threshold to 0.3 classifies more cases as positive, so additional true positives are captured and recall rises. Precision may dip slightly, but the stem accepts this provided precision stays acceptable, which a modest 0.3 threshold typically preserves.

Why this answer

Decreasing the threshold to 0.3 makes the model classify more instances as positive, which increases recall (more true positives captured) but may also increase false positives. The goal is to shift the precision-recall trade-off toward higher recall while keeping precision at an acceptable level, which is directly achieved by lowering the decision threshold.

Exam trap

AWS often tests the misconception that changing the evaluation metric (like F1 score) or resampling the data (like oversampling) directly adjusts the model's output threshold, when in fact only threshold tuning changes the classification boundary after training.

How to eliminate wrong answers

Option A is wrong because using F1 score instead of accuracy is an evaluation metric change, not an action that modifies the model's output or threshold to increase recall. Option C is wrong because oversampling the minority class addresses class imbalance during training, which can improve model performance overall, but it does not directly adjust the decision threshold to increase recall after the model is trained. Option D is wrong because increasing the threshold to 0.7 would reduce the number of positive predictions, lowering recall (more false negatives) and potentially increasing precision, which is the opposite of the desired effect.

282
MCQmedium

A data science team is deploying a model using Amazon SageMaker. They need to monitor the model for bias after it is deployed. Which AWS service or feature should they use?

A.Amazon Bedrock Guardrails
B.Amazon SageMaker Clarify
C.Amazon SageMaker Model Monitor
D.AWS CloudTrail
AnswerB

SageMaker Clarify runs bias metrics such as disparate impact against deployed endpoints and emits them to CloudWatch, detecting bias after deployment. This satisfies the post-deployment monitoring requirement, which pre-training Clarify analysis alone would not cover.

Why this answer

Amazon SageMaker Clarify provides bias detection and explainability for machine learning models, including pre-training bias metrics on datasets and post-training bias metrics on deployed model predictions. It integrates with SageMaker Model Monitor to continuously detect bias drift in production.

Exam trap

AIF-C01 often tests the boundary between Clarify (bias and explainability) and Model Monitor (drift detection); candidates pick Model Monitor because it also sounds like a monitoring service, but bias-specific metrics come from Clarify.

How to eliminate wrong answers

Option A is wrong because Amazon Bedrock Guardrails filters harmful content and enforces safety policies for generative AI applications — it does not measure model bias. Option C is wrong because SageMaker Model Monitor detects data drift, model quality drift, and feature attribution drift, but bias detection specifically is a Clarify capability (Model Monitor can consume Clarify bias metrics, but Clarify is the service that computes them). Option D is wrong because AWS CloudTrail records API activity for auditing, not model bias.

283
Multi-Selectmedium

A developer is using prompt engineering techniques to improve the performance of a text generation model on Amazon Bedrock. Which TWO techniques are examples of prompt engineering? (Select TWO.)

Select 2 answers
A.Fine-tuning the model on domain-specific data
B.Few-shot prompting with example inputs and outputs
C.Adjusting the temperature parameter
D.Zero-shot prompting
E.Implementing a vector database for retrieval
AnswersB, D

Few-shot prompting supplies labelled input-output pairs inside the prompt, steering the model toward the desired response format without retraining. This satisfies the stem's requirement for a prompt engineering technique, since it alters only the inference-time prompt on Amazon Bedrock, leaving model weights and parameters unchanged.

Why this answer

Few-shot prompting (B) is a core prompt engineering technique because it places several example input-output pairs directly in the prompt to steer the model's behavior without changing model weights. Zero-shot prompting (D) is likewise prompt engineering, as it crafts the instruction and task description so the model can perform the task with no examples provided. Both operate purely at the prompt/input level, which is the defining characteristic of prompt engineering on Amazon Bedrock.

Fine-tuning (A) is excluded because it modifies model parameters through additional training rather than engineering the prompt. Adjusting temperature (C) is an inference parameter (decoding setting), not a prompt construction technique. Implementing a vector database for retrieval (E) is a Retrieval Augmented Generation architecture component, not prompt engineering itself.

Exam trap

The AWS AI Practitioner exam often tests the distinction between prompt engineering (modifying the input prompt) and model configuration or augmentation (e.g., temperature, fine-tuning, RAG), so the trap here is that candidates confuse inference parameters or data retrieval methods with prompt engineering techniques, leading them to select options like adjusting temperature or using a vector database.

284
Multi-Selecteasy

Which TWO actions are best practices for reducing hallucinations in generative AI models? (Choose 2)

Select 2 answers
A.Increase the model size
B.Fine-tune the model on proprietary data
C.Use retrieval-augmented generation (RAG)
D.Use a smaller model to limit complexity
E.Apply prompt engineering with clear instructions and constraints
AnswersC, E

Retrieval-augmented generation grounds responses in documents fetched at inference time, so the model conditions on supplied evidence rather than relying solely on parametric memory. This directly addresses the hallucination constraint in the stem by anchoring output to verifiable source content, reducing fabricated claims when the retrieved passages are relevant and accurate.

Why this answer

Option C, retrieval-augmented generation (RAG), is correct because it grounds the model's responses in externally retrieved, authoritative documents at inference time, so the model cites or conditions on real source content rather than relying solely on parametric memory, which measurably reduces fabricated facts. Option E, prompt engineering with clear instructions and constraints, is correct because explicit directives such as "answer only from the provided context," "say 'I don't know' if unsupported," and output-format constraints steer the model away from speculative generation and make hallucinations easier to detect. Option A, increasing model size, is not a reliable fix: larger models can be more fluent and confident while still hallucinating, and scale alone does not guarantee factual grounding.

Option B, fine-tuning on proprietary data, mainly adapts style, format, and domain vocabulary and can even increase confident fabrication on facts not present in the tuning set, so it is not a primary hallucination-reduction best practice. Option D, using a smaller model, is also not a best practice for this goal, since reduced capacity generally lowers factual accuracy and reasoning rather than improving truthfulness.

Exam trap

AWS often tests the misconception that larger models or fine-tuning alone solve hallucinations, when in fact grounding techniques like RAG and explicit prompt constraints are the proven mitigations.

285
MCQhard

A marketing firm uses Amazon Bedrock to generate ad copy. They notice that the generated text often includes factual inaccuracies about their products. Which technique would most effectively reduce these inaccuracies?

A.Implement Retrieval-Augmented Generation (RAG) with a product knowledge base.
B.Use longer, more detailed prompts.
C.Increase the temperature parameter to 0.9.
D.Fine-tune the model on a dataset of previous ad copies.
AnswerA

Retrieval-Augmented Generation grounds each response in retrieved product facts, so the model conditions on authoritative content rather than relying solely on parametric memory. This directly targets the factual inaccuracies described, since the product knowledge base supplies verified details at inference time, satisfying the accuracy constraint in the stem.

Why this answer

Retrieval-Augmented Generation (RAG) grounds the model's output in a trusted, external knowledge base by retrieving relevant product documents before generating text. This directly addresses factual inaccuracies because the model references authoritative data rather than relying solely on its parametric memory, which may contain outdated or incorrect information.

Exam trap

The AIF-C01 exam often tests the misconception that fine-tuning or prompt engineering alone can fix factual accuracy issues, when in reality RAG is the standard solution for grounding model outputs in external, verifiable data.

How to eliminate wrong answers

Option B is wrong because longer prompts do not fix the underlying knowledge gap; they only provide more context but cannot inject new, accurate facts that the model lacks. Option C is wrong because increasing temperature to 0.9 increases randomness and creativity, which would likely worsen factual inaccuracies by encouraging more hallucinated or divergent outputs. Option D is wrong because fine-tuning on previous ad copies would reinforce existing patterns and biases, including any inaccuracies present in the training data, rather than introducing a reliable source of truth.

286
MCQmedium

An ML engineer is training a linear regression model and notices that adding more features increases training error. What is the most likely cause?

A.Irrelevant features
B.Underfitting
C.Multicollinearity
D.Overfitting
AnswerA

Adding irrelevant features can introduce noise and increase training error in linear regression.

Why this answer

Adding more features increases training error because irrelevant features introduce noise that the model tries to fit, degrading its ability to capture the true underlying pattern. In linear regression, irrelevant features can cause the model to learn spurious correlations, increasing the residual sum of squares (RSS) on the training data. This is a classic sign of feature pollution, not overfitting or underfitting.

Exam trap

The AWS AI Practitioner exam often tests the misconception that adding features always reduces training error due to overfitting, but the trap here is that irrelevant features can actually increase training error by introducing noise that the model cannot ignore.

How to eliminate wrong answers

Option B is wrong because underfitting occurs when the model is too simple to capture the data's structure, leading to high training error from the start, not from adding features. Option C is wrong because multicollinearity inflates coefficient variances and can cause instability, but it typically does not increase training error; it often leaves training error low while harming generalization. Option D is wrong because overfitting reduces training error (often to near zero) as the model memorizes noise, so increasing training error contradicts overfitting behavior.

287
MCQhard

A company operates a customer support chatbot that uses Amazon Bedrock with a knowledge base sourced from an S3 bucket containing frequently updated product documentation. The knowledge base uses OpenSearch Serverless as the vector store and is configured to sync daily. The chatbot uses the RetrieveAndGenerate API with a custom Lambda function that applies a system prompt instructing the model to base answers solely on the retrieved context. After a major update to the product documentation, the IT team verifies that the data source sync completed successfully and the new chunks are present in the OpenSearch index. However, the chatbot continues to respond with outdated information. Further investigation reveals that the Lambda function includes a response caching mechanism using Amazon ElastiCache for Redis with a Time-To-Live (TTL) of 24 hours. The cache key is based on the user query. The team notes that no cache invalidation is performed after documentation updates. What is the most likely cause of the outdated responses?

A.The ElastiCache cache is returning stale cached responses that contain the old information.
B.The 'maximum results' parameter in the RetrieveAndGenerate API is set to a value too low to retrieve the new chunks.
C.The embedding model used by the knowledge base has not been retrained on the new documentation.
D.The IAM role for the Lambda function lacks permissions to access the new S3 objects.
AnswerA

The Lambda layer caches responses keyed by user query with a 24-hour TTL and performs no invalidation after syncs, so identical queries return pre-update answers from Redis even though OpenSearch holds fresh chunks. The retrieval layer is bypassed entirely.

Why this answer

The Lambda function caches responses in ElastiCache for Redis with a 24-hour TTL keyed on the user query, and no invalidation occurs after documentation updates. Even though the knowledge base sync succeeded and new chunks are in OpenSearch, the chatbot returns the cached stale answer for any query previously cached. This is the classic cache-staleness failure mode.

Exam trap

AIF-C01 often tests RAG troubleshooting by presenting a scenario where the data pipeline looks healthy, tempting candidates to blame retrieval parameters or IAM — when the real culprit is an application-layer cache returning stale responses.

How to eliminate wrong answers

Option B is wrong because a low 'maximum results' value would reduce the number of retrieved chunks but would not cause consistently outdated answers — and the scenario confirms new chunks are present in the index, so retrieval is not the bottleneck. Option C is wrong because Bedrock knowledge base embedding models are not 'retrained' on new documents; embeddings are generated at ingestion time, and the sync already regenerated embeddings for the new chunks. Option D is wrong because the scenario explicitly states the data source sync completed successfully and new chunks are in the OpenSearch index, which proves the Lambda's IAM role has the necessary S3 and OpenSearch permissions.

288
Multi-Selecteasy

A data science team is using Amazon SageMaker to build a model. They want to ensure that only authorized users can deploy models to production. Which TWO methods can they use to enforce this?

Select 2 answers
A.Use SageMaker Model Registry to require approval before deployment.
B.Enable multi-factor authentication (MFA) for all AWS accounts.
C.Use IAM policies to restrict the sagemaker:CreateEndpoint action to specific users.
D.Use AWS CloudTrail to audit deployment actions.
E.Use Amazon GuardDuty to monitor for unauthorized deployment.
AnswersA, C

Model Registry can enforce an approval workflow before a model is deployed.

Why this answer

SageMaker Model Registry allows you to set up an approval workflow for model versions. By requiring explicit approval before a model can be deployed to production, you enforce a governance gate that prevents unauthorized or unverified models from being used in production endpoints.

Exam trap

The trap here is that candidates often confuse auditing or monitoring services (like CloudTrail or GuardDuty) with preventive controls, failing to recognize that only IAM policies and registry approval workflows can actively block unauthorized deployment actions.

289
MCQhard

A media company is using Amazon Bedrock to generate marketing copy with a foundation model. They want to ensure the output adheres to brand voice guidelines (e.g., friendly, professional). Which prompt engineering strategy is most effective for this requirement?

A.Provide five example outputs in the prompt that match the desired tone.
B.Include instructions like 'Do not use technical jargon' in every user prompt.
C.Set the temperature parameter to a low value (e.g., 0.1) to reduce randomness.
D.Use a system prompt that explicitly describes the brand voice and expectations.
AnswerD

A system prompt sets persistent behavioural instructions that condition every response, so describing the brand voice there enforces friendly, professional tone across all generated copy without repeating guidance per request. Unlike few-shot examples, which shape format through demonstration, this directly constrains style, satisfying the adherence requirement.

Why this answer

Amazon Bedrock supports system prompts that set overarching context and behavioral guidelines for the model. By explicitly describing the brand voice (e.g., 'friendly, professional') in the system prompt, the model consistently applies these constraints across all user interactions, which is more effective than per-instruction tuning.

Exam trap

AWS often tests the misconception that parameter tuning (like temperature) or few-shot examples are sufficient for style control, when in fact system prompts provide the most direct and scalable mechanism for enforcing behavioral constraints in foundation models.

How to eliminate wrong answers

Option A is wrong because providing example outputs (few-shot prompting) can guide tone but is less reliable than a system prompt for consistent adherence across diverse inputs, and it consumes prompt token budget without guaranteeing the model internalizes the rule. Option B is wrong because including instructions like 'Do not use technical jargon' in every user prompt is redundant, inefficient, and can be overridden by the model's tendency to follow the most recent instruction, whereas a system prompt sets a persistent baseline. Option C is wrong because lowering the temperature parameter reduces randomness but does not enforce specific brand voice constraints; it only makes outputs more deterministic, which may still produce off-tone content if the model's training data lacks the desired style.

290
MCQeasy

A data scientist at a retail company is tasked with building a model to predict customer churn. The dataset contains 100,000 records with features such as age, purchase history, customer support interactions, and a binary label indicating whether the customer churned in the past. The team needs a model that can be deployed for real-time inference with low latency. They have limited time and want to use a built-in algorithm from Amazon SageMaker that is optimized for classification tasks. Which approach should they take?

A.Use Amazon SageMaker PCA algorithm
B.Use Amazon SageMaker XGBoost algorithm
C.Use Amazon SageMaker K-Means algorithm
D.Use Amazon SageMaker BlazingText algorithm
AnswerB

SageMaker's built-in XGBoost is optimised for tabular binary classification and serves low-latency real-time inference from a managed endpoint, meeting the deployment constraint. It handles the 100,000-record dataset without custom training code, saving the limited time available.

Why this answer

Amazon SageMaker's built-in XGBoost algorithm is optimized for classification tasks like binary churn prediction, supports real-time inference with low latency via SageMaker endpoints, and can handle the dataset size of 100,000 records efficiently. It is a supervised learning algorithm that directly uses the binary label for training, making it the correct choice for this scenario.

Exam trap

The trap here is that candidates may confuse unsupervised algorithms (PCA, K-Means) or domain-specific algorithms (BlazingText for text) with general-purpose supervised classification algorithms, overlooking that XGBoost is the only built-in SageMaker algorithm among the options designed for tabular classification with real-time inference needs.

How to eliminate wrong answers

Option A is wrong because PCA (Principal Component Analysis) is an unsupervised dimensionality reduction algorithm, not a classification algorithm, and cannot predict churn from a binary label. Option C is wrong because K-Means is an unsupervised clustering algorithm used for grouping data, not for supervised classification tasks like churn prediction. Option D is wrong because BlazingText is optimized for text classification and word embeddings, not for tabular data with features like age and purchase history.

291
Multi-Selectmedium

A company needs to govern the lifecycle of ML models, including versioning, monitoring for drift, and decommissioning outdated models. Which TWO services should they use? (Choose 2)

Select 2 answers
A.AWS CloudTrail
B.Amazon SageMaker Model Registry
C.Amazon SageMaker Model Monitor
D.Amazon S3
E.AWS CodePipeline
AnswersB, C

Amazon SageMaker Model Registry provides a centralised catalogue for versioning ML models, tracking approval status, and managing their lifecycle through to decommissioning. It satisfies the stem's governance requirements by recording model metadata and lineage, while drift monitoring is handled by SageMaker Model Monitor alongside it.

Why this answer

Amazon SageMaker Model Registry (B) is correct because it provides a centralized catalog for versioning ML models, tracking approval status, and managing the model lifecycle through metadata such as model packages and model groups, which directly supports versioning and decommissioning outdated models. Amazon SageMaker Model Monitor (C) is correct because it continuously monitors deployed models for data drift, model quality drift, bias drift, and feature attribution drift, alerting when behavior deviates from the baseline, which fulfills the drift-monitoring requirement. AWS CloudTrail (A) only records API activity for auditing and governance of account actions, not ML model versioning or drift detection.

Amazon S3 (D) is object storage for artifacts and data, not a lifecycle governance or monitoring service. AWS CodePipeline (E) is a CI/CD orchestration service for automating build and deployment stages, not for model registry or drift monitoring.

292
MCQmedium

A healthcare company uses Amazon Bedrock to generate patient summaries. They need to ensure no protected health information (PHI) is leaked in the output. Which AWS service can they use to detect and mask PHI in text?

A.Amazon Comprehend Medical
B.Amazon Macie
C.AWS Glue
D.Amazon Rekognition
AnswerA

Amazon Comprehend Medical applies natural language processing purpose-built for clinical text, detecting protected health information such as names, dates and medical record numbers, then masking it. This directly satisfies the requirement to prevent PHI leakage in generated patient summaries.

Why this answer

Amazon Comprehend Medical is specifically designed to extract and identify protected health information (PHI) from unstructured medical text using natural language processing (NLP). It can detect entities such as patient names, dates, medical conditions, and medications, and provides APIs to mask or redact that PHI before output. This makes it the correct choice for the healthcare company's requirement to prevent PHI leakage in patient summaries generated by Amazon Bedrock.

Exam trap

AWS often tests the distinction between general-purpose data protection services (like Macie) and domain-specific medical NLP services (like Comprehend Medical), leading candidates to choose Macie because it is associated with sensitive data discovery, even though it cannot perform inline text masking.

How to eliminate wrong answers

Option B (Amazon Macie) is wrong because Macie is a data security service that discovers and protects sensitive data stored in Amazon S3 using machine learning and pattern matching, but it does not provide real-time PHI detection or masking in text streams or API outputs. Option C (AWS Glue) is wrong because Glue is a serverless data integration service for ETL (extract, transform, load) jobs, not a text analysis or PHI detection service. Option D (Amazon Rekognition) is wrong because Rekognition is an image and video analysis service that can detect objects, faces, and text in media, but it is not designed to identify or mask PHI in textual data.

293
MCQmedium

A healthcare startup deploys a model to predict patient readmission risk using Amazon SageMaker. After deployment, the model shows higher false-positive rates for a specific age group. What is the most responsible first step?

A.Increase the prediction threshold for the affected group
B.Use Amazon SageMaker Clarify to detect bias in predictions
C.Retrain the model with more data from the affected group
D.Immediately retire the model to prevent harm
AnswerB

Amazon SageMaker Clarify quantifies bias across demographic groups using metrics such as disparate impact and equal opportunity difference, directly identifying the age-group disparity described. Detecting and measuring the bias before mitigation satisfies the stem's requirement for a responsible first step, since remediation cannot be targeted without first confirming which groups are affected.

Why this answer

Amazon SageMaker Clarify is purpose-built for detecting bias in ML models and data. It provides bias metrics (e.g., Difference in Positive Proportions in Predicted Labels, Disparate Impact) that can quantify whether the model's predictions are systematically skewed against a specific age group. This is the most responsible first step because it objectively measures the bias before any corrective action is taken.

Exam trap

AWS often tests the misconception that the first step to address bias is to immediately retrain or adjust thresholds, rather than using a dedicated bias detection tool like SageMaker Clarify to first diagnose the nature and extent of the bias.

How to eliminate wrong answers

Option A is wrong because increasing the prediction threshold for the affected group is a post-hoc adjustment that does not address the root cause of bias and can introduce new fairness issues or degrade overall model performance. Option C is wrong because retraining with more data from the affected group assumes the bias stems from data imbalance, but without first using SageMaker Clarify to confirm the bias source, this could be ineffective or even harmful (e.g., if bias is due to feature encoding or labeling). Option D is wrong because immediately retiring the model is an overreaction that ignores the possibility of mitigation; responsible AI practices require diagnosis before drastic action.

294
MCQhard

An AI practitioner is deploying a large language model (LLM) for a customer support application. They are concerned about hallucinations, where the model generates plausible but incorrect information. Which combination of techniques would be MOST effective to mitigate hallucinations?

A.Use Retrieval-Augmented Generation (RAG) and enable Bedrock Guardrails
B.Disable human review and increase max tokens
C.Increase model temperature and use top-k sampling
D.Fine-tune the model on a small dataset and reduce context length
AnswerA

RAG grounds responses in retrieved authoritative documents, reducing fabricated content, while Bedrock Guardrails applies content filters and grounding checks that block unsupported claims. Together they address hallucination at both retrieval and output stages, satisfying the mitigation requirement.

Why this answer

Grounding the model with RAG and using Bedrock Guardrails are effective techniques to reduce hallucinations by providing context and enforcing constraints.

295
MCQeasy

A startup needs to generate product descriptions from bullet points using a foundation model. They want a fully managed serverless experience. Which AWS service should they use?

A.Amazon Comprehend
B.Amazon Bedrock
C.Amazon Polly
D.Amazon Lex
AnswerB

Amazon Bedrock provides serverless access to foundation models through a managed API, requiring no infrastructure provisioning or capacity management. This satisfies the startup's need to generate product descriptions from bullet points with a fully managed, pay-per-use experience.

Why this answer

Amazon Bedrock is a fully managed serverless service that provides access to foundation models (FMs) from leading AI providers via an API, making it ideal for generating product descriptions from bullet points. It eliminates infrastructure management while allowing you to invoke models like Anthropic Claude or Amazon Titan for text generation tasks.

Exam trap

The trap here is that candidates confuse Amazon Comprehend (a text analysis service) with a generative AI service, or assume Polly or Lex can generate text descriptions when they are specialized for speech and conversation, respectively.

How to eliminate wrong answers

Option A is wrong because Amazon Comprehend is a natural language processing (NLP) service for extracting insights (e.g., sentiment, entities) from text, not for generating new content from bullet points. Option C is wrong because Amazon Polly is a text-to-speech service that converts text into lifelike speech, not a foundation model for text generation. Option D is wrong because Amazon Lex is a service for building conversational interfaces (chatbots) using automatic speech recognition and natural language understanding, not for generating product descriptions from bullet points.

296
Multi-Selecthard

A developer is using Amazon Bedrock to build a chatbot that answers questions about a large internal knowledge base. The knowledge base contains documents with varying lengths, some exceeding 10,000 tokens. The chatbot must provide accurate answers and handle queries about multiple topics. Which THREE strategies should the developer implement? (Select THREE)

Select 3 answers
A.Chunk documents into smaller segments with overlap, and index them in a vector database
B.Set the maxTokens parameter to a value that allows complete answers without exceeding the context window
C.Use a model with a larger context window, such as Anthropic Claude 2.1 (200K tokens)
D.Lower the temperature to 0 to ensure deterministic responses
E.Use a vector database like Amazon OpenSearch Serverless with vector engine to store and retrieve document chunks
AnswersA, B, E

Chunking ensures each piece fits within the context window, and overlap preserves context across chunks.

Why this answer

Option A is correct because chunking long documents into smaller segments with overlap and indexing them in a vector database is the standard RAG approach for handling documents that exceed the model's context window while preserving semantic continuity across chunk boundaries. Option B is correct because setting maxTokens appropriately ensures the model has enough room to generate complete, accurate answers without truncation or exceeding the model's context window when combined with retrieved context. Option E is correct because Amazon Bedrock Knowledge Bases can use Amazon OpenSearch Serverless with the vector engine as the vector store to persist and retrieve document chunk embeddings for semantic search.

Option C is not selected because simply using a larger context window model does not by itself solve retrieval accuracy for a large knowledge base and is not one of the required strategies here. Option D is not selected because lowering temperature to 0 affects randomness, not retrieval accuracy or handling of long documents, and deterministic output is not a stated requirement.

Exam trap

AWS often tests the misconception that a larger context window alone can handle large knowledge bases without retrieval augmentation, but the key is that retrieval-augmented generation (RAG) with chunking and vector search is required for scalable and accurate answers.

297
MCQeasy

A retail company wants to build a system that predicts next month's sales for each of its 500 stores based on historical sales, local holidays, and marketing spend. The target values are continuous dollar amounts, and the company has labeled historical data for every store. Which type of machine learning problem does this represent?

A.Unsupervised learning, because the model discovers hidden groupings of stores on its own.
B.Supervised regression, because the model learns from labeled data to predict a continuous numeric value.
C.Supervised classification, because the model assigns each store to a predicted category.
D.Reinforcement learning, because the model improves by receiving rewards after each prediction.
AnswerB

The historical records pair input features such as past sales, holidays, and marketing spend with a known numeric target, next month's sales. Predicting a continuous quantity from labeled examples is exactly regression within supervised learning. This matches both the availability of labels and the continuous nature of the dollar amount the company needs forecasted.

Why this answer

The company holds labeled historical data and needs a continuous numeric output, next month's sales in dollars. That combination defines supervised regression, where the model learns a mapping from input features to a numeric target. Classification, unsupervised learning, and reinforcement learning all misalign with either the presence of labels or the continuous nature of the predicted value.

Exam trap

The trap here is assuming any business forecasting problem must be classification just because it involves predicting a future outcome.

298
MCQeasy

A company wants to automatically discover sensitive data such as credit card numbers in their Amazon S3 training datasets before using them for model training. Which AWS service should they use?

A.Amazon Macie
B.AWS Config
C.Amazon GuardDuty
D.AWS Audit Manager
AnswerA

Amazon Macie uses machine learning and pattern matching to automatically discover, classify and alert on sensitive data such as credit card numbers stored in Amazon S3. It directly satisfies the requirement to scan S3 training datasets before use, providing continuous visibility without manual inspection or custom scripts.

Why this answer

Amazon Macie is a fully managed data security service that uses machine learning and pattern matching to automatically discover, classify, and protect sensitive data stored in Amazon S3. It is purpose-built to detect PII such as credit card numbers, social security numbers, and API keys in S3 buckets, making it the correct choice for scanning training datasets before use.

Exam trap

AIF-C01 often tests the confusion between data classification services (Macie) and threat detection or compliance services (GuardDuty, Config, Audit Manager), so candidates must map 'sensitive data in S3' directly to Macie.

How to eliminate wrong answers

Option B is wrong because AWS Config is a configuration compliance and resource inventory service that records resource changes and evaluates them against rules; it does not inspect data content for sensitive information. Option C is wrong because Amazon GuardDuty is a threat detection service that analyzes CloudTrail, VPC Flow Logs, and DNS logs for malicious activity, not data classification. Option D is wrong because AWS Audit Manager helps collect evidence and automate audit reports for compliance frameworks; it does not scan S3 objects for sensitive data.

299
Multi-Selectmedium

Which TWO of the following are examples of supervised learning tasks that can be performed using Amazon SageMaker built-in algorithms?

Select 2 answers
A.Principal Component Analysis (PCA)
B.XGBoost
C.Linear Learner
D.Latent Dirichlet Allocation (LDA)
E.K-Means
AnswersB, C

XGBoost is a gradient-boosted decision tree algorithm that trains on labelled data to predict a target, making it a supervised task. SageMaker provides it as a built-in algorithm, satisfying the stem's requirement for supervised learning examples.

Why this answer

XGBoost (B) is correct because Amazon SageMaker's built-in XGBoost algorithm is a supervised gradient-boosted trees implementation used for classification and regression on labeled data. Linear Learner (C) is correct because SageMaker's built-in Linear Learner algorithm trains supervised linear models for classification and regression using labeled datasets. PCA (A) is not correct because it is an unsupervised dimensionality-reduction technique that does not use target labels.

LDA (D) is not correct because it is an unsupervised topic-modeling algorithm. K-Means (E) is not correct because it is an unsupervised clustering algorithm that groups unlabeled data.

Exam trap

The AIF-C01 exam often tests the distinction between supervised and unsupervised learning by listing algorithms like PCA, LDA, and K-Means alongside supervised ones, trapping candidates who recognize the algorithm names but forget their learning paradigm.

300
MCQhard

A healthcare provider wants to predict which patients are likely to be readmitted within 30 days. The historical dataset has 12,000 admissions and includes age, diagnosis codes, length of stay, and prior admissions. The team has limited machine learning experience and needs an explainable model that shows which factors drove each prediction. Which AWS approach is most appropriate?

A.Use Amazon Personalize to rank patients by readmission risk based on their historical interactions.
B.Use Amazon Forecast to predict readmission counts and rely on its built-in accuracy metrics for explanation.
C.Use Amazon Lex to build a conversational interface that asks clinicians to estimate readmission probability.
D.Use Amazon SageMaker Autopilot to train candidate models on the labeled dataset, then review the model explainability report to understand feature influence.
AnswerD

SageMaker Autopilot automates feature engineering, algorithm selection, and hyperparameter tuning for tabular supervised problems, which suits a team with limited ML experience. It also produces a model explainability report showing how each feature contributes to predictions, addressing the explainability requirement. The labeled readmission outcome makes this a supervised binary classification task that Autopilot handles directly.

Why this answer

The task is supervised binary classification on tabular patient data, which SageMaker Autopilot handles by automatically exploring preprocessing, algorithms, and hyperparameters. Its model explainability report attributes predictions to input features, satisfying the need for transparency. Forecasting, recommendation, and conversational services do not perform per-patient clinical risk prediction with feature-level explanations.

Exam trap

The trap here is selecting a forecasting or recommendation service because it also produces scores, when the actual task is tabular binary classification with explainability.

Page 3

Page 4 of 12

Page 5