Courseiva

AWS Certified AI Practitioner AIF-C01 (AIF-C01) — Questions 526600

619 questions total · 9pages · All types, answers revealed

Page 7

Page 8 of 9

Page 9
526
MCQhard

A financial services company uses a machine learning model to automatically reject credit card transactions suspected of fraud. The model was trained on transaction data from the past two years. Over the last three months, the model's false positive rate has increased significantly, causing legitimate transactions to be declined and leading to customer complaints. The company needs to restore the model's accuracy quickly. Initial analysis shows that the distribution of transaction amounts and locations has shifted compared to the training period. The data science team is under pressure to deploy an update within a week. Which approach should they take to most effectively address the issue while adhering to responsible AI guidelines?

A.Deploy a rule-based system with fixed rules for fraud detection
B.Adjust the decision threshold to reduce false positives without retraining
C.Retrain the model using only the most recent three months of transaction data and evaluate on current distribution
D.Build an ensemble model that combines predictions from the old model and a new model trained on recent data
AnswerC

Retraining on recent data adapts to drift and is straightforward.

Why this answer

The most effective approach is to retrain the model using recent data (last three months) to adapt to the distribution shift, and carefully evaluate for any new biases that may emerge. This directly addresses the drift. Simply adjusting the threshold may not capture new fraud patterns.

Using an ensemble of old and recent models could be complex and may not fully adapt. Deploying a simple rule-based system would be a step backward in capability.

527
MCQhard

A data scientist observes that a gradient boosting model's performance on the validation set is significantly worse than on the training set. Which adjustment is MOST likely to reduce this gap?

A.Increase the maximum depth of trees
B.Reduce the learning rate and increase the number of estimators
C.Increase the number of features
D.Increase the subsample ratio to 1.0
AnswerB

A lower learning rate makes the model more robust, and more estimators compensate, often reducing overfitting.

Why this answer

The gap between training and validation performance indicates overfitting. Reducing the learning rate and increasing the number of estimators is a standard regularization technique in gradient boosting: a lower learning rate shrinks the contribution of each tree, forcing the model to learn more slowly and generalize better, while more trees allow the model to still capture complex patterns without overfitting to noise.

Exam trap

AWS often tests the misconception that increasing model complexity (e.g., deeper trees or more features) always improves performance, when in fact regularization techniques like lowering the learning rate are the correct response to overfitting.

How to eliminate wrong answers

Option A is wrong because increasing the maximum depth of trees makes each tree more complex, which typically increases overfitting and widens the train-validation gap. Option C is wrong because increasing the number of features may introduce irrelevant or noisy features, potentially worsening overfitting rather than reducing the gap. Option D is wrong because increasing the subsample ratio to 1.0 means using all training samples for each tree, which removes the stochastic regularization effect of subsampling and can lead to more overfitting.

528
MCQeasy

A data scientist wants to use a third-party foundation model from Amazon Bedrock for a generative AI application. The compliance officer needs to understand how the third-party model provider handles data privacy. Where can the data scientist find this information?

A.Contact the model provider directly via email
B.In the Amazon Bedrock service documentation for the specific model provider
C.Use Amazon Macie to analyze the model provider's privacy policy
D.In the AWS Artifact reports
AnswerB

Bedrock documentation includes data privacy information for each model provider, as required by AWS.

Why this answer

AWS provides a service-specific data privacy page for each Bedrock model provider, detailing data handling, retention, and privacy practices. This is part of the Bedrock documentation.

529
Multi-Selecthard

A data scientist is fine-tuning a foundation model on Amazon Bedrock for a custom summarization task. Which THREE practices should they follow to optimize the fine-tuning process?

Select 3 answers
A.Start with a base model that is already strong in the domain.
B.Use the default hyperparameters without tuning.
C.Use a representative dataset that reflects the target task.
D.Monitor training loss and validation loss to avoid overfitting.
E.Train for as many epochs as possible.
AnswersA, C, D

A good base model reduces training time and improves results.

Why this answer

Starting with a base model that is already strong in the domain (Option A) is correct because it reduces the amount of fine-tuning data and compute required. Amazon Bedrock provides access to various foundation models (e.g., Anthropic Claude, Amazon Titan) that have been pre-trained on diverse corpora; selecting one that is already proficient in the target domain (e.g., legal or medical summarization) means the model's existing knowledge can be adapted with fewer training steps, leading to better performance and lower risk of catastrophic forgetting.

Exam trap

The AIF-C01 exam often tests the misconception that more epochs always improve model performance, when in fact excessive training leads to overfitting, and they expect candidates to recognize that monitoring loss curves and using early stopping are critical practices.

530
MCQmedium

A company is implementing a Retrieval-Augmented Generation (RAG) pipeline with Amazon Bedrock Knowledge Bases. They need to store vector embeddings for their documents. Which vector store options are natively supported by Bedrock Knowledge Bases?

A.Amazon OpenSearch Serverless, Pinecone, MongoDB Atlas, and Amazon Aurora pgvector
B.Only Pinecone and Amazon OpenSearch Serverless
C.Amazon DynamoDB and Amazon RDS for MySQL
D.Only Amazon OpenSearch Serverless
AnswerA

All four are supported vector store options for Bedrock Knowledge Bases.

Why this answer

Bedrock Knowledge Bases natively integrates with several vector stores, including Amazon OpenSearch Serverless, Pinecone, and MongoDB Atlas. Amazon Aurora pgvector is also supported but through Aurora's PostgreSQL compatibility. All four are valid options.

531
MCQmedium

A healthcare company is deploying a machine learning model on Amazon SageMaker to analyze patient records. The model requires access to a DynamoDB table containing patient data. Which combination of AWS services and features should the company use to restrict access to only the necessary resources?

A.Attach a DynamoDB resource-based policy to the table allowing access from the SageMaker notebook
B.Create an IAM role with a policy granting read-only access to the specific DynamoDB table and attach it to the SageMaker notebook instance
C.Store AWS access keys in the notebook and use those credentials to access DynamoDB
D.Launch the SageMaker notebook in a VPC with a security group that allows access to DynamoDB
AnswerB

This follows least-privilege principle and uses temporary credentials via IAM roles.

Why this answer

It follows the AWS principle of least privilege by creating an IAM role with a policy that grants read-only access to the specific DynamoDB table, then attaching that role to the SageMaker notebook instance. This ensures the notebook can only perform read operations on the required table without exposing long-term credentials or granting broader permissions.

Exam trap

The AIF-C01 exam often tests the misconception that DynamoDB supports resource-based policies like S3 bucket policies, but in reality DynamoDB only uses IAM identity-based policies for access control.

How to eliminate wrong answers

Option A is wrong because DynamoDB does not support resource-based policies; access control is managed exclusively through IAM policies, not by attaching policies directly to the table. Option C is wrong because storing AWS access keys in the notebook violates security best practices by introducing long-term credentials that can be leaked or misused, and SageMaker notebooks should use IAM roles for temporary credentials. Option D is wrong because a VPC with a security group controls network-level traffic but does not authenticate or authorize the SageMaker notebook to access DynamoDB; DynamoDB access requires IAM permissions regardless of network configuration.

532
MCQhard

A media company uses Amazon Bedrock to generate image captions. They notice that the output quality degrades when the input image contains text in non-Latin scripts. Which model type is MOST likely being used, and what is the likely cause?

A.Anthropic Claude 3 Sonnet; its OCR performance on non-Latin scripts is limited
B.Amazon Titan Image Generator; it is not designed for caption generation
C.Meta Llama 3 70B; it does not accept image inputs
D.Anthropic Claude 3 Sonnet; the image resolution is too low for its vision encoder
AnswerA

Claude 3 Sonnet is multimodal and can caption images, but its OCR for non-Latin scripts may be weak, leading to degraded caption quality.

Why this answer

Anthropic Claude 3 Sonnet is a multimodal model that can process images and generate captions, but its vision encoder relies on OCR-like capabilities that are optimized for Latin scripts. Non-Latin scripts (e.g., Chinese, Arabic, Devanagari) often have complex character shapes and spacing that the model's training data underrepresents, leading to degraded caption quality.

Exam trap

The trap here is that candidates may assume all multimodal models handle OCR uniformly, but the exam tests awareness that vision-language models have varying script-specific training biases, and that 'degradation with non-Latin scripts' is a hallmark of OCR weakness, not a generic resolution or modality issue.

How to eliminate wrong answers

Option B is wrong because Amazon Titan Image Generator is designed for image generation, not caption generation, and the question describes a captioning task where the model must read text from images, which Titan does not support. Option C is wrong because Meta Llama 3 70B is a text-only large language model that does not accept image inputs, so it cannot be used for image captioning at all. Option D is wrong because while low image resolution can affect vision encoder performance, the specific degradation tied to non-Latin scripts points to OCR limitations, not general resolution issues.

533
MCQhard

A healthcare company is using Amazon SageMaker to train and deploy a model that predicts patient readmission risk. The model uses sensitive protected health information (PHI). The company must ensure that data is encrypted at rest and in transit, and that access to the model endpoint is restricted to authorized applications only. The security team has configured AWS KMS customer managed keys for encryption, and IAM roles for SageMaker execution. However, during a security audit, it was discovered that the model endpoint is accessible from the internet and that the data used for training was stored in an S3 bucket with default encryption enabled. The compliance team requires that all PHI data be encrypted with a key that is rotated annually, and that no public access is allowed to the endpoint or training data. Which combination of actions should the ML engineer take to remediate these issues?

A.Use a SageMaker notebook instance with a lifecycle configuration to encrypt data with a customer managed KMS key, and restrict endpoint access using an IAM policy.
B.Enable S3 bucket encryption with SSE-S3, attach a bucket policy denying public access, and use an AWS Lambda function to rotate the S3 bucket key every year.
C.Apply SSE-KMS with an AWS managed key to the S3 bucket, and use a Lambda function to rotate the key every year. Disable public access to the endpoint using a VPC endpoint.
D.Enable S3 bucket encryption with a customer managed KMS key, disable public access on the SageMaker endpoint by deploying it in a VPC, and configure the KMS key to rotate annually.
AnswerD

Correct: Addresses all requirements with customer managed key, VPC endpoint, and key rotation.

Why this answer

It addresses all compliance requirements: enabling S3 bucket encryption with a customer managed KMS key ensures PHI is encrypted at rest with a key that can be rotated annually, deploying the SageMaker endpoint in a VPC removes public internet access, and configuring annual KMS key rotation satisfies the rotation policy. This combination ensures encryption at rest and in transit (via VPC), restricts endpoint access to authorized applications only, and meets the key rotation requirement.

Exam trap

The trap here is that candidates confuse 'disabling public access' with 'using a VPC endpoint'—a VPC endpoint only allows private access to the endpoint from within the VPC, but the endpoint itself remains publicly accessible unless it is deployed inside a VPC with no internet gateway.

How to eliminate wrong answers

Option A is wrong because a SageMaker notebook instance with a lifecycle configuration does not encrypt data at rest in S3 or the endpoint, and restricting endpoint access via an IAM policy alone does not prevent public internet access—network-level controls like VPC are required. Option B is wrong because SSE-S3 uses AWS-managed keys that cannot be rotated annually by the customer, and a Lambda function cannot rotate an SSE-S3 key (S3 manages it automatically); also, it does not address endpoint public access. Option C is wrong because using an AWS managed key (SSE-KMS with AWS managed key) does not allow customer-controlled annual rotation—only customer managed KMS keys support customer-initiated rotation; additionally, disabling public access to the endpoint via a VPC endpoint is insufficient—the endpoint itself must be deployed in a VPC to remove internet exposure.

534
MCQeasy

A developer wants to generate product description images using Amazon Bedrock. They need to ensure the generated images match a specific brand style. Which feature should they primarily use?

A.Prompt engineering with detailed style descriptions.
B.Output grounding to verify brand compliance.
C.Data augmentation to increase dataset diversity.
D.Fine-tuning the image generation model on brand assets.
AnswerA

Prompt engineering is the simplest way to steer image generation toward a desired style.

Why this answer

Prompt engineering with detailed style descriptions is the primary and most direct method to guide Amazon Bedrock's image generation models (e.g., Stable Diffusion, Titan Image Generator) toward a specific brand style. By crafting precise prompts that include brand colors, design elements, and stylistic cues, the developer can influence the output without requiring additional training data or model modifications.

Exam trap

The trap here is that candidates may overestimate the necessity of fine-tuning (Option D) for style control, not realizing that prompt engineering is the primary, cost-effective feature for guiding image generation in Bedrock.

How to eliminate wrong answers

Option B is wrong because output grounding is a feature for verifying factual accuracy or source attribution in text generation (e.g., using citations), not for enforcing visual brand style compliance in image generation. Option C is wrong because data augmentation increases dataset diversity for training or fine-tuning, but it is not a feature used during inference to control the style of generated images in Bedrock. Option D is wrong because fine-tuning the image generation model on brand assets is possible but is not the primary feature; it requires additional cost, time, and expertise, whereas prompt engineering is the simplest and most immediate approach for style matching.

535
MCQeasy

What is the primary purpose of chunking in a Retrieval-Augmented Generation (RAG) pipeline?

A.To ensure each document segment is small enough to be meaningfully embedded and retrieved
B.To reduce the number of API calls to the embedding model
C.To encrypt the documents before embedding
D.To train the embedding model on domain-specific data
AnswerA

Correct. Chunking enables precise retrieval and prevents truncation of relevant content.

Why this answer

Chunking splits large documents into smaller, manageable pieces that can be individually embedded and retrieved. This ensures that the retrieved context is focused and fits within the model's context window.

536
MCQhard

An organization wants to use Amazon Rekognition to analyze images of people for a security application. They must comply with GDPR. What is the best practice?

A.Store images indefinitely for audit
B.Use celebrity recognition
C.Ensure all images are anonymized before analysis
D.Use face detection only
AnswerC

Anonymizing images (e.g., blurring faces) helps comply with privacy regulations like GDPR.

Why this answer

GDPR requires that personal data, including facial images, be processed lawfully and with appropriate safeguards. Anonymizing images before analysis with Amazon Rekognition ensures that the data cannot be linked back to an identifiable person, thereby reducing GDPR compliance risk. This aligns with the principle of data minimization and privacy by design.

Exam trap

AWS often tests the misconception that using a specific feature like celebrity recognition or face detection alone automatically satisfies compliance requirements, when in fact GDPR mandates data anonymization or pseudonymization as a best practice for processing biometric data.

How to eliminate wrong answers

Option A is wrong because storing images indefinitely violates GDPR's data retention limitation principle, which mandates that personal data be kept no longer than necessary for the processing purpose. Option B is wrong because celebrity recognition is designed to identify known public figures and does not address GDPR compliance for general image analysis; it may still process personal data without anonymization. Option D is wrong because face detection alone still processes biometric data that can be used to identify individuals, and without anonymization, it does not meet GDPR requirements for lawful processing.

537
MCQmedium

A machine learning team is training a model using Amazon SageMaker with data stored in an S3 bucket. The security policy requires that all data be encrypted at rest and in transit, and that the training job cannot access the internet. Which combination of settings should the team use?

A.Enable Network Isolation and use an S3 VPC Endpoint
B.Disable Network Isolation, place the training job in a private VPC subnet, and use an S3 VPC Endpoint
C.Enable Network Isolation and use a VPC with a NAT gateway
D.Disable Network Isolation and use a public VPC subnet
AnswerB

This allows the job to access S3 via the VPC endpoint without internet access, meeting the no-internet requirement.

Why this answer

SageMaker training jobs can be run in a VPC without internet access by disabling 'Enable Network Isolation' (which actually blocks all network access) and using a VPC with no NAT gateway or internet gateway. KMS encryption for both S3 and the attached ML storage volume ensures encryption at rest.

538
MCQmedium

A developer invoked an Amazon Bedrock model and received the following error: 'ValidationException: 1 validation error detected: Value 'claude-instant-v1' at 'modelId' failed to satisfy constraint: Member must satisfy enum value set: [ai21.j2-mid-v1, amazon.titan-text-lite-v1, anthropic.claude-v2, ...]'. What is the likely cause?

A.The Lambda function does not have the necessary IAM permissions
B.The modelId is not available in the current AWS region
C.The modelId is not part of the allowed enum of models for the account
D.The modelId is deprecated and has been renamed
AnswerC

The error explicitly states the value must satisfy the enum set, meaning the model ID is invalid or not in the allowed list.

Why this answer

The error message explicitly states that the value 'claude-instant-v1' at 'modelId' failed to satisfy the constraint: 'Member must satisfy enum value set'. This indicates that the modelId provided is not part of the allowed list of model identifiers that the Amazon Bedrock API accepts for the invocation request. The error is a validation error from the API itself, not a permissions or availability issue, meaning the modelId string does not match any entry in the predefined enum of supported models.

Exam trap

The trap here is that candidates confuse a validation error (enum constraint) with a regional availability or permissions issue, but the specific error message 'Member must satisfy enum value set' directly points to an invalid model identifier string, not a missing resource or authorization failure.

How to eliminate wrong answers

Option A is wrong because IAM permissions errors would produce an 'AccessDeniedException' or 'AuthorizationError', not a 'ValidationException' with an enum constraint message. Option B is wrong because if the modelId were not available in the current region, the error would typically be a 'ModelNotAvailableException' or a regional availability error, not a validation error about the enum value set. Option D is wrong because a deprecated or renamed modelId would either still be accepted with a deprecation warning or produce a 'ModelNotFoundException', but the error explicitly states the value failed the enum constraint, meaning it was never a valid entry in the allowed set.

539
MCQeasy

An organization wants to document their model's intended use, limitations, performance metrics, and ethical considerations. Which tool or practice is designed specifically for this purpose?

A.Amazon SageMaker Clarify
B.AWS CloudTrail
C.Amazon SageMaker Model Monitor
D.Model cards
AnswerD

Model cards are specifically designed to document model details in a transparent and standardized format.

Why this answer

Model cards are standardized documentation templates that include details like intended use, performance, limitations, and ethical considerations, promoting transparency.

540
MCQhard

A team is deploying a generative AI model for medical report generation. They must ensure patient data privacy and comply with HIPAA. Which AWS service feature is essential for de-identifying protected health information (PHI) before sending data to a foundation model?

A.AWS CloudHSM
B.Amazon Comprehend Medical
C.Amazon Macie
D.AWS Key Management Service (AWS KMS)
AnswerB

Comprehend Medical provides PHI detection and de-identification.

Why this answer

Amazon Comprehend Medical is the correct service because it is specifically designed to extract and de-identify protected health information (PHI) from unstructured medical text using natural language processing (NLP). It can detect entities such as patient names, dates, and medical record numbers, and then redact or replace them before the data is sent to a foundation model, ensuring HIPAA compliance.

Exam trap

The trap here is that candidates confuse general data protection services like Macie or encryption services like KMS with the specialized PHI de-identification capability of Amazon Comprehend Medical, assuming any security service can handle HIPAA compliance for generative AI workflows.

How to eliminate wrong answers

Option A is wrong because AWS CloudHSM provides hardware security modules (HSMs) for cryptographic key storage and operations, but it does not perform data de-identification or PHI detection. Option C is wrong because Amazon Macie is a data security service that discovers and protects sensitive data using machine learning and pattern matching, but it is designed for data classification and access control, not for de-identifying PHI in unstructured text for downstream AI processing. Option D is wrong because AWS Key Management Service (AWS KMS) manages encryption keys for data at rest and in transit, but it does not have the capability to identify or remove PHI from text content.

541
MCQeasy

A company uses Amazon Rekognition for facial analysis. They want to ensure the model doesn't exhibit bias based on skin tone. What should they do?

A.Ensure the training dataset includes diverse skin tones
B.Apply data augmentation to increase dataset size
C.Use a larger neural network
D.Use a pre-trained model from AWS Marketplace
AnswerA

Balanced representation mitigates bias.

Why this answer

Bias in facial analysis models, such as those used by Amazon Rekognition, often stems from imbalanced training data. By ensuring the training dataset includes diverse skin tones, the model learns to recognize features across all demographic groups, reducing performance disparities and promoting fairness. This directly addresses the root cause of bias in machine learning models.

Exam trap

The trap here is that candidates often confuse increasing dataset size (via augmentation or larger models) with ensuring dataset diversity, but without explicit inclusion of diverse skin tones, bias remains unaddressed.

How to eliminate wrong answers

Option B is wrong because data augmentation (e.g., rotating, flipping, or adjusting brightness) increases dataset size but does not guarantee the inclusion of diverse skin tones; it only creates variations of existing samples, which may still lack representation of underrepresented groups. Option C is wrong because using a larger neural network does not inherently reduce bias; it may even amplify biases present in the training data by learning more complex, potentially skewed patterns. Option D is wrong because a pre-trained model from AWS Marketplace may have been trained on a dataset that is not representative of the target population, and without auditing its training data for diversity, it could still exhibit bias based on skin tone.

542
MCQmedium

A developer encounters the error shown above when using Amazon Bedrock. What is the most likely cause?

A.The model is not available in the region
B.The IAM role lacks the required permission
C.The request is throttled
D.The model is out of service
AnswerB

The error explicitly states the role is not authorized for the action.

Why this answer

The error indicates an access denied or authorization failure when invoking the Amazon Bedrock model. The most likely cause is that the IAM role used by the developer does not have the required permission, such as `bedrock:InvokeModel`, attached to its policy. Without this permission, the API call to Bedrock is rejected regardless of model availability or service status.

Exam trap

AWS often tests the distinction between service availability errors and authorization errors, so the trap here is that candidates may confuse a permissions failure with a model unavailability or throttling issue, especially when the error message is generic.

How to eliminate wrong answers

Option A is wrong because if the model were not available in the region, the error would typically be a `ModelNotFoundException` or `ValidationException`, not an access denied error. Option C is wrong because throttling errors return a `ThrottlingException` with HTTP 429 status code, not an authorization error. Option D is wrong because if the model were out of service, the error would be a `ServiceUnavailableException` or `ModelNotReadyException`, not a permissions-related error.

543
MCQhard

A financial services firm is deploying a loan approval model and must comply with the EU AI Act, which classifies credit scoring as a high-risk AI system. Which combination of actions is required for such high-risk systems under the regulation?

A.Conduct a fundamental rights impact assessment and implement a human-in-the-loop review process
B.Implement Amazon Rekognition to monitor model inputs and outputs
C.Use SageMaker Model Monitor to detect data drift and retrain automatically
D.Obtain an ISO 27001 certification and deploy the model on AWS Outposts
AnswerA

The EU AI Act mandates human oversight for high-risk systems, and a fundamental rights impact assessment is required for credit scoring models used by financial institutions.

Why this answer

The EU AI Act requires high-risk systems to have human oversight (Article 14), technical documentation, risk management, and transparency. Among the options, only the one including human review and documentation meets these requirements.

544
MCQmedium

A company is deploying a generative AI application for customer support. They need to ensure that the model does not generate responses containing personally identifiable information (PII) even if it appears in the retrieved context. Which Bedrock feature should they configure?

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

Guardrails can detect and redact PII in both input prompts and model responses, ensuring compliance.

Why this answer

Bedrock Guardrails include PII detection and redaction. Knowledge Bases retrieve context but do not filter PII. Agents orchestrate tasks but do not enforce PII rules.

Model evaluation tests performance but does not provide runtime controls.

545
MCQhard

A company is deploying a machine learning model for real-time fraud detection. The model must have latency under 100ms. Which infrastructure choice is most appropriate?

A.Amazon SageMaker real-time endpoints
B.Amazon EC2 with Deep Learning AMI
C.Amazon SageMaker batch transform
D.Amazon SageMaker notebook instance
AnswerA

Real-time endpoints provide low-latency inference with automatic scaling.

Why this answer

Amazon SageMaker real-time endpoints are designed for low-latency inference, typically in the tens of milliseconds, making them suitable for real-time fraud detection where latency must be under 100ms. They deploy a model behind a persistent HTTPS endpoint that auto-scales to handle incoming requests with minimal delay.

Exam trap

The trap here is that candidates often confuse batch transform with real-time inference, assuming that any SageMaker inference capability can serve low-latency requests, but batch transform is explicitly asynchronous and designed for high-throughput, not low-latency.

How to eliminate wrong answers

Option B is wrong because Amazon EC2 with Deep Learning AMI requires manual setup of the inference server, scaling, and load balancing, which introduces operational overhead and cannot guarantee sub-100ms latency without significant custom engineering. Option C is wrong because Amazon SageMaker batch transform is designed for asynchronous, offline inference on large datasets, not for real-time, low-latency predictions. Option D is wrong because Amazon SageMaker notebook instance is an interactive development environment for building and testing models, not a production inference endpoint.

546
MCQhard

A team is using Amazon Bedrock to generate images from text prompts. The generated images often contain artifacts and do not match the prompt description. Which combination of steps should the team take to improve image quality?

A.Fine-tune the model using SageMaker Ground Truth and increase the training epochs.
B.Increase the max token count and use a larger model variant.
C.Refine the prompt with more descriptive language and adjust the CFG scale and inference steps.
D.Use a different foundation model and increase the image resolution.
AnswerC

Better prompts and tuning inference parameters directly improve image quality.

Why this answer

Refining the prompt with more descriptive language helps the model better interpret the user's intent, while adjusting the CFG (Classifier-Free Guidance) scale controls how strictly the model adheres to the prompt, and increasing inference steps allows the diffusion process to produce higher-quality, artifact-free images. These are standard hyperparameters in diffusion-based image generation models on Amazon Bedrock, directly addressing both artifacts and prompt mismatch.

Exam trap

AWS often tests the misconception that image quality issues are best solved by model retraining or changing the model, rather than by adjusting inference-time parameters like CFG scale and inference steps, which are the immediate and correct levers for prompt adherence and artifact reduction.

How to eliminate wrong answers

Option A is wrong because fine-tuning a model using SageMaker Ground Truth and increasing training epochs is a data labeling and retraining approach that is overkill and not directly applicable to improving inference-time image quality for a pre-trained Bedrock model; it also does not address prompt adherence or artifact reduction. Option B is wrong because increasing the max token count and using a larger model variant does not fix artifacts or prompt mismatch—max token count affects text generation length, not image quality, and a larger model may not inherently improve prompt alignment without prompt engineering. Option D is wrong because using a different foundation model and increasing image resolution may change output characteristics but does not systematically address artifacts or prompt mismatch; higher resolution can even amplify artifacts if the underlying generation process is not optimized.

547
MCQeasy

A data scientist is using Amazon SageMaker to train a large language model from scratch. Which AWS service is most suitable for managing the training infrastructure, including automatic scaling and spot instance recovery?

A.AWS Lambda function.
B.Amazon SageMaker Notebook instance.
C.Amazon SageMaker Training job.
D.Amazon EC2 with a custom setup.
AnswerC

SageMaker Training manages infrastructure, automatically recovers from spot interruptions, and scales.

Why this answer

Amazon SageMaker Training jobs are the most suitable service for managing training infrastructure because they provide built-in automatic scaling, managed spot instance recovery, and distributed training orchestration. This allows the data scientist to focus on model development rather than provisioning and managing EC2 instances, load balancers, or recovery scripts.

Exam trap

The AIF-C01 exam often tests the distinction between managed services (SageMaker Training) and unmanaged services (EC2 custom setup), where candidates mistakenly choose EC2 thinking they need full control, overlooking SageMaker's built-in spot recovery and scaling capabilities.

How to eliminate wrong answers

Option A is wrong because AWS Lambda functions are serverless compute services designed for short-running, event-driven tasks (max 15-minute execution time) and cannot manage long-running training jobs or infrastructure scaling. Option B is wrong because Amazon SageMaker Notebook instances are interactive development environments for prototyping and exploration, not designed to manage production training infrastructure or handle automatic scaling and spot instance recovery. Option D is wrong because Amazon EC2 with a custom setup requires manual provisioning, configuration of auto-scaling groups, and custom scripts for spot instance interruption handling, which is less efficient and more error-prone than SageMaker's managed training service.

548
MCQhard

Refer to the exhibit. A SageMaker real-time endpoint is experiencing increasing latency and memory errors after running for a few hours. What is the most likely cause and recommended fix?

A.Scale the endpoint to a larger instance type, such as ml.r5.large
B.Enable auto-scaling to add instances during high load
C.Use SageMaker Debugger to identify and fix a memory leak in the inference code
D.Use SageMaker Model Monitor to detect data drift
AnswerC

The increasing memory usage over time indicates a leak; Debugger can help identify the issue.

Why this answer

The symptoms—increasing latency and memory errors after running for a few hours—point to a memory leak in the inference code. SageMaker Debugger can monitor system metrics like memory utilization and detect anomalies, helping to identify the root cause of the leak. Fixing the memory leak directly resolves the progressive degradation, whereas scaling or auto-scaling only masks the symptom.

Exam trap

The AIF-C01 exam often tests the distinction between scaling solutions (which address capacity) and debugging tools (which address code defects), trapping candidates who confuse symptom relief with root cause resolution.

How to eliminate wrong answers

Option A is wrong because scaling to a larger instance type (e.g., ml.r5.large) provides more memory but does not address the underlying memory leak; the leak will eventually exhaust the larger memory pool as well. Option B is wrong because enabling auto-scaling adds more instances to handle load, but it does not fix the memory leak in the inference code; each instance will still experience the same progressive memory exhaustion. Option D is wrong because SageMaker Model Monitor detects data drift (changes in input data distribution), not memory leaks or latency issues caused by code defects.

549
MCQhard

An e-commerce company is using a foundation model to generate product descriptions. They want to reduce costs by caching frequently requested descriptions. Which AWS service should they use to implement a cache?

A.Amazon CloudFront
B.Amazon DynamoDB
C.Amazon S3
D.Amazon ElastiCache
AnswerD

ElastiCache provides low-latency caching for frequently used data.

Why this answer

Amazon ElastiCache is the correct choice because it provides an in-memory caching layer (using Redis or Memcached) that can store frequently requested product descriptions, reducing the need to invoke the foundation model repeatedly. This directly lowers inference costs and latency by serving cached responses instead of generating new ones each time.

Exam trap

The AIF-C01 exam often tests the distinction between caching at the application layer (ElastiCache) versus caching at the content delivery layer (CloudFront), leading candidates to mistakenly choose CloudFront for any caching need.

How to eliminate wrong answers

Option A is wrong because Amazon CloudFront is a content delivery network (CDN) that caches static and dynamic content at edge locations, but it is not designed for application-level caching of model-generated text; it caches HTTP responses, not arbitrary key-value data. Option B is wrong because Amazon DynamoDB is a fully managed NoSQL database optimized for high-throughput, low-latency reads and writes, but it is not a caching service; using it as a cache would incur higher costs and lack native TTL-based eviction policies for transient data. Option C is wrong because Amazon S3 is an object storage service for storing large amounts of unstructured data, not a low-latency cache; retrieving descriptions from S3 would introduce significant latency compared to an in-memory cache, defeating the purpose of cost reduction.

550
MCQmedium

A company uses Amazon Bedrock to generate marketing content. They want to reduce costs while maintaining response quality. Which action is most effective?

A.Fine-tune a larger model to improve accuracy and reduce retries.
B.Increase the temperature parameter to get shorter responses.
C.Select a smaller foundation model that still meets accuracy requirements.
D.Cache previous responses to reuse for similar prompts.
AnswerC

Smaller models have lower per-token costs and are faster.

Why this answer

The most effective cost-reduction strategy because smaller foundation models (FMs) have fewer parameters, resulting in lower compute and inference costs per request. If the smaller model still meets the required accuracy benchmarks for the marketing content task, it directly reduces operational expenditure without sacrificing quality. Amazon Bedrock offers a range of FMs (e.g., from large models like Claude 3 Opus to smaller ones like Claude 3 Haiku), allowing you to match model size to task complexity.

Exam trap

The trap here is that candidates confuse cost-reduction strategies with performance-enhancing strategies, assuming that fine-tuning or caching always saves money, when in fact the most direct lever is selecting the smallest capable model for the job.

How to eliminate wrong answers

Option A is wrong because fine-tuning a larger model increases training costs and still incurs higher per-inference costs due to the larger model size; retries are not a guaranteed cost driver, and fine-tuning does not inherently reduce inference cost. Option B is wrong because increasing the temperature parameter makes responses more random and potentially longer, not shorter; temperature controls creativity, not response length, and higher temperature often leads to more verbose or divergent outputs. Option D is wrong because caching previous responses is a latency optimization, not a cost reduction strategy; it does not reduce the per-request inference cost of generating new responses, and reusing cached responses may produce stale or irrelevant content for dynamic marketing prompts.

551
MCQhard

A financial institution is deploying a fraud detection model using Amazon SageMaker. The model must be able to handle sudden spikes in inference requests during promotional events while keeping costs low. The team wants to use a serverless architecture to avoid provisioning idle capacity and to scale automatically from zero. However, the inference latency requirement is under 5 seconds for each request. Which SageMaker inference option should they choose?

A.Use Amazon SageMaker Serverless Inference
B.Use Amazon SageMaker Multi-Model Endpoints
C.Use Amazon SageMaker real-time endpoints with auto-scaling
D.Use Amazon SageMaker Asynchronous Inference
AnswerA

Serverless Inference scales automatically from zero and reduces costs during idle periods.

Why this answer

Amazon SageMaker Serverless Inference is the correct choice because it automatically scales from zero to handle sudden spikes in inference requests, aligning with the requirement to avoid provisioning idle capacity. It also meets the sub-5-second latency requirement for fraud detection, as it is designed for low-latency, on-demand inference without managing underlying infrastructure.

Exam trap

AWS often tests the misconception that serverless inference cannot meet low-latency requirements, but SageMaker Serverless Inference is specifically designed for sub-second to few-second latency, making it suitable for real-time fraud detection scenarios.

How to eliminate wrong answers

Option B is wrong because Multi-Model Endpoints require provisioned instances and do not scale from zero; they are designed to host multiple models on a single endpoint but still incur costs for idle capacity. Option C is wrong because real-time endpoints with auto-scaling still require a baseline of provisioned instances, which can lead to idle capacity costs during low-traffic periods, and they do not scale from zero. Option D is wrong because Asynchronous Inference is intended for large payloads and longer processing times (typically minutes), not for sub-5-second latency requirements, and it queues requests rather than providing real-time responses.

552
MCQmedium

A developer is building a multi-step reasoning agent using Amazon Bedrock Agents. The agent needs to first check inventory levels via a database query, then call a shipping API to calculate delivery dates, and finally compose a response. How should the developer define the tool integrations?

A.Define two separate Lambda functions and let the agent orchestrate them via a custom step function
B.Use Amazon SageMaker Pipelines to orchestrate the steps
C.Create action groups for the database query and the shipping API, and configure the agent to use them in its orchestration
D.Embed the logic in a single Lambda function that calls both the database and shipping API
AnswerC

Action groups are the correct abstraction for tool integration in Bedrock Agents.

Why this answer

Amazon Bedrock Agents natively support multi-step reasoning through action groups, which allow the agent to invoke external tools (e.g., a database query and a shipping API) as discrete steps in its orchestration. The agent uses its built-in chain-of-thought reasoning to decide when to call each action group and how to compose the final response, without requiring external orchestrators like Step Functions or SageMaker Pipelines.

Exam trap

The trap here is that candidates may assume multi-step orchestration always requires an external workflow engine like Step Functions, when in fact Bedrock Agents provide built-in orchestration through action groups and chain-of-thought reasoning.

How to eliminate wrong answers

Option A is wrong because defining two separate Lambda functions and orchestrating them via a custom step function bypasses Bedrock Agents' native orchestration capabilities, adding unnecessary complexity and losing the agent's built-in reasoning and state management. Option B is wrong because Amazon SageMaker Pipelines is designed for ML training and batch inference workflows, not for real-time, multi-step reasoning orchestration in a conversational agent. Option D is wrong because embedding all logic in a single Lambda function violates the modular design principle of Bedrock Agents, preventing the agent from independently reasoning about each step and reducing flexibility for future changes.

553
Multi-Selectmedium

Which THREE of the following are factors to consider when selecting a foundation model for a text generation task?

Select 3 answers
A.Supported output modalities
B.Pricing per token
C.Model size (parameters)
D.Training data source and diversity
E.Availability of automatic scaling
AnswersB, C, D

Cost per token affects operational expense.

Why this answer

Pricing per token is a critical factor because foundation model APIs (e.g., Amazon Bedrock, OpenAI) charge based on the number of input and output tokens. For text generation tasks, token costs directly impact operational budgets, especially for high-volume or long-context applications. Selecting a model with lower per-token pricing can significantly reduce inference costs without sacrificing quality.

Exam trap

AWS often tests the distinction between model-level attributes (e.g., token pricing, training data, parameter count) and platform-level operational features (e.g., scaling, output modalities), leading candidates to incorrectly select options like automatic scaling or multimodal support for a text-only task.

554
MCQmedium

A company uses Amazon Bedrock to generate summarizations of lengthy reports. Users report that the summaries are too verbose and include excessive detail. Which prompt engineering technique should the team apply to address this issue?

A.Reduce the input context length to limit available information.
B.Increase the maxTokens parameter in the inference request.
C.Include few-shot examples of desired outputs.
D.Add explicit constraints like 'Provide a concise summary in two sentences.'
AnswerD

Explicit constraints directly guide the model to produce shorter output, addressing verbosity effectively.

Why this answer

Adding explicit constraints like 'Provide a concise summary in two sentences' directly instructs the model to limit verbosity and detail. This prompt engineering technique uses clear, specific instructions to control output length and style, which is the most effective way to address overly verbose summaries without altering model parameters or input data.

Exam trap

The trap here is that candidates confuse reducing input length (Option A) with controlling output length, or they mistakenly think increasing maxTokens (Option B) can somehow shorten output, when in fact it does the opposite.

How to eliminate wrong answers

Option A is wrong because reducing input context length does not guarantee concise output; the model may still generate verbose summaries from the remaining text, and it risks losing critical information needed for accurate summarization. Option B is wrong because increasing the maxTokens parameter actually allows the model to generate longer outputs, which would exacerbate the verbosity issue rather than solve it. Option C is wrong because few-shot examples can guide output format but are less direct and reliable than explicit constraints; they may not consistently enforce conciseness, especially if the examples themselves are not perfectly aligned with the desired brevity.

555
MCQhard

A developer is building a RAG application on Amazon Bedrock. They notice that the model sometimes generates answers that are not supported by the retrieved documents. To reduce this, they want to enforce that the model only uses the provided context. Which Bedrock feature should they use?

A.Enable 'grounding' in Bedrock Guardrails
B.Increase the number of retrieved documents
C.Use a larger context window model
D.Adjust the temperature parameter to 0
AnswerA

Grounding check forces the model to stick to the retrieved context.

Why this answer

Bedrock Guardrails' grounding check ensures the model's response is grounded in the provided source documents, reducing hallucinations. The other options do not enforce grounding.

556
MCQmedium

A company uses Amazon Bedrock and needs to log all model invocations for audit purposes. The logs must be stored in a central S3 bucket and also sent to CloudWatch Logs for real-time monitoring. Which configuration should they use?

A.Enable Amazon Macie to monitor Bedrock responses
B.Enable AWS CloudTrail to capture Bedrock API calls and configure CloudTrail logs to S3 and CloudWatch
C.Use AWS Lambda to capture responses and write to S3 and CloudWatch
D.Configure Amazon Bedrock model invocation logging to send logs to both S3 and CloudWatch Logs
AnswerD

Bedrock supports logging model invocations to S3 and CloudWatch for audit and monitoring.

Why this answer

Bedrock model invocation logging can be configured to send logs to both S3 and CloudWatch Logs simultaneously. This is a built-in feature of Bedrock logging settings.

557
MCQeasy

A team is evaluating a classification model. The confusion matrix shows: TP=80, FN=20, FP=10, TN=90. What is the precision?

A.0.89
B.0.75
C.0.80
D.0.90
AnswerA

Precision = 80/(80+10) = 0.8889 ≈ 0.89.

Why this answer

Precision is calculated as TP / (TP + FP). Here, TP=80 and FP=10, so precision = 80 / (80 + 10) = 80 / 90 = 0.888..., which rounds to 0.89. This metric measures the proportion of positive identifications that were actually correct.

Exam trap

The AIF-C01 exam often tests the distinction between precision and recall by providing confusion matrix values that make one metric easy to miscalculate if you confuse the denominator (TP+FP vs TP+FN).

How to eliminate wrong answers

Option B (0.75) is wrong because it incorrectly uses FN in the denominator, likely confusing precision with recall (TP / (TP + FN)). Option C (0.80) is wrong because it uses only TP divided by the total number of actual positives (TP + FN), which is recall, not precision. Option D (0.90) is wrong because it uses TN in the denominator or calculates accuracy (TP + TN) / total, which is not precision.

558
MCQmedium

A company has deployed a machine learning model using Amazon SageMaker and wants to monitor the model for bias over time. Which SageMaker feature should they use to detect bias in the model's predictions after deployment?

A.SageMaker Debugger
B.SageMaker Model Monitor
C.SageMaker Clarify
D.SageMaker Role Manager
AnswerC

Clarify provides bias detection and explainability for ML models.

Why this answer

SageMaker Clarify is designed to detect bias in ML models both before and after deployment. It can analyze predictions to identify potential bias against certain groups.

559
MCQeasy

A company develops a chatbot using Amazon Lex. To ensure transparency, what should the chatbot do when it cannot answer a question?

A.Remain silent and wait for the next input
B.Provide a random answer from a predefined list
C.Clearly state that it cannot answer and offer alternatives
D.Automatically escalate all unanswered questions to a human
AnswerC

Honest communication builds trust.

Why this answer

Responsible AI guidelines, including those from AWS for Amazon Lex, require that when a chatbot cannot answer a question, it should clearly state its inability and offer alternatives (e.g., rephrasing the query or providing related topics). This maintains transparency and user trust, aligning with the 'Explainability' principle under the Guidelines for Responsible AI.

Exam trap

AWS often tests the misconception that a chatbot should always escalate or remain passive when it cannot answer, but the correct approach under responsible AI is to acknowledge the limitation and offer alternatives, not to hide or mislead.

How to eliminate wrong answers

Option A is wrong because remaining silent and waiting for the next input violates transparency and can confuse users, as it provides no feedback or guidance. Option B is wrong because providing a random answer from a predefined list is deceptive and can mislead users, undermining the principle of honesty and accountability in AI. Option D is wrong because automatically escalating all unanswered questions to a human is inefficient and not always necessary; the chatbot should first attempt to offer alternatives or clarify before escalation, as per responsible AI practices.

560
MCQeasy

A data scientist wants to restrict which IAM roles can invoke a specific Amazon Bedrock base model. Which AWS feature should they use?

A.S3 bucket policy on the model artifacts
B.Bedrock resource-based policy
C.AWS KMS key policy for the encryption key
D.AWS CloudTrail log delivery policy
AnswerB

Bedrock resource policies are applied to the model resource itself and can restrict invocation to specific IAM roles.

Why this answer

Bedrock resource policies allow you to attach fine-grained permissions to a specific model, specifying which principals (IAM roles) can invoke it.

561
Multi-Selectmedium

A developer is using Amazon Bedrock to generate responses from a foundation model and wants to receive the output as a stream to improve user experience. Which TWO statements about streaming responses are correct? (Select TWO.)

Select 2 answers
A.Streaming reduces perceived latency by displaying partial results as they are generated
B.Streaming is supported by the Converse API
C.Streaming returns the entire response at once
D.Streaming is supported by the InvokeModel API
E.Streaming cannot be used with temperature or max_tokens parameters
AnswersA, B

Users see output sooner, improving responsiveness.

Why this answer

Streaming in Amazon Bedrock allows the model to send partial response chunks as they are generated, which reduces the time until the first token is displayed to the user. This improves perceived latency and creates a more responsive user experience, especially for long-form text generation.

Exam trap

The trap here is that candidates often confuse the InvokeModel API with the InvokeModelWithResponseStream API, assuming that the standard InvokeModel supports streaming when it does not.

562
MCQeasy

Which AWS service can be used to create human review workflows for high-risk AI predictions, ensuring a human-in-the-loop?

A.Amazon SageMaker Clarify
B.Amazon Augmented AI (A2I)
C.AWS Glue
D.AWS Step Functions
AnswerB

A2I provides built-in human review workflows for machine learning predictions.

Why this answer

Amazon Augmented AI (A2I) is the service designed to set up human review workflows for AI predictions, enabling human oversight when needed.

563
Multi-Selecteasy

A company uses Amazon Bedrock to build a generative AI application. They need to secure the application by restricting access to the model and preventing sensitive data from being stored in prompts. Which TWO actions should they take? (Choose two.)

Select 2 answers
A.Enable VPC Flow Logs for Bedrock.
B.Enable AWS CloudTrail to log all Bedrock API calls.
C.Use Amazon Bedrock Guardrails to define content filters and deny topics.
D.Implement IAM policies that allow only specific users to invoke the model.
E.Use AWS KMS to encrypt the model data.
AnswersC, D

Guardrails can filter sensitive data and enforce content policies.

Why this answer

Amazon Bedrock Guardrails (Option C) directly addresses the need to prevent sensitive data from being stored in prompts by allowing you to define content filters, deny topics, and configure sensitive information filters that block or mask such data before it reaches the model. This is the native service feature designed for content safety and data leakage prevention.

Exam trap

AWS often tests the distinction between logging/auditing services (CloudTrail, VPC Flow Logs) and actual security enforcement mechanisms (Guardrails, IAM), leading candidates to confuse observability with prevention.

564
Multi-Selecteasy

Which TWO AWS services can be used together to build a chatbot that leverages a foundation model for natural language understanding?

Select 2 answers
A.Amazon Rekognition
B.Amazon Lex
C.Amazon Polly
D.AWS Glue
E.Amazon Bedrock
AnswersB, E

Lex handles dialog management and intent recognition.

Why this answer

Amazon Lex provides the conversational interface and natural language understanding (NLU) to interpret user intents and manage dialog, while Amazon Bedrock gives access to foundation models (FMs) for advanced natural language generation and understanding. Together, Lex can route utterances to a Bedrock FM via a Lambda function or direct integration, enabling a chatbot that leverages a pre-trained FM for richer responses.

Exam trap

AWS often tests the distinction between services that handle conversational interfaces (Lex) versus those that provide generative AI models (Bedrock), tempting candidates to pick Polly (speech output) or Rekognition (vision) as part of a chatbot, when they are not core to NLU or FM integration.

565
MCQhard

A company is using a machine learning model to predict employee turnover. The model's predictions are used to identify at-risk employees for retention efforts. The company wants to ensure that the model does not inadvertently discriminate against employees based on age. Which metric should be used to measure fairness across age groups?

A.Equalized odds
B.SHAP feature importance
C.Disparate impact ratio
D.Demographic parity
AnswerA

Equalized odds ensures equal true positive and false positive rates across groups.

Why this answer

Equalized odds requires that the model's true positive rate and false positive rate are equal across groups, which is appropriate for binary outcomes like turnover prediction.

566
MCQhard

A team is training a deep learning model using Horovod distributed training on SageMaker. They observe that the loss stops decreasing after a few epochs. Which technique should they implement to reduce overfitting?

A.Increase learning rate
B.Add more layers to the model
C.Reduce the number of epochs
D.Use dropout regularization
AnswerD

Dropout is a regularization technique that reduces overfitting.

Why this answer

Dropout regularization randomly drops a fraction of neurons during training, which prevents the model from relying too heavily on specific features and forces it to learn more robust representations. This directly addresses overfitting, which is the likely cause of the loss plateauing after a few epochs in a Horovod distributed training setup on SageMaker.

Exam trap

The AIF-C01 exam often tests the misconception that early stopping (reducing epochs) is a regularization technique to reduce overfitting, but the trap here is that early stopping only halts training and does not actively prevent the model from memorizing noise during the epochs it does train.

How to eliminate wrong answers

Option A is wrong because increasing the learning rate can cause the optimizer to overshoot minima, leading to divergence or unstable training, not a reduction in overfitting. Option B is wrong because adding more layers increases model capacity, which typically worsens overfitting by making it easier for the model to memorize noise. Option C is wrong because reducing the number of epochs only stops training earlier; it does not address the underlying overfitting issue, and the loss may still plateau due to memorization rather than convergence.

567
Multi-Selectmedium

A company is building a generative AI application using Amazon Bedrock. They need to implement a RAG pipeline that ingests PDF documents, processes them, and stores embeddings for retrieval. Which THREE steps are essential in this pipeline?

Select 3 answers
A.Fine-tuning an LLM on the ingested documents
B.Chunking the documents into smaller pieces
C.Storing the embeddings in a vector store such as Amazon OpenSearch Serverless
D.Generating embeddings for each chunk using an embedding model
E.Augmenting the prompt with retrieved chunks at query time
AnswersB, C, D

Chunking is necessary to break large documents into segments that can be embedded and retrieved accurately.

Why this answer

Document ingestion involves chunking documents into manageable pieces, generating embeddings for each chunk, and storing those embeddings in a vector store for similarity search. Prompt augmentation is part of the retrieval step, not ingestion.

568
Multi-Selecthard

A company wants to build a system that automatically routes support tickets to the appropriate department based on the text description. They have labeled historical data. Which THREE AWS services could be used to implement this solution? (Select THREE.)

Select 3 answers
A.Amazon Comprehend
B.Amazon SageMaker
C.Amazon Rekognition
D.Amazon Polly
E.Amazon Lex
AnswersA, B, E

Comprehend's custom classification can be trained on historical tickets to predict department.

Why this answer

Amazon Comprehend is a natural language processing (NLP) service that can analyze text to extract insights such as sentiment, key phrases, and custom classification. By training a custom classifier on labeled historical support ticket data, Comprehend can automatically route tickets to the appropriate department based on the text description, making it a direct fit for this use case.

Exam trap

The trap here is that candidates may confuse Amazon Rekognition (image/video analysis) or Amazon Polly (text-to-speech) with text classification services, but the key is to recognize that only services with NLP or ML training capabilities (Comprehend, SageMaker, Lex) can handle text-based routing.

569
MCQeasy

A company uses Amazon Bedrock Agents to build an agent that interacts with users through a chat interface. The agent is configured with a knowledge base containing product documentation. Sometimes the agent fails to answer simple questions like 'What is your return policy?' and instead says it cannot find the answer. The knowledge base does contain the return policy. What is the most likely reason?

A.Increase the agent's maximum timeout for processing
B.Use a more powerful foundation model for reasoning
C.Add more documents to the knowledge base
D.Simplify and clarify the agent's instruction prompt to emphasize knowledge base usage
AnswerD

A clear prompt instructing the agent to consult the knowledge base for all answers can dramatically improve consistency.

Why this answer

The agent's instruction prompt might be too complex or not explicitly directing the agent to use the knowledge base. Simplifying the prompt to clearly instruct the agent to first search the knowledge base can resolve the issue. Increasing timeout or adding more data is unnecessary.

A stronger model may help but is not the root cause.

570
MCQhard

A team is fine-tuning a foundation model using SageMaker. They want to minimize training time while keeping the model's original knowledge. Which technique is BEST suited?

A.Use Parameter Efficient Fine-Tuning (PEFT) such as LoRA
B.Use distributed training across multiple GPUs
C.Use prompt engineering instead of fine-tuning
D.Full fine-tuning on the new dataset
AnswerA

PEFT methods adapt the model with fewer trainable parameters, reducing training time and preserving original knowledge.

Why this answer

Parameter Efficient Fine-Tuning (PEFT) methods like LoRA (Low-Rank Adaptation) are best suited because they freeze the pre-trained model weights and inject trainable low-rank matrices into specific layers, drastically reducing the number of trainable parameters. This minimizes training time and computational cost while preserving the model's original knowledge, as only a small fraction of parameters are updated during fine-tuning.

Exam trap

AWS often tests the distinction between techniques that modify the model (fine-tuning) versus those that only change the input (prompt engineering), and the trap here is that candidates may choose distributed training (Option B) thinking it reduces time, but it does not address parameter efficiency or knowledge preservation as directly as PEFT.

How to eliminate wrong answers

Option B is wrong because distributed training across multiple GPUs accelerates training but does not inherently preserve the model's original knowledge or reduce the number of updated parameters; it still requires full or partial parameter updates and does not address the goal of minimizing training time through parameter efficiency. Option C is wrong because prompt engineering is a zero-shot or few-shot inference technique that does not involve training at all, so it cannot be used to fine-tune the model on a new dataset. Option D is wrong because full fine-tuning updates all model parameters, which is computationally expensive, time-consuming, and risks catastrophic forgetting of the original knowledge, contrary to the goal of minimizing training time while preserving original knowledge.

571
MCQmedium

A team is deploying a sentiment analysis application using Amazon Bedrock. They need to ensure the model returns only 'positive', 'negative', or 'neutral'. Which prompt engineering technique is BEST suited for this requirement?

A.Use a chain-of-thought prompt to reason about sentiment
B.Provide few-shot examples of the three labels in the prompt
C.Use a Bedrock Guardrail to block any response not matching the three labels
D.Include an instruction like 'Classify the sentiment as one of: positive, negative, neutral. Output only that word.'
AnswerD

Clear instruction with constrained output is the most direct prompt engineering technique.

Why this answer

It directly constrains the model's output format using a clear, explicit instruction. This is the most reliable prompt engineering technique for enforcing a strict set of allowed labels, as it leverages the model's instruction-following capability without relying on reasoning chains or external filtering.

Exam trap

A common misconception is that Bedrock Guardrails can be used to enforce output format constraints like restricting responses to specific words. However, Guardrails are designed for content safety and policy-based filtering, not for controlling the structure or vocabulary of model responses. The correct approach is to use clear instructions in the prompt.

How to eliminate wrong answers

Option A is wrong because chain-of-thought prompting encourages the model to output intermediate reasoning steps, which can produce verbose or off-label text, not a constrained single-word output. Option B is wrong because few-shot examples guide the model by analogy but do not guarantee the model will not output other labels, especially if the prompt is ambiguous or the model overgeneralizes. Option C is wrong because Bedrock Guardrails are designed to filter content based on policies (e.g., toxicity, PII) and cannot enforce a specific output format or vocabulary like 'positive', 'negative', or 'neutral'.

572
Multi-Selecthard

A company is implementing an AI governance framework for their machine learning models deployed on Amazon SageMaker. Which THREE actions should they include to manage the model lifecycle effectively? (Select THREE.)

Select 3 answers
A.Enable Amazon CloudWatch alarms for model accuracy metrics
B.Automatically delete all previous model versions after deployment
C.Create a decommissioning policy that retires old models
D.Use AWS CloudTrail to track model inference requests
E.Use SageMaker Model Registry to version models
AnswersA, C, E

Monitoring for drift is essential; CloudWatch can alert on accuracy drops.

Why this answer

Model versioning tracks changes, monitoring for drift ensures performance, and a decommissioning process retires outdated models. These are key lifecycle management practices.

573
Multi-Selectmedium

A developer is evaluating generative AI models for a code generation task. Which THREE metrics are commonly used for automated evaluation of generated code? (Choose THREE.)

Select 3 answers
A.BERTScore
B.BLEU
C.ROUGE
D.Human evaluation score
E.Perplexity
AnswersA, B, C

BERTScore uses embeddings to compute similarity and is applicable to code.

Why this answer

Common automated metrics for code generation include BLEU (n-gram overlap), ROUGE (recall-oriented), and BERTScore (contextual similarity). Perplexity is for language modeling, and human evaluation is not automated. Note: While ROUGE and BLEU originate from NLP, they are also used for code generation evaluation.

574
MCQeasy

A startup with limited ML expertise wants to quickly prototype a binary classification model using a small customer dataset. They need a managed environment to run Jupyter notebooks and access pre-built algorithms. Which AWS service should they choose?

A.AWS Lambda
B.Amazon SageMaker
C.Amazon EMR
D.AWS Glue
AnswerB

SageMaker provides managed notebooks and built-in algorithms for quick experimentation.

Why this answer

Amazon SageMaker is the correct choice because it provides a fully managed environment for Jupyter notebooks and includes built-in, pre-built algorithms for binary classification. This allows the startup to quickly prototype without deep ML expertise, as SageMaker handles infrastructure, scaling, and model training.

Exam trap

The AIF-C01 exam often tests the distinction between managed ML platforms (SageMaker) and general-purpose compute or data processing services (Lambda, EMR, Glue), leading candidates to pick a service that can run code but lacks the specific notebook and pre-built algorithm capabilities required.

How to eliminate wrong answers

Option A is wrong because AWS Lambda is a serverless compute service for running code in response to events, not a managed environment for Jupyter notebooks or pre-built ML algorithms. Option C is wrong because Amazon EMR is a big data processing service using frameworks like Apache Spark and Hadoop, not designed for interactive Jupyter notebook-based ML prototyping with pre-built algorithms. Option D is wrong because AWS Glue is a serverless data integration and ETL service, not a platform for running Jupyter notebooks or accessing pre-built ML models.

575
MCQmedium

A company deploys a machine learning model for resume screening. They want to measure whether the model selects candidates proportionally across different demographic groups. Which fairness metric is most appropriate?

A.Demographic parity
B.Disparate impact
C.Accuracy parity
D.Equalized odds
AnswerB

Disparate impact measures the ratio of selection rates between groups, often using the 'four-fifths rule' (rate of protected group >= 0.8 times rate of majority group). It is a standard metric for fairness in hiring.

Why this answer

Disparate impact measures the ratio of favorable outcomes between groups, commonly used to assess whether a selection process disproportionately affects a protected group.

576
MCQmedium

A media company runs batch inference jobs to generate captions for thousands of images weekly using a foundation model on Amazon Bedrock. They want to minimize costs while maintaining predictable throughput. Which pricing option should they choose?

A.SageMaker Batch Transform
B.On-demand inference
C.Provisioned Throughput
D.Spot instances (EC2 Spot)
AnswerC

Reserves capacity for a model, providing consistent performance and lower per-token cost for large batches.

Why this answer

Provisioned Throughput on Amazon Bedrock is the correct choice because it reserves a specified level of inference capacity for a foundation model, ensuring predictable throughput for batch workloads while offering a lower per-inference cost compared to on-demand pricing. This option is ideal for the media company's weekly batch inference jobs, as it minimizes costs by committing to a consistent volume of requests without the variability of spot instances or the higher per-request expense of on-demand inference.

Exam trap

The trap here is that candidates often confuse SageMaker Batch Transform or EC2 Spot instances with Bedrock's native pricing options, failing to recognize that Provisioned Throughput is the only Bedrock-specific offering that guarantees predictable throughput and cost efficiency for batch inference workloads.

How to eliminate wrong answers

Option A is wrong because SageMaker Batch Transform is a service for running batch predictions on SageMaker-hosted models, not for Bedrock foundation models, and it does not directly offer the throughput guarantees or cost optimization for Bedrock's API-based inference. Option B is wrong because on-demand inference on Bedrock charges per request with no capacity reservation, leading to higher costs for predictable, high-volume batch workloads and potential variability in throughput due to resource contention. Option D is wrong because Spot instances (EC2 Spot) are designed for EC2 compute capacity, not for Bedrock's managed inference service, and they introduce the risk of interruptions, which is unsuitable for batch jobs requiring predictable throughput and completion.

577
MCQmedium

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

A.Train a custom model from scratch on the policy documents each month
B.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
C.Fine-tune a base LLM on the policy documents monthly
D.Use a larger foundation model with a longer context window and paste all documents into each prompt
AnswerB

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

578
MCQmedium

A data scientist is building a binary classification model for fraud detection. The dataset is highly imbalanced (99% legitimate, 1% fraud). Which metric is most appropriate to evaluate model performance?

A.Accuracy
B.F1-score
C.Recall
D.Precision
AnswerB

F1-score is the harmonic mean of precision and recall, providing a balanced evaluation for imbalanced datasets.

Why this answer

In highly imbalanced datasets (99% legitimate, 1% fraud), accuracy is misleading because a model that predicts all transactions as legitimate would achieve 99% accuracy but fail to detect any fraud. The F1-score is the harmonic mean of precision and recall, providing a balanced measure that accounts for both false positives and false negatives, making it the most appropriate metric for evaluating fraud detection models.

Exam trap

The AIF-C01 exam often tests the misconception that accuracy is always the best metric, especially when candidates overlook the impact of class imbalance on model evaluation.

How to eliminate wrong answers

Option A is wrong because accuracy is not suitable for imbalanced datasets; it can be artificially high (e.g., 99%) even if the model never identifies any fraud, as it only measures overall correct predictions. Option C is wrong because recall alone (true positive rate) ignores false positives; a model that predicts all transactions as fraud would have perfect recall but terrible precision, leading to many false alarms. Option D is wrong because precision alone ignores false negatives; a model that predicts only one transaction as fraud (and gets it right) could have 100% precision but miss the other 99 fraud cases, failing the detection goal.

579
Multi-Selecthard

A company is deploying an Amazon Lex chatbot that processes customer credit card information. The company must ensure that the chatbot does not log sensitive data and that the data is encrypted in transit. Which THREE actions should the company take? (Choose THREE.)

Select 3 answers
A.Ensure the Amazon Lex endpoint uses HTTPS for all API calls
B.Enable audio logging in Amazon Lex with content redaction enabled
C.Enable CloudTrail data events for the Lex bot to capture conversation logs
D.Enable S3 server access logs on the bucket storing the Lex bot configuration
E.Configure the Amazon Lex bot to use obfuscation for the credit card slot type
AnswersA, B, E

HTTPS encrypts data in transit.

Why this answer

Amazon Lex endpoints support HTTPS, which encrypts data in transit using TLS. By ensuring all API calls use HTTPS, the company protects sensitive credit card information from being intercepted during communication between the client and the Lex service.

Exam trap

The trap here is that candidates may confuse CloudTrail data events (which log API activity) with conversation logging (which captures user utterances), leading them to incorrectly select option C as a solution for preventing sensitive data logging.

580
MCQhard

A data scientist is fine-tuning a foundation model on a custom dataset using Amazon SageMaker. After training, the model shows high accuracy on training data but poor on validation. Which action should be taken?

A.Add dropout layers
B.Reduce training epochs or add regularization
C.Increase learning rate
D.Use a different foundation model
AnswerB

Reducing epochs prevents overfitting; regularization also helps.

Why this answer

The model is overfitting, as indicated by high training accuracy but poor validation performance. Reducing training epochs or adding regularization (e.g., L1/L2 weight decay) directly addresses overfitting by limiting the model's capacity to memorize noise. In Amazon SageMaker, this can be implemented via hyperparameter tuning or by modifying the training script to include regularization terms.

Exam trap

AWS often tests the misconception that overfitting is solved by increasing model complexity or data augmentation, but the correct approach is to reduce capacity or add regularization.

How to eliminate wrong answers

Option A is wrong because adding dropout layers is a regularization technique that could help, but it is not the only or most direct action; the question asks for a single action, and reducing epochs or adding regularization (Option B) is a more fundamental fix for overfitting. Option C is wrong because increasing the learning rate can cause the model to diverge or overshoot minima, worsening generalization and potentially increasing overfitting. Option D is wrong because using a different foundation model does not address the root cause of overfitting; the current model is capable of learning the training data, and the issue is with training dynamics, not model architecture.

581
MCQmedium

A company needs to ensure that model inference endpoints in SageMaker are only accessible from a private subnet in their VPC, and no traffic goes over the public internet. Which network configuration should they use?

A.Create a public endpoint and restrict access using IAM policies
B.Use AWS PrivateLink for the endpoint, but keep public endpoint enabled
C.Use a VPC interface endpoint for SageMaker and disable public access
D.Deploy the endpoint in a public subnet with a security group blocking all inbound traffic
AnswerC

An interface endpoint connects SageMaker to the VPC privately, and disabling public access ensures no internet traffic.

Why this answer

A VPC-only endpoint (interface endpoint) or private endpoint without public internet access ensures traffic stays within the VPC.

582
MCQeasy

Which AWS service is used as a vector store in Amazon Bedrock Knowledge Bases for storing and retrieving embeddings?

A.Amazon DynamoDB
B.Amazon Redshift
C.Amazon OpenSearch Serverless
D.Amazon S3
AnswerC

Correct. OpenSearch Serverless provides vector database capabilities for Bedrock Knowledge Bases.

Why this answer

Amazon Bedrock Knowledge Bases support several vector stores, including Amazon OpenSearch Serverless, Aurora pgvector, Pinecone, and MongoDB Atlas. OpenSearch Serverless is the AWS-native managed solution frequently used for this purpose.

583
MCQeasy

A company uses Amazon SageMaker to train sensitive ML models. Which AWS service should they use to encrypt the training data and model artifacts at rest?

A.AWS Secrets Manager
B.AWS CloudHSM
C.AWS Key Management Service (KMS)
D.AWS Certificate Manager
AnswerC

KMS provides centralized control over encryption keys used to encrypt data at rest in SageMaker.

Why this answer

AWS Key Management Service (KMS) allows customers to create and manage encryption keys used to encrypt data at rest in SageMaker, including training data and model artifacts.

584
MCQhard

A machine learning team is building a credit risk model and discovers that the training data has a significant imbalance in loan approval rates between two demographic groups. They decide to reweight the training samples using a preprocessing technique. Which SageMaker Clarify feature can help compute the appropriate sample weights to achieve demographic parity?

A.Clarify preprocessing (reweighting)
B.Clarify post-training bias metrics
C.Model Monitor bias drift
D.Clarify explainability (SHAP)
AnswerA

Clarify provides a preprocessing transformation that reweights data to meet fairness constraints.

Why this answer

SageMaker Clarify's preprocessing (reweighting) feature directly computes sample weights to adjust for imbalances in training data, enabling demographic parity by assigning higher weights to underrepresented groups. This is a pre-training bias mitigation technique that modifies the dataset before model training, aligning with the team's goal of reweighting samples to address loan approval rate disparities.

Exam trap

The trap here is that candidates confuse post-training bias metrics (Option B) with pre-training mitigation techniques, assuming that measuring bias is the same as correcting it via sample weights.

How to eliminate wrong answers

Option B is wrong because post-training bias metrics measure bias after model training (e.g., difference in positive proportions), not compute sample weights for preprocessing. Option C is wrong because Model Monitor bias drift detects changes in bias over time during inference, not pre-training weight computation. Option D is wrong because Clarify explainability (SHAP) provides feature attribution for model predictions, not sample reweighting for bias mitigation.

585
MCQmedium

A developer is using the Amazon Bedrock Converse API to build a multi-turn conversational AI. They need to send a user message along with system instructions and previous conversation history. How should they structure the API request to include both system prompt and message history?

A.Include system prompt as a user message in the 'messages' array
B.Include system prompt as an assistant message in the 'messages' array
C.Include system prompt in the 'system' parameter and user/assistant messages in the 'messages' array
D.Include system prompt in the 'inferenceConfig' parameter
AnswerC

This is the correct structure per the Converse API documentation.

Why this answer

The Amazon Bedrock Converse API separates system prompts from the conversation history. System prompts are passed in the dedicated 'system' parameter, while user and assistant messages are placed in the 'messages' array. This design allows the model to distinguish persistent instructions from the ongoing dialogue, ensuring system-level guidance is not treated as part of the conversation context.

Exam trap

The trap here is that candidates may confuse the Converse API's structure with simpler chat APIs (like OpenAI's) where system prompts are sometimes included in the messages array, leading them to incorrectly choose Option A or B.

How to eliminate wrong answers

Option A is wrong because including the system prompt as a user message in the 'messages' array would cause the model to interpret it as part of the user's input, potentially overriding or conflicting with the intended system instructions. Option B is wrong because placing the system prompt as an assistant message would make the model treat it as a previous response, which could distort the conversation flow and lead to incorrect behavior. Option D is wrong because the 'inferenceConfig' parameter is used for inference configuration settings like temperature and max tokens, not for passing system prompts.

586
MCQeasy

A company uses Amazon Rekognition to analyze images for a user-generated content platform. To comply with data residency requirements, they must ensure that images are not processed outside a specific AWS region. What should the company do?

A.Enable Amazon Rekognition VPC endpoints.
B.Use an AWS Lambda function to copy images to a bucket in the desired region and invoke Rekognition there.
C.Configure an AWS WAF rule to block cross-region processing.
D.Set up AWS Organizations to restrict the Rekognition service to one region.
AnswerB

This ensures data is processed only in the specified region.

Why this answer

It directly addresses the data residency requirement by using a Lambda function to copy images to an S3 bucket in the desired region and then invoking Rekognition in that same region. This ensures that image data never leaves the specified AWS region, as Rekognition processes images only in the region where the API call is made. The other options either do not prevent cross-region processing or are not applicable to Rekognition's data handling.

Exam trap

The trap here is that candidates often confuse VPC endpoints or WAF with data residency controls, not realizing that Rekognition processes data in the region of the API call, and that network-level or application-layer controls do not enforce regional data processing boundaries.

How to eliminate wrong answers

Option A is wrong because Amazon Rekognition VPC endpoints allow private connectivity to the Rekognition API within a VPC, but they do not restrict the region where processing occurs; the API call still goes to the Region endpoint you specify, and data can be processed in any region you choose. Option C is wrong because AWS WAF is a web application firewall that operates at the application layer (HTTP/HTTPS) and cannot control or block cross-region processing of Rekognition API calls, which are made via the AWS API or SDK, not through HTTP requests filtered by WAF. Option D is wrong because AWS Organizations can manage accounts and service control policies (SCPs) to restrict service usage, but SCPs cannot restrict Rekognition to a single region; they can only deny access to the Rekognition API in specific regions, but the company's requirement is to ensure images are not processed outside a specific region, which is a data residency concern, not an API access control issue.

587
MCQhard

A healthcare company is deploying a model to predict patient readmission risk using Amazon SageMaker. The model processes protected health information (PHI). The company must adhere to HIPAA regulations, which require that all PHI is encrypted at rest and in transit, and that access to the data is logged and audited. The data is stored in an S3 bucket encrypted with SSE-S3. The SageMaker training job uses a custom Docker container that reads data from the S3 bucket and writes model artifacts back to another S3 bucket. The security team notices that the model artifacts in the output bucket are not encrypted. Also, the training logs in CloudWatch Logs contain PHI because the training script logs patient features. The company must fix these issues without delaying the deployment. What should the company do?

A.Implement client-side encryption for the output bucket, and update the training script to mask PHI before logging.
B.Change the output S3 bucket to use SSE-KMS encryption, and enable server access logs for the bucket.
C.Modify the training container to avoid logging PHI, and configure the output S3 bucket to use SSE-KMS encryption.
D.Configure the training job to use a VPC with private subnets, and enable data encryption in transit using TLS.
AnswerC

This directly addresses both issues: encryption of output artifacts and removal of PHI from logs.

Why this answer

It directly addresses both issues: modifying the training container to avoid logging PHI ensures CloudWatch Logs no longer contain protected health information, and configuring the output S3 bucket to use SSE-KMS encryption ensures model artifacts are encrypted at rest. SSE-KMS is preferred over SSE-S3 for HIPAA compliance because it provides additional controls like key rotation and audit trails. This approach fixes the problems without delaying deployment, as it requires only code and configuration changes.

Exam trap

The trap here is that candidates may focus on network-level controls (VPC, TLS) or logging mechanisms, overlooking the fact that the core issues are encryption at rest for the output bucket and preventing PHI from being written to CloudWatch Logs, which require application-level changes and bucket configuration.

How to eliminate wrong answers

Option A is wrong because client-side encryption for the output bucket would require the training container to encrypt data before writing, which does not address the PHI in CloudWatch Logs; also, client-side encryption is not a native S3 encryption method and adds complexity. Option B is wrong because enabling server access logs for the bucket only logs access requests, not the content of the logs, and does not prevent PHI from being logged in CloudWatch Logs; it also does not address the encryption of model artifacts. Option D is wrong because configuring a VPC with private subnets and TLS encryption addresses data in transit but does not solve the encryption-at-rest issue for the output bucket or the PHI in CloudWatch Logs.

588
MCQmedium

A financial services company is deploying a generative AI chatbot to assist customers with account inquiries. The company wants to ensure the chatbot does not generate biased or harmful responses. Which combination of AWS services and practices should the company implement to monitor and mitigate these risks?

A.Configure the chatbot to use a pre-trained model from SageMaker JumpStart and disable logging to avoid storing sensitive customer data.
B.Use Amazon Rekognition to analyze chat logs for biased language and automatically block responses with a confidence score above 90%.
C.Use Amazon SageMaker Clarify to detect bias in model outputs and implement a human-in-the-loop workflow with Amazon A2I to review flagged responses.
D.Deploy Amazon Lex with built-in sentiment analysis to detect negative customer emotions and automatically escalate to a human agent.
AnswerC

SageMaker Clarify provides bias detection, and Amazon A2I enables human review of model outputs to ensure responsible AI.

Why this answer

Amazon SageMaker Clarify is specifically designed to detect bias in machine learning models and their outputs, while Amazon Augmented AI (A2I) enables a human-in-the-loop workflow to review flagged responses. This combination directly addresses the requirement to monitor and mitigate biased or harmful responses from a generative AI chatbot, ensuring responsible AI practices.

Exam trap

The AIF-C01 exam often tests the distinction between services that detect customer sentiment (like Amazon Comprehend or Lex sentiment analysis) versus services that detect bias in model outputs (like SageMaker Clarify), leading candidates to mistakenly choose sentiment analysis options for bias detection.

How to eliminate wrong answers

Option A is wrong because disabling logging prevents the monitoring and auditing necessary to detect biased or harmful responses, and using a pre-trained model from SageMaker JumpStart without additional safeguards does not mitigate bias. Option B is wrong because Amazon Rekognition is an image and video analysis service, not designed for analyzing text chat logs for biased language; it cannot process text-based conversations. Option D is wrong because Amazon Lex's built-in sentiment analysis detects customer emotions but does not detect bias or harmful content in the chatbot's responses, and escalation to a human agent does not proactively mitigate biased outputs.

589
Multi-Selecthard

Which TWO of the following are best practices for preparing training data for a machine learning model?

Select 2 answers
A.Handle missing values by imputing or removing them.
B.Split the data into training, validation, and test sets.
C.Remove all outliers to improve model robustness.
D.Use the entire dataset for training to maximize data usage.
E.Avoid shuffling the data to preserve original order.
AnswersA, B

Missing values can cause errors or bias; imputation or removal is a standard practice.

Why this answer

Handling missing values is a critical data preprocessing step. Missing data can introduce bias or cause algorithms to fail. Imputation (e.g., using mean, median, or model-based methods) or removal of rows/columns with missing values ensures the dataset is complete and suitable for training, preventing errors during model fitting.

Exam trap

The AIF-C01 exam often tests the misconception that removing all outliers is always beneficial, when in fact domain knowledge is required to distinguish between noise and legitimate extreme values that may be critical for model accuracy.

590
Multi-Selectmedium

A data science team wants to document and share their model's intended use, performance, and limitations with stakeholders. They also need to track the model's version and deployment history. Which TWO AWS services or features should they use?

Select 2 answers
A.Amazon SageMaker Pipelines
B.Amazon SageMaker Clarify
C.Amazon SageMaker Studio
D.Amazon SageMaker Model Cards
E.Amazon SageMaker Model Registry
AnswersD, E

Model Cards document intended use, performance, and limitations.

Why this answer

SageMaker Model Cards provide standardized documentation for transparency. SageMaker Model Registry tracks model versions, deployment stages, and metadata. SageMaker Pipelines is for ML workflows, not documentation or version tracking.

SageMaker Studio is an IDE. SageMaker Clarify is for bias and explainability.

591
MCQeasy

Refer to the exhibit. A developer runs this command but gets an error: 'An error occurred (AccessDeniedException) when calling the ListFoundationModels operation'. What is the most likely cause?

A.The IAM role does not have bedrock:ListFoundationModels permission
B.The AWS CLI version is outdated
C.The foundation model is not available in us-west-2
D.The region us-west-2 does not support Bedrock
AnswerA

AccessDeniedException is due to missing IAM permissions.

Why this answer

The error 'AccessDeniedException' when calling ListFoundationModels indicates that the IAM role or user executing the AWS CLI command lacks the required permission to list foundation models in Amazon Bedrock. The specific permission needed is bedrock:ListFoundationModels, which must be attached to the IAM identity via a policy. Without this permission, the API call is denied regardless of other factors like region or CLI version.

Exam trap

AWS often tests the distinction between service availability errors (e.g., region not supported) and IAM permission errors, where candidates mistakenly attribute an AccessDeniedException to regional or model availability issues rather than missing IAM permissions.

How to eliminate wrong answers

Option B is wrong because an outdated AWS CLI version would typically produce a different error (e.g., 'InvalidClientTokenId' or 'UnrecognizedClientException'), not an AccessDeniedException, and the ListFoundationModels API is available in recent CLI versions. Option C is wrong because the error is an access denial, not a model availability issue; if a model were unavailable, the error would be something like 'ValidationException' or 'ResourceNotFoundException' when trying to use that specific model. Option D is wrong because us-west-2 (Oregon) fully supports Amazon Bedrock and its APIs; the error is explicitly an IAM permissions issue, not a regional unsupported service error.

592
MCQmedium

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

A.Fine-tune a base LLM on the policy documents monthly
B.Use a larger foundation model with a longer context window and paste all documents into each prompt
C.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
D.Train a custom model from scratch on the policy documents each month
AnswerC

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

593
MCQmedium

A company uses Amazon Bedrock Guardrails to filter harmful content. They want to ensure that the model does not generate responses containing specific keywords related to their internal project names. Which Guardrails component should they configure?

A.Harmful content filters
B.Topic restrictions
C.Word filters
D.Grounding checks
AnswerC

Word filters allow blocking specific words or phrases.

Why this answer

Word filters in Bedrock Guardrails allow you to specify custom words or phrases that should be blocked in model responses.

594
Multi-Selecteasy

A company wants to use AWS services to process natural language text. Which TWO AWS services provide natural language processing (NLP) capabilities? (Select TWO.)

Select 2 answers
A.Amazon Translate
B.Amazon Rekognition
C.Amazon Comprehend
D.Amazon Polly
E.Amazon Lex
AnswersC, E

Comprehend provides NLP features like sentiment analysis, entity recognition, and key phrase extraction.

Why this answer

Amazon Comprehend is a natural language processing (NLP) service that uses machine learning to extract insights such as entities, key phrases, sentiment, and syntax from text. Amazon Lex provides NLP capabilities through automatic speech recognition (ASR) and natural language understanding (NLU) to build conversational interfaces like chatbots.

Exam trap

The trap here is that candidates often confuse text-to-speech (Polly) or translation (Translate) with NLP, but these services do not perform language understanding or analysis—they only convert or generate speech/translation without extracting meaning.

595
Multi-Selecthard

Which THREE considerations are essential for ensuring responsible AI in a model that predicts employee performance? (Choose 3)

Select 3 answers
A.Minimize the number of features to reduce cost
B.Publish the model's predictions publicly for transparency
C.Incorporate human review before final decisions
D.Ensure employee data privacy and consent
E.Test for bias across demographic groups
AnswersC, D, E

Human-in-the-loop reduces automation bias.

Why this answer

Responsible AI frameworks, such as those outlined by AWS, mandate human-in-the-loop (HITL) oversight for high-stakes decisions like employee performance predictions. This ensures that automated outputs are reviewed for context, fairness, and potential errors before affecting employment outcomes, aligning with the AIF-C01 domain's emphasis on human accountability.

Exam trap

The AIF-C01 exam often tests the misconception that transparency means public disclosure of all model outputs, whereas in responsible AI, transparency refers to explainability and auditability of the model's logic, not exposing sensitive predictions.

596
Multi-Selecthard

A financial institution is using Amazon Bedrock for a customer-facing application. They must ensure compliance with data residency requirements: model inputs and outputs must not leave a specific AWS Region. Which THREE steps should they take? (Choose THREE)

Select 3 answers
A.Set up an S3 bucket for model invocation logs in a different Region for disaster recovery
B.Enable Bedrock model invocation logging to an S3 bucket and CloudWatch Logs in the same Region
C.Use AWS KMS to encrypt all data at rest with a customer managed key in the desired Region
D.Configure an AWS PrivateLink VPC endpoint for Amazon Bedrock in the desired Region
E.Use AWS Global Accelerator to route traffic to Bedrock across regions for better performance
AnswersB, C, D

Logging data must stay in the Region to meet residency requirements.

Why this answer

To ensure data residency, the Bedrock model must be accessed only via a VPC endpoint (so traffic stays within AWS network), and all storage and logging must be in the desired Region. CloudTrail and invocation logs must also be stored in that Region.

597
Multi-Selecthard

A research team is using Amazon SageMaker to fine-tune a large language model. They want to optimize training cost and time without sacrificing model quality. Which THREE strategies should they implement? (Choose 3)

Select 3 answers
A.Use a larger instance type with more GPUs.
B.Apply parameter-efficient fine-tuning (PEFT) techniques like LoRA.
C.Increase the batch size to the maximum that fits in GPU memory.
D.Use managed spot training with checkpointing.
E.Enable mixed precision training (FP16).
AnswersB, D, E

LoRA fine-tunes a small subset of parameters, reducing compute and memory.

Why this answer

Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA (Low-Rank Adaptation) freeze the pre-trained model weights and inject trainable rank decomposition matrices into specific layers. This drastically reduces the number of trainable parameters (often by 10,000x), lowering memory and compute requirements while preserving model quality, making it ideal for cost- and time-sensitive fine-tuning.

Exam trap

The AIF-C01 exam often tests the misconception that simply scaling up hardware (larger instances) or maximizing batch size is the best optimization strategy, when in fact algorithmic efficiency (PEFT, mixed precision) and cost-saving infrastructure (spot instances) are the correct approaches for balancing cost, time, and quality.

598
MCQhard

A financial services company is deploying a fraud detection model using Amazon SageMaker. They need to ensure that inference requests are encrypted in transit and that the model endpoint is only accessible from within a VPC. What is the MOST secure way to achieve this?

A.Enable public endpoint with TLS and restrict access using a VPN
B.Use SageMaker Model Monitor to detect anomalies in request data
C.Create a SageMaker endpoint in a private subnet without an internet gateway, and use AWS PrivateLink
D.Deploy the model endpoint in a VPC with an interface VPC endpoint (AWS PrivateLink) and configure the model to require HTTPS
AnswerD

This ensures traffic stays within the VPC and uses TLS encryption in transit.

Why this answer

It combines two critical security controls: deploying the SageMaker endpoint within a VPC using an interface VPC endpoint (AWS PrivateLink) ensures that all traffic stays within the AWS network and never traverses the public internet, while configuring the model to require HTTPS enforces encryption in transit. This architecture eliminates exposure to the internet and meets the requirement for encrypted inference requests and VPC-only access.

Exam trap

The trap here is that candidates often confuse 'deploying in a private subnet' with 'making the endpoint accessible within the VPC'—a SageMaker endpoint in a private subnet without an internet gateway or VPC endpoint cannot be reached because the SageMaker service itself needs a network path to invoke the endpoint, and without a VPC endpoint, the endpoint is effectively isolated and unreachable.

How to eliminate wrong answers

Option A is wrong because enabling a public endpoint with TLS still exposes the endpoint to the internet, and VPN access does not restrict access to within a VPC—it only adds an encrypted tunnel from a remote network. Option B is wrong because SageMaker Model Monitor is a feature for detecting data drift and model quality issues, not for controlling network access or encrypting inference traffic. Option C is wrong because creating a SageMaker endpoint in a private subnet without an internet gateway prevents the endpoint from being reachable at all—SageMaker endpoints require network connectivity to the SageMaker service for invocation, and without an internet gateway or VPC endpoint, the endpoint cannot receive requests.

599
Multi-Selectmedium

A company uses Amazon Macie to discover sensitive data in an S3 bucket containing training datasets. The bucket policy currently prohibits access from external accounts. Which TWO steps are necessary to allow a cross-account SageMaker training job to access this bucket while maintaining security?

Select 2 answers
A.Configure Macie to automatically grant access to the SageMaker execution role
B.Create a VPC endpoint for S3 and associate it with the SageMaker VPC
C.Add a bucket policy that grants the SageMaker execution role from the other account s3:GetObject and s3:ListBucket permissions
D.Attach an IAM policy to the SageMaker execution role that allows s3:GetObject and s3:ListBucket on the source bucket
E.Remove the bucket policy that prohibits external access
AnswersC, D

The bucket policy must explicitly allow the cross-account role.

Why this answer

For cross-account access, the bucket policy must grant the required permissions to the SageMaker execution role (from the other account), and the SageMaker execution role must have an IAM policy that allows it to access the S3 bucket. Macie doesn't control access. VPC endpoints are optional.

600
MCQmedium

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

A.Fine-tune a base LLM on the policy documents monthly
B.Use a larger foundation model with a longer context window and paste all documents into each prompt
C.Train a custom model from scratch on the policy documents each month
D.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
AnswerD

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

Page 7

Page 8 of 9

Page 9

All pages