Courseiva

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

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

Page 5

Page 6 of 9

Page 7
376
Multi-Selectmedium

A data scientist is using a foundation model to summarize long documents. Which TWO of the following steps are most likely to improve the quality of the summaries?

Select 2 answers
A.Break the input document into chunks and summarize each chunk separately.
B.Use a high temperature parameter to increase creativity.
C.Provide few-shot examples of desired summaries in the prompt.
D.Use a low frequency penalty to reduce repetition.
E.Use a longer context length by increasing the max tokens parameter.
AnswersA, C

Chunking allows handling of long documents that exceed context length.

Why this answer

Foundation models have a fixed maximum context window (e.g., 4,096 tokens for GPT-3.5). By breaking a long document into smaller chunks and summarizing each independently, you avoid truncation and ensure the model can process the entire content without losing information. This chunking strategy is a standard preprocessing technique for handling documents that exceed the model's context length.

Exam trap

AWS often tests the misconception that increasing max tokens extends the model's input capacity, when in reality it only controls the output length, while the input is constrained by the model's inherent context window.

377
MCQmedium

A team deployed a text generation model on Amazon Bedrock. They want to monitor for toxic content in model outputs. Which evaluation approach is MOST effective?

A.Enable CloudWatch Logs and set a metric filter for toxic words
B.Use Amazon SageMaker Ground Truth for human annotation
C.Manually review a sample of outputs each week
D.Use Amazon Bedrock Model Evaluation with toxicity metrics
AnswerD

Bedrock Model Evaluation provides automated toxicity assessment.

Why this answer

Amazon Bedrock Model Evaluation with toxicity metrics is the most effective approach because it provides automated, built-in evaluation of model outputs for toxic content using predefined metrics, directly integrated with the Bedrock service. This eliminates the need for manual effort or custom filtering, ensuring consistent and scalable monitoring of harmful content.

Exam trap

The trap here is that candidates may choose CloudWatch metric filters (Option A) because they associate monitoring with logs, but fail to recognize that toxicity detection requires semantic understanding beyond simple keyword matching.

How to eliminate wrong answers

Option A is wrong because CloudWatch Logs with a metric filter for toxic words is a simplistic, keyword-based approach that cannot detect nuanced or context-dependent toxicity, such as sarcasm or implicit hate speech, and requires manual setup of word lists. Option B is wrong because Amazon SageMaker Ground Truth for human annotation is designed for creating labeled datasets, not for real-time or automated monitoring of model outputs, and introduces latency and cost overhead. Option C is wrong because manually reviewing a sample of outputs each week is not scalable, introduces human bias, and fails to provide continuous or real-time monitoring, making it ineffective for production systems.

378
MCQmedium

A company is developing an AI system that generates news articles. To comply with transparency regulations, they must clearly indicate when content is AI-generated. Which action should they take?

A.Register the model with a government agency
B.Remove any identifiable information about the model from the output
C.Use a watermark that is invisible to users
D.Include a disclaimer in the article metadata and a visible label stating 'This content was generated by AI'
AnswerD

This directly addresses transparency by informing users both in the metadata (for programmatic access) and visibly on the content itself.

Why this answer

Transparency requirements often mandate disclosure that content is AI-generated, which can be done through labels, watermarks, or metadata. Providing a clear disclosure to users is the most direct and compliant approach.

379
MCQeasy

A company wants to automatically detect anomalies in their AWS CloudTrail logs to identify potential security threats. Which AWS service is specifically designed for this purpose?

A.Amazon Macie
B.AWS Config
C.Amazon GuardDuty
D.Amazon Inspector
AnswerC

GuardDuty uses ML to detect anomalies in CloudTrail logs and other sources.

Why this answer

Amazon GuardDuty is a threat detection service that continuously monitors AWS accounts and workloads using machine learning, anomaly detection, and integrated threat intelligence. It specifically analyzes CloudTrail management and data events, VPC Flow Logs, and DNS logs to identify unauthorized behavior or potential security threats, making it the correct choice for automatically detecting anomalies in CloudTrail logs.

Exam trap

The AIF-C01 exam often tests the distinction between services that detect threats (GuardDuty) versus services that protect data (Macie), assess vulnerabilities (Inspector), or track configuration compliance (Config), leading candidates to confuse their primary use cases.

How to eliminate wrong answers

Option A is wrong because Amazon Macie is a data security and data privacy service that uses machine learning to discover, classify, and protect sensitive data stored in Amazon S3, not to analyze CloudTrail logs for security threats. Option B is wrong because AWS Config is a service that evaluates and records resource configurations and compliance against desired policies, not designed for real-time anomaly detection in log data. Option D is wrong because Amazon Inspector is a vulnerability management service that scans EC2 instances and container images for software vulnerabilities and unintended network exposure, not for analyzing CloudTrail logs.

380
Multi-Selecteasy

Which TWO of the following are types of feature scaling?

Select 2 answers
A.One-hot encoding
B.Principal Component Analysis (PCA)
C.Standardization
D.Binning
E.Normalization (Min-Max)
AnswersC, E

Standardization (Z-score) is a common feature scaling method.

Why this answer

Standardization (Z-score scaling) transforms features to have a mean of 0 and a standard deviation of 1, making it a valid type of feature scaling. It is essential when using algorithms that assume normally distributed data, such as linear regression, SVM, or PCA, and it does not bound the data to a fixed range.

Exam trap

AWS often tests the distinction between feature scaling (changing the numeric range of features) and data transformation techniques like encoding or dimensionality reduction, leading candidates to confuse one-hot encoding or PCA with scaling methods.

381
MCQeasy

A company is using Amazon Comprehend to analyze customer feedback. They need to ensure that the documents are encrypted at rest. What should they do?

A.No action is needed; Amazon Comprehend automatically encrypts data at rest using AES-256
B.Enable encryption using AWS KMS in the Comprehend console
C.Store documents in an encrypted S3 bucket and use a VPC endpoint
D.Use SSL/TLS for all API calls to Comprehend
AnswerA

Comprehend encrypts all data at rest by default.

Why this answer

Amazon Comprehend automatically encrypts all data at rest using AES-256 encryption by default, with no additional configuration required. This encryption covers both the documents processed by the service and any models or artifacts stored internally. Therefore, no action is needed from the customer to enable encryption at rest.

Exam trap

The trap here is that candidates often assume they need to manually enable encryption or use KMS, but Amazon Comprehend enforces encryption at rest automatically with no user action required, making 'No action needed' the correct answer.

How to eliminate wrong answers

Option B is wrong because Amazon Comprehend does not expose a console option to enable or disable encryption via AWS KMS; encryption is always-on and managed by the service. Option C is wrong because while storing documents in an encrypted S3 bucket is a best practice for data in transit to Comprehend, it does not affect how Comprehend encrypts data at rest within its own storage; the service already encrypts at rest regardless of the source bucket's encryption. Option D is wrong because SSL/TLS protects data in transit, not data at rest, and is already enforced by Comprehend for API calls.

382
MCQeasy

A developer is using Amazon Bedrock to generate code snippets. The model often produces insecure code. Which prompt engineering technique is MOST effective to improve security?

A.Use chain-of-thought prompting to step through the code
B.Provide few-shot examples of secure code
C.Set max_tokens to a low value to limit output
D.Include specific instructions to avoid common security vulnerabilities
AnswerD

Direct instructions in the prompt can effectively guide the model.

Why this answer

Directly instructing the model to avoid specific security vulnerabilities (e.g., SQL injection, buffer overflows) is the most explicit and effective way to constrain the output. Amazon Bedrock models respond well to clear, imperative instructions in the system prompt or user message, making this a direct application of prompt engineering for safety. Chain-of-thought or few-shot examples may improve reasoning or style but do not guarantee the model will avoid insecure patterns unless explicitly told to do so.

Exam trap

The trap here is that candidates often overestimate the effectiveness of few-shot examples or reasoning techniques for security, assuming they implicitly teach safety, when in fact explicit instructions are required to override the model's default training biases toward common (but insecure) coding patterns.

How to eliminate wrong answers

Option A is wrong because chain-of-thought prompting improves reasoning steps but does not inherently enforce security constraints; it may still produce insecure code if the model's reasoning path includes unsafe patterns. Option B is wrong because few-shot examples of secure code can guide style but do not prevent the model from generating insecure code when the prompt does not explicitly forbid it; the model may still default to common insecure patterns from its training data. Option C is wrong because setting max_tokens to a low value limits output length but does not affect the security of the generated code; it may truncate a secure solution or force incomplete code, not improve safety.

383
MCQeasy

A team trained a deep learning model that achieves 99% accuracy on training data but only 70% on validation data. What is the most likely issue?

A.Underfitting
B.Overfitting
C.Data leakage
D.Feature scaling
AnswerB

Overfitting occurs when the model learns training data too well, including noise, failing to generalize to validation data.

Why this answer

The model performs exceptionally well on training data (99% accuracy) but significantly worse on validation data (70% accuracy). This large gap indicates the model has memorized the training data, including noise and irrelevant patterns, rather than learning generalizable features — a classic symptom of overfitting.

Exam trap

The AIF-C01 exam often tests the distinction between overfitting and underfitting by presenting a scenario where training accuracy is high but validation accuracy is low, tempting candidates to incorrectly choose underfitting if they focus only on the low validation score.

How to eliminate wrong answers

Option A is wrong because underfitting would show poor performance on both training and validation data, not high training accuracy with low validation accuracy. Option C is wrong because data leakage typically causes both training and validation accuracy to be artificially high, not a large gap between them. Option D is wrong because feature scaling issues would generally affect model convergence or performance uniformly across datasets, not create a specific training-validation accuracy disparity.

384
Multi-Selectmedium

Which THREE of the following are capabilities of Amazon SageMaker? (Select THREE.)

Select 3 answers
A.Real-time inference endpoints
B.Automatic model tuning (hyperparameter optimization)
C.On-premises training only
D.Built-in algorithms for common tasks
E.Can only deploy models to EC2 instances
AnswersA, B, D

SageMaker offers real-time inference with managed endpoints.

Why this answer

Amazon SageMaker provides real-time inference endpoints that allow you to deploy trained models to a fully managed HTTPS endpoint for low-latency predictions. These endpoints automatically scale based on traffic and support A/B testing, making them suitable for production workloads.

Exam trap

The AIF-C01 exam often tests the misconception that SageMaker is limited to cloud-only or specific deployment targets, but the service actually offers flexible deployment options including on-premises and edge devices.

385
Multi-Selecthard

A company uses Amazon SageMaker to build and deploy models. They want to enforce compliance that all model endpoints are encrypted in transit and use least privilege access. Which THREE steps should they take? (Choose THREE.)

Select 3 answers
A.Configure the SageMaker endpoint to use a custom SSL certificate via AWS Certificate Manager
B.Use an interface VPC endpoint (AWS PrivateLink) for SageMaker
C.Attach an IAM policy to the execution role that only allows specific actions on the endpoint
D.Enable AWS CloudTrail to log all endpoint invocations
E.Disable root access on the SageMaker notebook instances
AnswersA, B, C

This ensures HTTPS for encryption in transit.

Why this answer

Configuring a SageMaker endpoint to use a custom SSL certificate from AWS Certificate Manager (ACM) ensures that all data transmitted between clients and the endpoint is encrypted in transit using TLS. This enforces the compliance requirement for encryption in transit by replacing the default SageMaker certificate with a customer-managed certificate, which can be validated and rotated as needed.

Exam trap

The trap here is that candidates often confuse logging (CloudTrail) with enforcement of encryption or access control, or they mistakenly think disabling root access on notebooks affects endpoint security, when in fact it only secures the development environment.

386
MCQmedium

A company deploys a large language model to automatically generate product descriptions. They want to ensure customers are aware that the content is AI-generated, as part of transparency requirements. What should they implement?

A.Include a disclosure statement such as 'This content was generated by AI' in the output
B.Use Amazon Rekognition to add a visible watermark to images only
C.Store metadata in the content database indicating AI generation
D.Embed an invisible watermark in the generated text
AnswerA

A clear disclosure directly informs customers that the content is AI-generated, meeting transparency goals.

Why this answer

Transparency requirements often mandate disclosing AI-generated content. The simplest approach is to include a clear disclosure in the output. Bedrock Guardrails can be configured to prepend or append a disclosure message.

The other options either hide the AI origin or only apply to specific types of content like images.

387
MCQhard

During a security review, it is found that an Amazon SageMaker notebook instance has outbound internet access, which could lead to data exfiltration. The notebook must only access resources within the VPC. Which step should be taken to restrict internet access?

A.Modify the notebook instance's IAM role to deny s3:GetObject
B.Attach a security group that denies all outbound traffic to 0.0.0.0/0
C.Configure the notebook instance in a VPC with no internet gateway or NAT device, and set the notebook's 'Direct Internet Access' option to 'Disabled'
D.Disable the SageMaker notebook instance's root volume encryption
AnswerC

This ensures the notebook can only reach resources within the VPC.

Why this answer

Disabling 'Direct Internet Access' on a SageMaker notebook instance and placing it in a VPC without an internet gateway or NAT device ensures the notebook cannot reach the public internet. This configuration forces all traffic to stay within the VPC, preventing data exfiltration via outbound internet connections while still allowing access to VPC resources.

Exam trap

The trap here is that candidates may confuse network-level controls (security groups, VPC routing) with IAM permissions, thinking that denying S3 access prevents all exfiltration, or they may incorrectly assume that disabling encryption or blocking all outbound traffic is the correct approach.

How to eliminate wrong answers

Option A is wrong because modifying the IAM role to deny s3:GetObject only restricts access to S3 objects, not outbound internet traffic; data exfiltration could still occur via other protocols (e.g., HTTP, DNS tunneling). Option B is wrong because attaching a security group that denies all outbound traffic to 0.0.0.0/0 would block all outbound traffic, including legitimate VPC resources (e.g., other services within the same VPC), which is overly restrictive and not the intended solution. Option D is wrong because disabling root volume encryption does not affect internet access; it only removes encryption at rest, which is a security risk but unrelated to network egress control.

388
MCQeasy

A developer is building an application using Amazon Bedrock and needs to ensure that the model's responses do not include any toxic or harmful language. Which Bedrock feature should they configure?

A.Bedrock Knowledge Bases
B.Bedrock Playground
C.Bedrock Agents
D.Bedrock Guardrails
AnswerD

Guardrails allow configuring content filters, denied topics, and PII detection to control model output safety.

Why this answer

Bedrock Guardrails provide content filters, topic denial, PII detection, and other safety controls. Knowledge Bases, Agents, and Playground do not directly enforce content safety rules.

389
MCQeasy

What is the main purpose of a system prompt in a large language model?

A.To increase the temperature for more creative responses
B.To provide an example of the desired output format
C.To list all possible tokens to be used in the response
D.To define the high-level instructions that set the model's behavior and persona
AnswerD

System prompts are used to establish context, style, and rules for the conversation.

Why this answer

The system prompt in a large language model (LLM) defines the high-level instructions that set the model's behavior, persona, and constraints for the entire conversation. Unlike user prompts, which are task-specific, the system prompt establishes the model's role (e.g., 'You are a helpful assistant') and governs how it interprets all subsequent interactions, ensuring consistent and aligned outputs.

Exam trap

AWS often tests the distinction between system prompts (high-level behavior) and user prompts (task-specific instructions), trapping candidates who confuse providing an output format example (few-shot prompting) with the system prompt's role of defining persona and constraints.

How to eliminate wrong answers

Option A is wrong because increasing the temperature parameter controls randomness in token sampling, not the purpose of a system prompt; temperature is a generation hyperparameter, not a prompt function. Option B is wrong because providing an example of the desired output format is the role of a few-shot prompt or user prompt, not the system prompt, which sets overarching behavior rather than specific formatting examples. Option C is wrong because listing all possible tokens is not a prompt function; the model's vocabulary is fixed and defined by its tokenizer, and a system prompt cannot enumerate tokens.

390
MCQmedium

A developer is building a chatbot using Amazon Bedrock and Claude. They notice that the model sometimes generates harmful or biased responses. Which AWS service can they use to implement guardrails?

A.AWS WAF
B.Amazon GuardDuty
C.AWS Shield
D.Amazon Bedrock Guardrails
AnswerD

Bedrock Guardrails allows you to define content filters and deny topics to moderate model responses.

Why this answer

Amazon Bedrock Guardrails is the correct choice because it is a native feature of Amazon Bedrock designed specifically to implement safety controls, content filters, and topic policies for foundation models like Claude. It allows developers to define denied topics, filter harmful content (e.g., hate speech, violence), and redact sensitive information, directly addressing the need to prevent harmful or biased responses in a chatbot built on Bedrock.

Exam trap

The trap here is that candidates may confuse AWS security services (WAF, GuardDuty, Shield) with AI-specific safety mechanisms, assuming any 'guard' or 'shield' service can filter model outputs, when only Amazon Bedrock Guardrails is purpose-built for content safety in generative AI.

How to eliminate wrong answers

Option A is wrong because AWS WAF is a web application firewall that protects HTTP/HTTPS APIs from common web exploits like SQL injection and cross-site scripting, not a service for implementing content guardrails on generative AI model outputs. Option B is wrong because Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior in AWS accounts and workloads, not a tool for filtering or controlling the responses of a large language model. Option C is wrong because AWS Shield is a managed Distributed Denial of Service (DDoS) protection service that safeguards applications against DDoS attacks, and it has no capability to enforce safety policies or bias filters on AI-generated content.

391
MCQmedium

A company uses Amazon Bedrock to power a code generation assistant. They notice that the generated code sometimes contains security vulnerabilities. Which approach would BEST address this issue without sacrificing code quality?

A.Switch to a smaller model to reduce the chance of generating complex vulnerable code
B.Increase the temperature parameter to make output more deterministic
C.Fine-tune the model on a curated dataset of secure code and use Bedrock Guardrails to block insecure patterns
D.Use a longer prompt that instructs the model to avoid vulnerabilities
AnswerC

Fine-tuning on secure code teaches the model best practices, while guardrails add a safety layer.

Why this answer

Guardrails can filter harmful content, but for code-specific vulnerabilities, a more targeted approach is to fine-tune on secure code examples or use a specialised model. However, among the options, applying guardrails for code safety is a practical step.

392
MCQhard

A company is using Amazon SageMaker to train a large language model with hundreds of billions of parameters. The model does not fit into the memory of a single GPU. Which approach should they use to train the model efficiently?

A.Use a larger instance with more GPU memory, such as p4d.24xlarge
B.Use SageMaker's data parallelism strategy
C.Use SageMaker's model parallelism strategy with the SageMaker distributed training library
D.Reduce the model size by pruning layers until it fits into memory
AnswerC

Model parallelism splits the model across GPUs, enabling training of very large models.

Why this answer

SageMaker's model parallelism strategy with the SageMaker distributed training library is specifically designed for training large models that do not fit into the memory of a single GPU. It partitions the model layers across multiple GPUs, enabling efficient training of models with hundreds of billions of parameters by overlapping computation and communication.

Exam trap

The AIF-C01 exam often tests the distinction between data parallelism and model parallelism, and the trap here is that candidates may confuse data parallelism (which splits data, not the model) as a solution for models that don't fit in memory, when in fact model parallelism is required for such cases.

How to eliminate wrong answers

Option A is wrong because even the largest GPU instances like p4d.24xlarge have limited GPU memory (40 GB per A100 GPU), which is insufficient for a model with hundreds of billions of parameters; scaling vertically is not feasible for such large models. Option B is wrong because SageMaker's data parallelism strategy replicates the entire model on each GPU and splits the data across GPUs, which requires the model to fit into a single GPU's memory; it does not solve the memory constraint issue. Option D is wrong because pruning layers to reduce model size would degrade model quality and is not a practical or efficient approach for training large language models; the goal is to train the full model, not a smaller version.

393
MCQmedium

A data scientist uses Amazon Bedrock. The model responses are too long. Which parameter should they adjust to limit the output length?

A.temperature
B.max_tokens
C.stop sequences
D.top_p
AnswerB

Reducing max_tokens directly caps the output length.

Why this answer

The `max_tokens` parameter directly controls the maximum number of tokens (words or subwords) the model can generate in a single response. By reducing this value, the data scientist caps the output length, preventing overly long responses. Temperature and top_p affect randomness and diversity, not length, while stop sequences define when generation halts but do not enforce a hard token limit.

Exam trap

AWS often tests the distinction between parameters that control output length (`max_tokens`) versus those that control output randomness or diversity (`temperature`, `top_p`), leading candidates to confuse 'limiting length' with 'limiting creativity'.

How to eliminate wrong answers

Option A is wrong because temperature controls the randomness of token selection (higher values increase creativity, lower values make output more deterministic), not the length of the response. Option C is wrong because stop sequences are custom strings (e.g., '###' or 'END') that tell the model to cease generation when encountered, but they do not limit the total number of tokens generated before that point. Option D is wrong because top_p (nucleus sampling) limits the cumulative probability of token choices to a threshold (e.g., 0.9), affecting diversity, not the maximum output length.

394
MCQhard

A SageMaker endpoint is configured with automatic scaling. The model's inference time is 50ms, and traffic increases gradually. What scaling metric should be used to add instances before latency increases?

A.Memory utilization
B.Concurrent requests
C.CPU utilization
D.Invocations per instance
AnswerD

Invocations per instance directly measures the load per instance, allowing proactive scaling before latency rises.

Why this answer

D is correct because 'Invocations per instance' is a custom metric that directly measures the number of inference requests each instance is handling. By setting a target value for this metric, the scaling policy can proactively add instances when the per-instance request count approaches a threshold, preventing latency increases before they occur. This is the recommended approach for SageMaker endpoints with gradual traffic increases, as it anticipates demand rather than reacting to latency spikes.

Exam trap

The trap here is that candidates often choose 'Concurrent requests' (Option B) thinking it directly measures load, but AWS SageMaker does not expose that metric for scaling; instead, 'Invocations per instance' is the correct metric that normalizes load per instance and enables proactive scaling.

How to eliminate wrong answers

Option A is wrong because memory utilization is not a reliable indicator of inference latency; SageMaker endpoints typically have sufficient memory, and scaling based on memory would not prevent latency from increasing due to request queuing. Option B is wrong because 'Concurrent requests' is not a supported metric for SageMaker automatic scaling; the correct metric is 'Invocations per instance' which normalizes request load across the number of instances. Option C is wrong because CPU utilization can spike due to other processes and does not directly correlate with inference latency; scaling on CPU may add instances too late or unnecessarily, as inference is often I/O-bound rather than CPU-bound.

395
Multi-Selecthard

A machine learning engineer is using Amazon SageMaker to deploy a real-time inference endpoint for a classification model. The model must provide low-latency predictions and handle variable traffic. Which THREE actions should the engineer take? (Select THREE.)

Select 3 answers
A.Enable data capture to log input and output payloads
B.Use a larger instance type to maximize throughput
C.Choose an instance type optimized for inference, such as Inf1
D.Deploy the model as a batch transform job instead of a real-time endpoint
E.Configure auto scaling to add or remove instances based on traffic
AnswersA, C, E

Data capture is important for monitoring, auditing, and debugging predictions.

Why this answer

Enabling data capture in SageMaker allows the engineer to log input and output payloads for all predictions made by the real-time endpoint. This is essential for monitoring, auditing, and debugging model performance without impacting latency, as the capture is asynchronous and stored in Amazon S3.

Exam trap

The trap here is that candidates often confuse throughput optimization (larger instances) with elasticity (auto scaling), or mistakenly think batch transform can serve real-time traffic, when in fact batch jobs have no endpoint and cannot provide sub-second latency.

396
MCQmedium

A company is deploying a real-time inference endpoint using Amazon SageMaker. The security team requires that all data sent to the endpoint be encrypted in transit and that the endpoint is only accessible from within the company's VPC. Which configuration should be used?

A.Deploy the endpoint in a private subnet with a VPC endpoint for SageMaker Runtime
B.Deploy the endpoint in a public subnet and use a security group to restrict source IPs
C.Enable network isolation on the endpoint
D.Use an AWS Lambda function to proxy requests and restrict access via IAM
AnswerA

This makes the endpoint accessible only via the VPC endpoint, ensuring no public internet access, and HTTPS is used automatically.

Why this answer

SageMaker endpoints can be deployed in a VPC and configured to use a private VPC endpoint (AWS PrivateLink) so that they are accessible only from within the VPC. HTTPS ensures encryption in transit; SageMaker endpoints automatically use HTTPS.

397
MCQmedium

A company uses a foundation model for real-time translation in a chat application. The latency is high. Which optimization would reduce latency the most?

A.Increase batch size
B.Use model distillation to create a smaller model
C.Use a larger model
D.Use a CDN for model weights
AnswerB

Distillation reduces model size and inference latency.

Why this answer

Model distillation reduces the size of the foundation model by training a smaller 'student' model to mimic the behavior of a larger 'teacher' model. This directly decreases inference latency because the smaller model requires fewer computational resources (FLOPs) per forward pass, which is critical for real-time translation in a chat application where low latency is paramount.

Exam trap

The AIF-C01 exam often tests the distinction between throughput optimization (batch size) and latency optimization (model size/distillation), leading candidates to mistakenly choose increasing batch size when the question explicitly asks for reducing latency.

How to eliminate wrong answers

Option A is wrong because increasing batch size improves throughput (more requests processed per unit time) but does not reduce per-request latency; in fact, it can increase latency for individual requests as the model must wait for the batch to fill. Option C is wrong because using a larger model increases the number of parameters and computational complexity, which would increase latency, not reduce it. Option D is wrong because a CDN for model weights only accelerates the initial download of the model to edge locations, not the inference latency of each translation request; once the model is loaded, inference speed is determined by the model architecture and hardware, not network delivery.

398
Multi-Selectmedium

A company wants to use Amazon SageMaker Ground Truth to build a labeled dataset for a custom object detection model. Which TWO labeling strategies are available? (Choose two.)

Select 2 answers
A.Private workforce labeling (company employees)
B.Crowd-based labeling using Amazon Mechanical Turk
C.Automated labeling using pre-trained models
D.Active learning with manual verification
E.Fully automated labeling via AWS Lambda
AnswersA, B

Private workforce uses the company's own employees for labeling.

Why this answer

Amazon SageMaker Ground Truth supports private workforce labeling where company employees (e.g., via a corporate directory or invited users) perform manual annotation. This is ideal for sensitive data or domain-specific tasks like custom object detection, where internal expertise ensures high label accuracy.

Exam trap

The AIF-C01 exam often tests the distinction between labeling strategies (workforce types) and labeling features (like automated labeling or active learning), causing candidates to confuse automated data labeling as a workforce option when it is actually a post-labeling automation feature.

399
MCQmedium

A financial services company uses Amazon Bedrock to power a customer-facing chatbot that provides investment advice. The company must ensure that the chatbot's responses comply with regulatory standards, meaning that the model should not generate advice that is speculative or promises returns. The company has implemented Bedrock Guardrails with content filters. However, during testing, the chatbot still generates responses that violate the guidelines. A review of the guardrail configuration shows that the content filters are set to the lowest sensitivity. The company wants to enforce stricter filtering without completely blocking legitimate responses. What should the company do?

A.Increase the sensitivity of the content filters in the Bedrock Guardrails configuration.
B.Use a different foundational model that has built-in compliance filters.
C.Configure the chatbot to route all responses to a human reviewer before delivering to the customer.
D.Add a deny topic for investment advice to completely block that topic.
AnswerA

Higher sensitivity blocks more content that violates guidelines, while still allowing compliant responses.

Why this answer

Increasing the sensitivity of the content filters in Bedrock Guardrails directly addresses the issue: the current filters are set to the lowest sensitivity, allowing speculative or promise-based responses to pass through. By raising the sensitivity, the guardrails will block more non-compliant content while still permitting legitimate investment advice, striking the required balance between regulatory compliance and functionality.

Exam trap

The trap here is that candidates may think adding a deny topic (Option D) is the simplest way to enforce compliance, but they overlook that it completely blocks all investment advice, which violates the requirement to allow legitimate responses; the exam tests understanding of granular guardrail tuning versus blunt blocking.

How to eliminate wrong answers

Option B is wrong because switching to a different foundational model does not guarantee built-in compliance filters that meet the specific regulatory standards; models themselves do not enforce content policies—guardrails do. Option C is wrong because routing all responses to a human reviewer introduces latency and scalability issues, and does not solve the underlying guardrail configuration problem; it is a workaround, not a fix. Option D is wrong because adding a deny topic for investment advice would completely block all investment-related queries, which is overly restrictive and prevents the chatbot from providing any legitimate advice, violating the requirement to avoid completely blocking legitimate responses.

400
MCQmedium

A developer is using Bedrock Studio to prototype a summarization application. They want to quickly test different foundation models and prompts without writing code. What should they use?

A.Bedrock Knowledge Bases
B.Bedrock Agents
C.Bedrock Guardrails
D.Bedrock Playground
AnswerD

The Playground provides an interactive console to try different models and prompts without coding.

Why this answer

Bedrock Playground is a no-code interface within Bedrock Studio for experimenting with models and prompts. Knowledge Bases, Agents, and Guardrails are not designed for rapid prototyping of prompts and models.

401
MCQmedium

An AI team uses the IAM policy shown in the exhibit to control endpoint creation. Why does this policy support responsible AI?

A.It requires human approval before deploying any model
B.It prevents the use of GPU instances to reduce cost
C.It ensures data capture is enabled for model monitoring
D.It restricts endpoints to only use models built in SageMaker
AnswerC

Data capture allows bias detection and explainability.

Why this answer

The IAM policy includes a condition that enforces the `DataCaptureConfig.EnableCapture` parameter to be set to `true` when creating a SageMaker endpoint. This ensures that model monitoring data is automatically collected, which is a key practice for responsible AI as it allows continuous monitoring of model performance, bias detection, and drift analysis. Without data capture, teams cannot audit or validate model behavior in production, undermining accountability and transparency.

Exam trap

The AIF-C01 exam often tests the misconception that IAM policies for responsible AI focus on restricting model sources or instance types, when in fact the key mechanism is enforcing observability through data capture for ongoing monitoring.

How to eliminate wrong answers

Option A is wrong because the IAM policy does not include any condition requiring human approval (e.g., using `sts:AssumeRole` with MFA or a separate approval workflow); it only enforces data capture settings. Option B is wrong because the policy does not restrict instance types (e.g., GPU instances like `ml.p3.2xlarge`); it focuses solely on data capture configuration. Option D is wrong because the policy does not restrict endpoints to models built in SageMaker; it allows any model to be deployed as long as data capture is enabled, and there is no condition referencing model origin.

402
MCQeasy

A data scientist wants to quickly build a supervised learning model for binary classification on a tabular dataset with 10,000 rows and 200 features. The dataset has some missing values and requires minimal code. Which AWS service should the data scientist use?

A.Amazon SageMaker Studio Lab
B.Amazon SageMaker Clarify
C.Amazon SageMaker Autopilot
D.Amazon SageMaker JumpStart
AnswerC

Autopilot automates model building for tabular data.

Why this answer

Amazon SageMaker Autopilot is the correct choice because it automatically performs data preprocessing (including handling missing values), feature engineering, model selection, and hyperparameter tuning for supervised learning tasks like binary classification. It requires minimal code—users can simply point to a tabular dataset in Amazon S3 and specify the target column, and Autopilot will automatically train and evaluate multiple candidate models, making it ideal for quickly building a binary classifier on a 10,000-row, 200-feature dataset with missing values.

Exam trap

The AIF-C01 exam often tests the distinction between automated ML services (Autopilot) and model hosting or development environments (Studio Lab, JumpStart), so the trap here is that candidates may confuse SageMaker Autopilot with SageMaker JumpStart, thinking JumpStart also automates model building, when in fact JumpStart only provides pre-built models and requires manual configuration.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker Studio Lab is a free, no-code ML development environment that provides JupyterLab notebooks and limited compute resources, but it does not automate model building or handle missing values—it requires the user to write all code manually. Option B is wrong because Amazon SageMaker Clarify is designed for bias detection, model explainability, and fairness analysis, not for building or training supervised learning models; it cannot handle missing values or perform automated model selection. Option D is wrong because Amazon SageMaker JumpStart provides pre-built models and solutions for transfer learning and fine-tuning, but it does not automatically preprocess missing values or perform automated model selection for tabular binary classification—it requires the user to select and configure a model manually.

403
MCQmedium

A company wants to automatically detect anomalies in server metrics. Which algorithm is most appropriate?

A.XGBoost
B.One-class SVM
C.Linear SVM
D.K-Means
AnswerB

One-class SVM is commonly used for anomaly detection by learning a boundary around normal data.

Why this answer

One-class SVM is specifically designed for anomaly detection, as it learns a boundary around the normal data points in the feature space and identifies any point falling outside this boundary as an anomaly. This makes it ideal for detecting unusual patterns in server metrics without requiring labeled anomaly examples.

Exam trap

The AIF-C01 exam often tests the distinction between supervised and unsupervised learning, and the trap here is that candidates may choose XGBoost or Linear SVM because they are familiar with them for classification, forgetting that anomaly detection typically requires a one-class approach when only normal data is available.

How to eliminate wrong answers

Option A is wrong because XGBoost is a supervised ensemble learning algorithm used for classification and regression, not for unsupervised anomaly detection; it requires labeled training data and is not designed to identify outliers without prior examples. Option C is wrong because Linear SVM is a supervised binary classifier that separates data into two classes using a hyperplane, and it cannot perform one-class anomaly detection without negative samples. Option D is wrong because K-Means is an unsupervised clustering algorithm that partitions data into clusters based on distance, but it does not inherently detect anomalies; while outliers can be inferred from cluster distances, it is not a dedicated anomaly detection method and lacks the statistical boundary learning of one-class SVM.

404
MCQhard

Refer to the exhibit. A developer is optimizing latency for a generative AI model deployed on SageMaker. Based on the exhibit, which change would most likely reduce per-token latency?

A.Use a CPU instance
B.Reduce model size through quantization
C.Switch to a larger instance type
D.Increase batch size to 10
AnswerB

Quantization reduces the precision of model weights, decreasing compute per token and thus latency.

Why this answer

Reducing model size through quantization directly decreases the computational and memory requirements per inference step, which lowers the time to generate each token. This is especially effective on GPU instances where smaller models fit better in GPU memory and reduce memory bandwidth bottlenecks, leading to lower per-token latency.

Exam trap

Candidates often think that larger instances always reduce latency, when in fact they may increase latency due to higher memory latency and inter-chip communication, while quantization directly addresses the memory bandwidth bottleneck in autoregressive decoding.

How to eliminate wrong answers

Option A is wrong because CPU instances lack the parallel processing capabilities needed for efficient generative AI inference, resulting in significantly higher per-token latency compared to GPU instances. Option C is wrong because switching to a larger instance type may increase throughput but does not necessarily reduce per-token latency; it can even increase latency due to higher memory access times and inter-chip communication overhead. Option D is wrong because increasing batch size to 10 increases the total tokens processed per batch, which can improve throughput but typically increases per-token latency due to longer queueing and processing times for each batch.

405
MCQeasy

Which vector store is a fully managed AWS service that can be used with Amazon Bedrock Knowledge Bases for semantic search?

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

OpenSearch Serverless supports vector engine for semantic search.

Why this answer

Amazon OpenSearch Serverless is a fully managed AWS service that provides a vector store capability, which is required for semantic search in Amazon Bedrock Knowledge Bases. It supports vector indexing and similarity search, enabling efficient retrieval of relevant documents based on embedding vectors. Other options like DynamoDB, RDS for MySQL, and S3 are not purpose-built vector stores and lack the native vector search functionality needed for this use case.

Exam trap

The trap here is that candidates often confuse general-purpose databases or storage services (like DynamoDB, RDS, or S3) with purpose-built vector stores, assuming any database can perform semantic search if it stores data, but AWS specifically requires a vector store with native ANN indexing for Bedrock Knowledge Bases.

How to eliminate wrong answers

Option A is wrong because Amazon DynamoDB is a NoSQL key-value and document database that does not natively support vector indexing or similarity search; it would require external libraries or custom implementations to perform semantic search. Option B is wrong because Amazon RDS for MySQL is a relational database that lacks built-in vector search capabilities; while MySQL can store vectors as blobs, it cannot efficiently perform the distance-based queries required for semantic search without significant overhead. Option C is wrong because Amazon S3 is an object storage service, not a database or vector store; it cannot execute search queries or index vectors natively, making it unsuitable for semantic search in Bedrock Knowledge Bases.

406
Multi-Selecthard

A company is using Amazon Bedrock to generate creative marketing copy. They want to reduce the randomness of the output while maintaining diversity. Which TWO parameters should they adjust?

Select 2 answers
A.Increase the temperature
B.Increase the max token count
C.Increase the top_k value
D.Decrease the top_p value
E.Decrease the temperature
AnswersD, E

Lower top_p reduces the set of possible tokens, making output less random.

Why this answer

Decreasing the temperature (Option E) reduces randomness by lowering the probability of sampling lower-ranked tokens, making the model more deterministic. Decreasing top_p (Option D) narrows the cumulative probability threshold for token selection, which also reduces randomness while still allowing some diversity within the narrowed set. Together, these parameters control the trade-off between creativity and determinism in Amazon Bedrock's text generation.

Exam trap

The AIF-C01 exam often tests the misconception that increasing top_k or top_p reduces randomness, when in fact increasing either expands the token pool and can increase randomness, while decreasing them is what reduces randomness.

407
MCQmedium

A company is using Amazon Rekognition to detect objects in images. They find that the service sometimes mislabels objects. What is the best way to improve accuracy for their specific use case?

A.Use a larger image size
B.Contact AWS support
C.Increase the confidence threshold
D.Use Amazon SageMaker to build a custom model
AnswerD

A custom model trained on domain-specific data can significantly improve accuracy.

Why this answer

Amazon Rekognition is a pre-trained service that may not perform optimally for specialized or domain-specific use cases. By using Amazon SageMaker to build a custom model, you can train a model on your own labeled dataset, which directly addresses the mislabeling issue by tailoring the model to your specific images and objects.

Exam trap

The trap here is that candidates often assume increasing the confidence threshold is a universal fix for accuracy issues, but the AIF-C01 exam tests the understanding that pre-trained services have limitations and that custom training (via SageMaker) is required for domain-specific improvements.

How to eliminate wrong answers

Option A is wrong because using a larger image size does not inherently improve Rekognition's detection accuracy; the service already resizes images to a standard input size, and larger images may only increase processing time without correcting mislabeling. Option B is wrong because contacting AWS support will not modify the underlying pre-trained model or improve its accuracy for your specific use case; support can only assist with service configuration or bugs, not model retraining. Option C is wrong because increasing the confidence threshold reduces false positives but does not fix systematic mislabeling; it may cause the service to return fewer results, potentially missing correct detections, without addressing the root cause of incorrect object identification.

408
Multi-Selecthard

Which THREE considerations are essential when deploying a generative AI application in a regulated industry such as healthcare?

Select 3 answers
A.Lowest possible inference latency for real-time responses.
B.Full audit trail of model inputs and outputs for accountability.
C.Robust content filtering to block harmful or inaccurate outputs.
D.Maximum creative freedom for the model to generate diverse responses.
E.Data privacy and compliance with regulations like HIPAA.
AnswersB, C, E

Required for compliance and investigation.

Why this answer

Regulated industries like healthcare require a complete audit trail of model inputs and outputs to ensure accountability and traceability. This is essential for compliance with regulations such as HIPAA, which mandates logging of all access and processing of protected health information (PHI). Without a full audit trail, it is impossible to verify that the model's decisions are compliant or to investigate potential violations.

Exam trap

The trap here is that candidates may prioritize performance metrics like latency (Option A) over compliance requirements, mistakenly assuming that speed is always critical in healthcare, whereas AWS services in regulated industries must prioritize data privacy and auditability as non-negotiable, as mandated by regulations like HIPAA.

409
MCQmedium

A company is using Amazon Bedrock Knowledge Bases to power a legal document Q&A application. They need to ensure that the model only answers based on the retrieved documents and does not generate information not present in the documents. Which feature should they enable?

A.Content filtering
B.Topic denial
C.Grounding check
D.PII detection
AnswerC

Grounding check verifies that the response is supported by the retrieved source documents, reducing hallucinations.

Why this answer

The grounding check feature in Amazon Bedrock Knowledge Bases explicitly validates that the model's response is supported by the retrieved source documents. It compares the generated answer against the retrieved passages and rejects or flags any content that is not directly grounded in those documents, ensuring the model does not hallucinate or fabricate information.

Exam trap

The trap here is that candidates often confuse content filtering or topic denial with grounding, not realizing that grounding specifically addresses factual adherence to retrieved sources rather than content safety or topic restrictions.

How to eliminate wrong answers

Option A is wrong because content filtering is designed to block harmful or inappropriate content (e.g., hate speech, violence) based on predefined categories, not to verify that the model's output is factually supported by retrieved documents. Option B is wrong because topic denial prevents the model from discussing specific prohibited topics (e.g., illegal advice), but it does not enforce that answers must be grounded in retrieved context. Option D is wrong because PII detection identifies and redacts personally identifiable information (e.g., names, SSNs) from inputs or outputs, but it does not ensure the model's responses are based solely on the provided documents.

410
MCQhard

A company is building a resume screening model and discovers that the training data contains only resumes from one gender, leading to biased predictions. Which type of bias does this represent, and what is the most effective mitigation strategy?

A.Aggregation bias; mitigate by using a single model for all groups
B.Representation bias; mitigate by collecting more diverse training data
C.Measurement bias; mitigate by using more precise measurement tools
D.Historical bias; mitigate by removing sensitive attributes from the model
AnswerB

Representation bias stems from underrepresentation of groups in training data. Collecting diverse data is the most direct mitigation.

Why this answer

Representation bias occurs when certain groups are underrepresented in the training data. Mitigation includes collecting more diverse data or using techniques like re-weighting or synthetic data generation.

411
MCQmedium

A data science team is using Amazon SageMaker to train multiple models with different hyperparameters. They want to track metrics, compare runs, and reproduce the best result. Which SageMaker feature should they use?

A.SageMaker Model Registry
B.SageMaker Debugger
C.SageMaker Autopilot
D.SageMaker Experiments
AnswerD

Experiments provides a framework for tracking and comparing multiple training runs.

Why this answer

SageMaker Experiments is the correct feature because it is specifically designed to track, organize, and compare machine learning training runs (trials) with different hyperparameters and metrics. It allows data scientists to log parameters, metrics, and artifacts for each run, compare results across runs, and retrieve the exact configuration needed to reproduce the best-performing model.

Exam trap

The trap here is that candidates often confuse SageMaker Experiments with SageMaker Model Registry, mistakenly thinking that model versioning and run tracking are the same feature, when in fact Experiments focuses on the iterative training process and Registry focuses on the final model lifecycle.

How to eliminate wrong answers

Option A is wrong because SageMaker Model Registry is a catalog for managing and versioning trained models, not for tracking and comparing individual training runs or hyperparameter experiments. Option B is wrong because SageMaker Debugger monitors training jobs in real time for issues like vanishing gradients or overfitting, but it does not provide a structured way to log, compare, or reproduce runs with different hyperparameters. Option C is wrong because SageMaker Autopilot automatically explores different algorithms and hyperparameters to find the best model, but it does not give the team the ability to manually track, compare, and reproduce their own custom runs with specific hyperparameters.

412
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.

413
MCQmedium

A team has created a knowledge base in Amazon Bedrock for a Q&A application. After updating the source documents, they notice that the model still returns old information. What is the MOST likely cause?

A.The chunking strategy is incorrect
B.The foundation model has a limited context window
C.The guardrails are filtering out the new information
D.The knowledge base has not been resynchronized after updating the documents
AnswerD

Syncing is required to reflect changes in the vector store.

Why this answer

The vector store must be resynchronized after document updates. Chunking changes, model selection, and guardrails would not cause stale data if the vector store is not refreshed.

414
Multi-Selecthard

A company is using Amazon SageMaker to manage the lifecycle of their machine learning models. They need to implement a governance framework that includes model versioning, monitoring for drift, and decommissioning of outdated models. Which THREE AWS services or features should they use together to meet these requirements? (Select THREE.)

Select 3 answers
A.AWS CloudTrail
B.SageMaker Pipelines
C.SageMaker Model Registry
D.SageMaker Role Manager
E.SageMaker Model Monitor
AnswersB, C, E

Pipelines can automate the decommissioning of outdated models by triggering endpoints to update or delete.

Why this answer

SageMaker Model Registry handles versioning, SageMaker Model Monitor detects drift, and SageMaker Pipelines can orchestrate decommissioning workflows. Together they cover the governance lifecycle.

415
Multi-Selecteasy

A company is using Amazon Rekognition to detect objects in images stored in an S3 bucket. The company needs to ensure that the Rekognition service has permission to read images from the S3 bucket. Which TWO methods can achieve this? (Choose TWO.)

Select 2 answers
A.Attach an IAM role to the Lambda function that calls Rekognition, with an IAM policy granting s3:GetObject on the bucket
B.Create an IAM role for Rekognition to assume and attach it to the Rekognition service
C.Configure the S3 bucket with a bucket ACL that grants read access to the Rekognition service
D.Attach a resource-based policy to the Rekognition collection allowing S3 access
E.Add a bucket policy that grants the Rekognition service principal (rekognition.amazonaws.com) permission to read objects
AnswersA, E

The IAM role provides permissions to the Lambda function to read from S3.

Why this answer

When a Lambda function calls Amazon Rekognition, the function needs an IAM role with a policy that grants s3:GetObject permission on the source bucket. This allows the Lambda function to read the images and pass them to Rekognition for analysis. Option E is correct because you can attach a bucket policy that explicitly grants the Rekognition service principal (rekognition.amazonaws.com) permission to read objects, enabling Rekognition to directly access the S3 bucket when invoked.

Exam trap

The trap here is that candidates often confuse which AWS services can assume IAM roles (like Lambda or EC2) versus those that require resource-based policies (like Rekognition or S3), leading them to incorrectly select option B.

416
MCQeasy

A company uses a generative AI model to create marketing copy. They want to ensure that customers know the content is AI-generated. Which practice directly addresses this transparency requirement?

A.Implement AWS CloudTrail to log all model inference calls
B.Add a watermark or disclaimer stating 'This content was generated by AI'
C.Store all generated content in Amazon S3 with versioning enabled
D.Use a more powerful model to generate more natural-sounding text
AnswerB

Explicit disclosure that content is AI-generated meets transparency requirements under emerging regulations and responsible AI guidelines.

Why this answer

Transparency in AI-generated content involves clearly disclosing to users that the content was produced by AI. This can be done through disclaimers, labeling, or other communication methods.

417
Multi-Selectmedium

A company is deploying a generative AI application using Amazon Bedrock and needs to optimize costs for a high-volume, latency-tolerant workload. Which TWO strategies should they implement? (Select TWO.)

Select 2 answers
A.Use Batch Inference for asynchronous processing
B.Deploy a large model and fine-tune it
C.Use a smaller, more efficient foundation model
D.Enable Provisioned Throughput for guaranteed capacity
E.Implement model caching to avoid redundant inferences
AnswersA, C

Batch inference is cheaper per request and suitable for non-real-time workloads.

Why this answer

Using a smaller model reduces per-request cost, and batch inference processes large volumes asynchronously at lower cost. Provisioned Throughput increases cost; caching helps but is not a primary cost optimization for high-volume; fine-tuning adds cost.

418
MCQhard

A company wants to use Amazon Bedrock to generate personalized marketing emails. They have thousands of customer profiles with demographic data. To generate tailored content efficiently, the application must dynamically insert customer-specific information into prompts. Which prompt management technique is BEST suited for this?

A.Using a larger foundation model to understand the entire customer base
B.Prompt flows with variables
C.Fine-tuning the model on all customer profiles
D.Prompt versioning
AnswerB

Prompt flows let you define templates with placeholders that are populated with customer data for each request.

Why this answer

Prompt flows with variables allow the application to dynamically insert customer-specific data (e.g., name, age, purchase history) into a base prompt template at runtime. This technique avoids retraining or switching models for each customer, enabling efficient, personalized content generation without modifying the underlying foundation model.

Exam trap

The trap here is that fine-tuning adapts the model to a general pattern (e.g., tone or style) and cannot handle per-customer dynamic data insertion—prompt variables are the correct, lightweight solution.

How to eliminate wrong answers

Option A is wrong because using a larger foundation model does not inherently enable dynamic insertion of customer-specific data; it only increases computational cost and latency without solving the need for variable substitution. Option C is wrong because fine-tuning the model on all customer profiles is impractical, expensive, and unnecessary—fine-tuning adapts the model to a domain or style, not to individual customer records, and would require retraining for every new profile. Option D is wrong because prompt versioning tracks changes to prompt templates over time but does not provide a mechanism to inject runtime variables into prompts.

419
MCQmedium

A data scientist is using Amazon SageMaker Clarify to analyze a model and discovers that the model treats two different demographic groups differently when they should have similar outcomes. The data scientist wants to quantify this difference using a metric that compares the proportion of positive outcomes for each group. Which metric should be used?

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

Demographic parity (statistical parity) measures the difference in positive outcome rates between groups.

Why this answer

Demographic parity measures whether the proportion of positive outcomes is equal across groups. It is also known as statistical parity.

420
MCQmedium

Refer to the exhibit. A data scientist created this endpoint config for a foundation model in Amazon SageMaker. However, the endpoint fails to scale under load. What is the most likely reason?

A.Missing AutoScaling configuration
B.Variant weight is 1.0
C.Instance type is too small
D.InitialInstanceCount is 1
AnswerA

Auto scaling policy is required to add instances under load.

Why this answer

The endpoint fails to scale under load because the endpoint configuration shown lacks an AutoScaling policy. Without AutoScaling, SageMaker will not automatically adjust the number of instances based on traffic, so even if the initial instance count is 1, the endpoint cannot add more instances to handle increased load. AutoScaling must be explicitly configured via Application Auto Scaling to define scaling policies and target tracking metrics.

Exam trap

AWS often tests the misconception that setting a higher InitialInstanceCount or choosing a larger instance type alone enables scaling, when in fact AutoScaling must be explicitly configured as a separate step.

How to eliminate wrong answers

Option B is wrong because a variant weight of 1.0 is the default and does not prevent scaling; it simply means all traffic is routed to that variant. Option C is wrong because the instance type being 'too small' would cause performance issues or throttling, but it does not prevent the endpoint from scaling out; scaling is controlled by AutoScaling, not instance size. Option D is wrong because an InitialInstanceCount of 1 is a valid starting point; the endpoint can still scale out if AutoScaling is configured, so a single initial instance does not inherently block scaling.

421
MCQmedium

A company is training a deep learning model on Amazon SageMaker using a large dataset stored in S3. Training jobs are frequently failing with 'OutOfMemoryError'. The training algorithm uses PyTorch. How should the data scientist solve this without reducing model accuracy?

A.Use SageMaker Pipe mode for data ingestion
B.Reduce the number of layers in the model
C.Increase the batch size
D.Use a smaller instance type with less memory
AnswerA

Pipe mode streams data directly, reducing memory footprint and preventing OutOfMemoryError.

Why this answer

SageMaker Pipe mode streams training data directly from S3 into the algorithm without first downloading it to the local disk, which drastically reduces memory consumption. This allows the model to handle large datasets that would otherwise cause an OutOfMemoryError when using the default File mode, all while preserving the original model architecture and accuracy.

Exam trap

The AIF-C01 exam often tests the misconception that reducing model complexity or instance size is the only way to fix memory errors, when in fact data ingestion mode changes (like Pipe mode) can resolve the issue without sacrificing accuracy or performance.

How to eliminate wrong answers

Option B is wrong because reducing the number of layers in the model would decrease model capacity and likely reduce accuracy, which violates the requirement to not reduce model accuracy. Option C is wrong because increasing the batch size would increase memory usage per training step, exacerbating the OutOfMemoryError rather than solving it. Option D is wrong because using a smaller instance type with less memory would make the memory problem worse, not better, and would likely lead to even more frequent failures.

422
MCQmedium

A large e-commerce company uses a recommendation system to suggest products to customers. Recently, a data scientist noticed that the model's recommendations for high-value luxury items are predominantly shown to users in affluent zip codes, while users in less affluent areas rarely see these items, even if they have searched for them. The company is concerned about fairness and wants to ensure all customers have equal access to recommendations regardless of location. The current model uses collaborative filtering on historical purchase data. The team needs to modify the system without sacrificing overall recommendation accuracy. Which action best addresses the fairness concern while maintaining performance?

A.Randomly show luxury recommendations to a subset of users regardless of their behavior
B.Remove zip code and any income-correlated features from the training data
C.Add more training data from less affluent areas to balance the dataset
D.Implement a separate recommendation pipeline for luxury items based only on search history
AnswerB

Removing biased features eliminates the source of unfairness in recommendations.

Why this answer

The most effective approach is to ensure the model does not use zip code or any feature correlated with income as a direct or indirect input. This removes the proxy for socioeconomic status. Simply equalizing recommendation frequency artificially may hurt relevance.

Personalizing based on search history is already being done but zip code bias remains. Adding more training data may not help if the bias is in the features.

423
MCQhard

A company needs to generate high-quality images from text descriptions for a marketing campaign. They need to ensure the images are photorealistic and that the model can generate variations of a given image. Which type of model should they use?

Answer options not yet available.

Why this answer

Diffusion models (e.g., Stable Diffusion, Amazon Titan Image Generator) are the state-of-the-art for text-to-image generation and can produce photorealistic results with variations.

424
MCQhard

During a SageMaker training job, the data scientist observes that the loss is not decreasing after the initial few epochs. The model is a deep neural network with ReLU activations. Which hyperparameter adjustment is most likely to help?

A.Reduce the learning rate
B.Increase the number of epochs
C.Increase the learning rate
D.Decrease the batch size
AnswerA

A lower learning rate can allow the optimizer to find a better minimum.

Why this answer

When loss plateaus after a few epochs with ReLU activations, the model is likely stuck in a region where gradients are small (e.g., near a local minimum or plateau). Reducing the learning rate allows the optimizer to take smaller steps, which can help it navigate out of flat regions and continue decreasing the loss. This is a standard technique to improve convergence when training stalls.

Exam trap

The AIF-C01 exam often tests the misconception that increasing the learning rate will accelerate convergence, but in plateau scenarios it actually causes divergence or oscillation, making the reduction of learning rate the correct adjustment.

How to eliminate wrong answers

Option B is wrong because increasing the number of epochs does not address the underlying issue of the optimizer being unable to escape a plateau; it would simply continue training with no improvement. Option C is wrong because increasing the learning rate would likely cause the optimizer to overshoot the minimum or oscillate, potentially worsening the loss plateau. Option D is wrong because decreasing the batch size introduces more noise into gradient estimates, which can destabilize training and does not directly help when the loss is stuck on a plateau.

425
MCQmedium

A company is using Amazon SageMaker JumpStart to deploy a pre-trained text generation model. After deployment, the model produces slow inference responses. Which action is most likely to improve inference latency?

A.Quantize the model weights to FP16 or INT8.
B.Deploy the model on a more powerful instance type with higher GPU memory.
C.Fine-tune the model on a smaller dataset.
D.Increase the batch size for inference requests.
AnswerB

More compute resources reduce inference time per request.

Why this answer

Deploying the model on a more powerful instance type with higher GPU memory directly addresses the computational bottleneck causing slow inference. A larger GPU provides more CUDA cores and memory bandwidth, enabling faster matrix operations and reducing the time per forward pass for the pre-trained text generation model.

Exam trap

The AIF-C01 exam often tests the misconception that model optimization techniques like quantization always improve latency without trade-offs, but the most direct and reliable method for reducing inference latency is upgrading to a more powerful instance type with higher GPU memory.

How to eliminate wrong answers

Option A is wrong because quantizing model weights to FP16 or INT8 reduces model size and can improve latency, but it may degrade output quality and is not the most direct or guaranteed fix for slow inference; the question asks for the action most likely to improve latency, and upgrading hardware is more reliable. Option C is wrong because fine-tuning on a smaller dataset adjusts the model for a specific task but does not inherently speed up inference; it may even increase latency if the fine-tuned model is larger or uses more complex attention patterns. Option D is wrong because increasing batch size for inference requests typically increases throughput (requests per second) but can increase per-request latency due to longer queue times and higher memory usage, making it counterproductive for reducing individual response time.

426
MCQmedium

A company is using Amazon Bedrock to generate text summaries of customer emails. The compliance team requires that any email containing a Social Security Number (SSN) must be blocked from being sent to the model for summarization. Which Bedrock Guardrail configuration should be used?

A.Configure a topic restriction to block 'PII' topics
B.Enable model invocation logging and manually review all inputs
C.Add a word filter with a list of common SSN patterns
D.Use a content policy with a PII filter set to 'Deny' for SSN
AnswerD

Bedrock Guardrails include managed PII filters that can deny input containing specific PII types like SSNs.

Why this answer

Bedrock Guardrails can be configured to filter content before it is sent to the model. PII redaction with a deny action will block the input if SSNs are detected. The guardrail is applied at invocation time.

427
MCQeasy

A company wants to extract text and data from scanned PDF invoices for automated processing. Which AWS service is MOST appropriate for this task?

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

Textract is built for extracting text and data from scanned documents, including invoices.

Why this answer

Amazon Textract is specifically designed to extract text, handwriting, and data from scanned documents like PDF invoices. It uses machine learning to recognize and extract key-value pairs, tables, and form data, making it the most appropriate service for automated invoice processing.

Exam trap

The trap here is that candidates may confuse Amazon Textract with Amazon Rekognition, since both can process images, but Rekognition lacks the specialized document layout analysis and key-value extraction capabilities required for invoice processing.

How to eliminate wrong answers

Option A is wrong because Amazon Rekognition is optimized for image and video analysis (e.g., object detection, facial recognition), not for extracting structured text and data from scanned documents. Option B is wrong because Amazon Transcribe is a speech-to-text service for converting audio to text, not for processing scanned PDFs. Option C is wrong because Amazon Comprehend is a natural language processing (NLP) service for analyzing text sentiment, entities, and key phrases, but it cannot extract text from scanned images or PDFs—it requires text input.

428
MCQmedium

A bank wants to use Amazon Augmented AI (A2I) to review high-value loan applications that require human judgment. Which workflow best implements human-in-the-loop review for these predictions?

A.Set up an A2I workflow with a confidence threshold, so low-confidence predictions are sent to human reviewers
B.Route all loan applications to human reviewers for approval
C.Use Amazon Mechanical Turk to review all predictions in real time
D.Configure a private workforce in Amazon SageMaker Ground Truth
AnswerA

A2I allows setting conditions like a confidence threshold to trigger human review, balancing automation and human oversight.

Why this answer

Amazon A2I enables human review of low-confidence predictions or specific conditions. The best practice is to set a confidence threshold; predictions below that threshold are sent to human reviewers.

429
MCQmedium

A financial services company deploys a generative AI chatbot for customer support. They want to prevent the chatbot from generating harmful or misleading information. Which AWS service can help monitor and filter responses?

A.Amazon GuardDuty
B.Amazon Augmented AI (A2I) with human review
C.AWS WAF
D.Amazon Comprehend
AnswerB

Amazon A2I provides built-in human review workflows to review and filter model outputs, making it ideal for ensuring responsible AI responses.

Why this answer

Amazon Augmented AI (A2I) enables human review of machine learning predictions, making it suitable for monitoring and filtering chatbot responses for harmful or misleading content. Other options: Amazon GuardDuty is a threat detection service, not for content filtering. AWS WAF protects web applications from common web exploits.

Amazon Comprehend is a natural language processing service for insights, but not designed for real-time filtering with human review.

430
Multi-Selectmedium

A data scientist is preparing data for a classification task. Which TWO techniques are commonly used for handling missing values? (Choose two.)

Select 2 answers
A.Label encoding
B.Normalization
C.Imputing with mean
D.Dropping rows with any missing values
E.One-hot encoding
AnswersC, D

Mean imputation replaces missing values with the mean of the column.

Why this answer

Imputing with the mean is a common technique for handling missing values in numerical features because it preserves the overall distribution of the data without reducing the dataset size. This method replaces each missing entry with the arithmetic mean of the non-missing values in that column, which is simple to implement and works well when data is missing completely at random (MCAR).

Exam trap

The AIF-C01 exam often tests the distinction between data preprocessing techniques (e.g., encoding, scaling) and missing value handling, so candidates mistakenly select label encoding or normalization because they are common preprocessing steps, even though they do not address missing data.

431
MCQmedium

Refer to the exhibit. A SageMaker training job fails with an 'AccessDenied' error when trying to read files from the S3 bucket 'my-training-data'. The IAM role used by the training job has the policy shown. What is the most likely reason for the failure?

A.The bucket policy requires encryption in transit
B.The training job is using the wrong AWS region
C.The policy does not include the s3:PutObject action
D.The policy does not include the s3:ListBucket action
AnswerD

Without ListBucket, SageMaker cannot list the contents of the bucket to verify object existence.

Why this answer

The IAM policy grants s3:GetObject but not s3:ListBucket. When a SageMaker training job reads files from S3, the SageMaker SDK or framework (e.g., TensorFlow, PyTorch) often performs a ListBucket call first to enumerate objects in the prefix. Without s3:ListBucket, the SDK cannot discover the files, resulting in an AccessDenied error even though GetObject is allowed.

Exam trap

AWS often tests the misconception that only s3:GetObject is needed for reading from S3, but the SDK's underlying ListBucket call is required for object discovery, especially when using prefixes or manifest files.

How to eliminate wrong answers

Option A is wrong because the error is an IAM AccessDenied, not a bucket policy condition failure; encryption in transit would cause a different error (e.g., 'The request was denied because of a condition in the bucket policy'). Option B is wrong because the training job and S3 bucket must be in the same region for SageMaker to access the data, but the error message would be 'BucketRegionError' or a timeout, not AccessDenied. Option C is wrong because s3:PutObject is not needed for reading files; the training job only requires read permissions (GetObject and ListBucket) to fetch training data.

432
MCQhard

A legal firm uses Amazon Bedrock to generate contract summaries. They want to evaluate the quality of summaries against human-written reference summaries. The evaluation should capture both the overlap of n-grams and the semantic similarity. Which combination of automated metrics is MOST appropriate?

A.Exact match and F1 score
B.ROUGE and BLEU
C.ROUGE and BERTScore
D.BLEU and BERTScore
AnswerC

ROUGE captures n-gram overlap for summarization; BERTScore captures semantic similarity via embeddings. Together they cover both lexical and semantic quality.

Why this answer

ROUGE measures n-gram overlap (recall-oriented) for summarization, while BERTScore uses contextual embeddings to capture semantic similarity. BLEU is for translation. Combining ROUGE and BERTScore gives both lexical and semantic evaluation.

433
MCQmedium

A financial services firm needs to ensure that all calls to Amazon Bedrock APIs are logged for audit purposes. Which AWS service should they enable to capture API calls?

A.AWS CloudTrail
B.Amazon S3 server access logs
C.Amazon CloudWatch Logs
D.AWS Config
AnswerA

CloudTrail records all AWS API calls, including Bedrock, for auditing and compliance.

Why this answer

AWS CloudTrail records API activity in AWS accounts, including Bedrock API calls, providing audit logs.

434
Multi-Selectmedium

A data science team uses Amazon SageMaker to train models. To comply with SOC 2, they must ensure that access to training data is logged, that the data is encrypted at rest, and that model training jobs are isolated from each other. Which THREE actions should they take? (Choose three.)

Select 3 answers
A.Enable Amazon Inspector to scan training instances for vulnerabilities.
B.Enable server-side encryption on the S3 bucket containing training data using SSE-KMS.
C.Use SageMaker Debugger to monitor training jobs.
D.Enable AWS CloudTrail to capture SageMaker API calls.
E.Use SageMaker VPC mode to launch training jobs in a private subnet.
AnswersB, D, E

SSE-KMS encrypts data at rest.

Why this answer

Enabling server-side encryption on the S3 bucket containing training data using SSE-KMS ensures data at rest is encrypted, which is a direct requirement for SOC 2 compliance. SSE-KMS provides envelope encryption with a customer-managed AWS KMS key, allowing fine-grained access control and audit trails for the encryption keys.

Exam trap

The trap here is that candidates may confuse Amazon Inspector with a logging or encryption service, or think SageMaker Debugger provides security logging, when in fact Inspector only scans for vulnerabilities and Debugger only monitors model training metrics.

435
Multi-Selecthard

A company is deploying a generative AI application using Amazon Bedrock and needs to optimize costs. They expect variable traffic with occasional high spikes. Which TWO strategies would help reduce costs while maintaining performance?

Select 2 answers
A.Enable model caching to serve repeated prompts without re-inference
B.Use on-demand inference with batch processing for non-real-time requests
C.Always use the largest available foundation model for quality
D.Use provisioned throughput to handle spikes
E.Fine-tune a larger model for better accuracy
AnswersA, B

Caching avoids repeated computation for identical requests.

Why this answer

Model caching reduces cost for repeated queries, and batch inference is cheaper for non-real-time workloads. Provisioned throughput is expensive and not cost-optimal for variable traffic. Fine-tuning and using the largest model increase costs.

436
Multi-Selectmedium

A healthcare organization is deploying an AI system to assist in diagnosing diseases from medical images. They need to ensure the system is robust, safe, and subject to human oversight. Which TWO actions align with responsible AI guidelines? (Select TWO.)

Select 2 answers
A.Monitor model performance over time to detect data drift
B.Deploy the model directly to production without testing
C.Use Amazon Augmented AI (A2I) to set up human review for uncertain predictions
D.Permanently disable human review to speed up diagnoses
E.Use only one source of training data
AnswersA, C

Data drift can degrade model accuracy; monitoring ensures robustness and triggers retraining when needed.

Why this answer

Monitoring for data drift and integrating human review for high-risk decisions are key practices for robustness, safety, and controllability. The other options are either insufficient or irrelevant.

437
MCQeasy

A developer is using Amazon Bedrock to create a chatbot. They want to ensure the bot does not generate toxic or offensive content. Which feature should they enable?

A.Use careful prompt engineering to avoid toxic responses.
B.Fine-tune the model on a dataset of safe responses.
C.Enable content filtering on the Bedrock model.
D.Implement external response validation using a third-party API.
AnswerC

Content filtering provides automated detection and blocking of inappropriate content.

Why this answer

Amazon Bedrock provides built-in content filtering capabilities that can be enabled at the model invocation level to automatically detect and block toxic or offensive content in both input prompts and generated responses. This feature uses predefined safety filters (e.g., hate, insults, sexual content, violence) and is the most direct and managed way to prevent harmful outputs without requiring custom development.

Exam trap

A common misconception is that prompt engineering alone is sufficient for safety, when in fact Bedrock's content filtering is the explicit, managed feature designed to enforce content policies at runtime.

How to eliminate wrong answers

Option A is wrong because careful prompt engineering can reduce but not guarantee the elimination of toxic responses, as the underlying model may still generate harmful content due to its training data or adversarial inputs. Option B is wrong because fine-tuning the model on a dataset of safe responses requires significant data preparation, cost, and expertise, and it does not provide a runtime guard against all toxic outputs, especially for edge cases. Option D is wrong because implementing external response validation using a third-party API adds latency, complexity, and potential cost, and it is not a native Bedrock feature; Bedrock already offers content filtering as a first-class, integrated service.

438
MCQmedium

A company is developing an AI system that transcribes medical consultations. To ensure privacy and security, they need to implement controls that protect patient health information (PHI). Which AWS service can help anonymize data before it is used for model training?

A.Amazon SageMaker Ground Truth
B.AWS Lake Formation
C.Amazon Rekognition
D.Amazon Comprehend Medical
AnswerD

Comprehend Medical can detect PHI entities, enabling redaction or anonymization.

Why this answer

Amazon Comprehend Medical can detect and extract PHI, and AWS Glue can assist in data preparation, but for direct anonymization, services like Amazon Macie or custom solutions may be used. However, among the options, Amazon Comprehend Medical is most directly related to identifying PHI in medical text.

439
MCQhard

A data scientist is building a RAG application using Amazon Bedrock Knowledge Bases. They want to ensure that only the most semantically relevant documents are retrieved for each query. Which embedding model characteristic is MOST important for this requirement?

A.Large training dataset size
B.High embedding dimension
C.Long context window
D.Low inference latency
AnswerB

Correct. Higher dimensions can represent more nuanced semantics, improving relevance.

Why this answer

Semantic relevance depends on the quality of embeddings. High-dimensional embeddings (e.g., 1024-dim) can capture finer semantic nuances compared to lower dimensions, leading to better retrieval accuracy. Training data diversity, inference latency, and context window length are secondary factors.

440
MCQeasy

A company wants to track API calls made to Amazon SageMaker for audit purposes. Which AWS service should they enable?

A.AWS CloudTrail
B.Amazon Macie
C.AWS Config
D.Amazon CloudWatch Logs
AnswerA

CloudTrail records all API calls for auditing and compliance.

Why this answer

AWS CloudTrail is the correct service because it records API activity across AWS services, including Amazon SageMaker. By enabling CloudTrail, the company can capture all SageMaker API calls (e.g., CreateModel, InvokeEndpoint) for audit, compliance, and security analysis. CloudTrail logs provide details such as the identity of the caller, the time of the call, and the request parameters, which are essential for auditing.

Exam trap

The trap here is that candidates often confuse AWS CloudTrail (for API auditing) with Amazon CloudWatch Logs (for log monitoring), mistakenly thinking CloudWatch Logs is the primary service for tracking API calls, but CloudTrail is the dedicated service for recording API activity across AWS.

How to eliminate wrong answers

Option B (Amazon Macie) is wrong because Macie is a data security service that uses machine learning to discover, classify, and protect sensitive data in Amazon S3, not to track API calls. Option C (AWS Config) is wrong because Config evaluates and records resource configuration changes (e.g., SageMaker endpoint configuration), not API call activity. Option D (Amazon CloudWatch Logs) is wrong because CloudWatch Logs is for monitoring, storing, and accessing log files from applications and AWS services, but it does not natively capture API calls; it can ingest CloudTrail logs but is not the primary service for API auditing.

441
MCQmedium

A developer is trying to invoke the Claude v2 model in Amazon Bedrock from a Lambda function. The Lambda function's IAM role has the following policy attached: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "bedrock:InvokeModel", "Resource": "*" } ] } When the Lambda function runs, it receives the error shown in the exhibit. Which additional step is most likely needed to resolve this issue?

A.Change the AWS region to one where Claude v2 is available.
B.Use a different model ID such as 'anthropic.claude-v1'.
C.Request access to the Anthropic Claude model through the Amazon Bedrock console.
D.Add a condition to the IAM policy to specify the model ARN.
AnswerC

Model access must be explicitly granted per model even with IAM permissions.

Why this answer

Amazon Bedrock requires explicit user access approval for third-party foundation models like Anthropic Claude before they can be invoked. Even with a valid IAM policy allowing bedrock:InvokeModel on all resources, the model itself must be granted access via the Bedrock console's 'Model access' section. Without this step, the API returns an access denied error regardless of IAM permissions.

Exam trap

The trap here is that candidates assume a wildcard IAM policy (Resource: '*') grants full access, but Bedrock requires an additional explicit model access approval that is independent of IAM, causing them to incorrectly focus on policy or region changes.

How to eliminate wrong answers

Option A is wrong because the error is not due to regional availability; Claude v2 is available in multiple regions (e.g., us-west-2, us-east-1) and the region choice does not bypass the model access requirement. Option B is wrong because using a different model ID like 'anthropic.claude-v1' would still require explicit model access for that specific model; the error is about access, not model version. Option D is wrong because adding a condition to specify the model ARN does not resolve the missing model access approval; the IAM policy already allows all resources, and the issue is at the service level, not the policy level.

442
MCQeasy

A company wants to build a generative AI application that generates personalized marketing emails based on customer data. They have a small dataset of past emails. Which AWS service should they use to fine-tune a foundation model with their data?

A.Amazon SageMaker
B.Amazon Comprehend
C.AWS Lambda
D.Amazon Bedrock
AnswerA

SageMaker with JumpStart allows fine-tuning of foundation models using custom datasets and provides managed training infrastructure.

Why this answer

Amazon SageMaker is correct because it provides a fully managed environment for fine-tuning foundation models using custom datasets, such as the company's small dataset of past emails. With SageMaker's built-in JumpStart capabilities, you can access and fine-tune pre-trained models (e.g., from Hugging Face or AWS) using your own data, enabling personalized marketing email generation without managing underlying infrastructure.

Exam trap

The trap here is that candidates confuse Amazon Bedrock's API access to foundation models with the ability to fine-tune them, but Bedrock currently only supports inference and prompt customization, not model fine-tuning with custom data.

How to eliminate wrong answers

Option B (Amazon Comprehend) is wrong because it is a natural language processing (NLP) service for extracting insights like sentiment or entities from text, not for fine-tuning or generating text. Option C (AWS Lambda) is wrong because it is a serverless compute service for running code in response to events, not designed for model training or fine-tuning workloads. Option D (Amazon Bedrock) is wrong because while it provides access to foundation models via API, it does not currently support fine-tuning with custom datasets; it only allows inference and prompt engineering, not model customization through training.

443
MCQmedium

A healthcare startup is using Amazon SageMaker to train a model on patient data. They need to ensure that the training data does not contain any personally identifiable information (PII) before being used. Which AWS service can automatically detect and report PII in the data stored in S3?

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

Macie is the correct service for automated discovery of sensitive data in S3.

Why this answer

Amazon Macie uses machine learning to automatically discover, classify, and protect sensitive data in S3. It can detect PII such as names, addresses, and health information.

444
MCQeasy

A startup wants to generate product descriptions from a few keywords using a foundation model. They need a fully managed serverless solution that requires no infrastructure setup. Which AWS service should they use?

A.Amazon SageMaker
B.Amazon Comprehend
C.AWS Lambda
D.Amazon Bedrock
AnswerD

Bedrock is a serverless service offering foundation models via API.

Why this answer

Amazon Bedrock is a fully managed serverless service that provides access to foundation models (FMs) from leading AI providers via a simple API, making it ideal for generating product descriptions from keywords without any infrastructure management. It directly supports generative AI tasks like text generation, unlike other AWS services that focus on different ML or NLP capabilities.

Exam trap

The trap here is that candidates may confuse Amazon SageMaker's managed ML capabilities with a serverless generative AI service, overlooking that SageMaker requires explicit infrastructure setup for model hosting, while Bedrock is purpose-built for serverless access to foundation models.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker is a fully managed machine learning platform that requires setting up training jobs, endpoints, and infrastructure for custom models, not a serverless solution for directly using pre-built foundation models. Option B is wrong because Amazon Comprehend is a natural language processing (NLP) service for tasks like sentiment analysis and entity extraction, not for generative text creation from keywords. Option C is wrong because AWS Lambda is a serverless compute service that runs custom code but does not natively provide access to foundation models; you would need to integrate it with another service like Bedrock to generate descriptions, making it not a standalone solution for this use case.

445
MCQmedium

A company wants to reduce the cost of running a large number of inference requests for a text classification task. The responses can tolerate a slight delay. Which cost optimization strategy should they implement?

A.Store the training data in a vector store for faster retrieval
B.Use batch inference to process multiple requests asynchronously
C.Use a larger, more accurate model to reduce the number of retries
D.Implement model caching to reuse results for identical prompts
AnswerB

Batch inference groups requests, lowering per-request cost, and is suitable when real-time responses are not required.

Why this answer

Batch inference processes multiple requests together, reducing cost per request at the expense of higher latency. Model caching can help if there are many repeated requests, but batch inference is more general. Switching to a larger model increases cost.

Using a vector store is unrelated.

446
MCQhard

Refer to the exhibit. A developer deploys this CloudFormation stack but the agent fails to query the knowledge base. What is a likely cause?

A.The KnowledgeBaseId is not passed correctly
B.The agent role does not have permissions to invoke the knowledge base
C.The embedding model is not available in the region
D.The OpenSearch collection type should be SEARCH not VECTORSEARCH
AnswerB

The agent's IAM role must have bedrock:InvokeKnowledgeBase permission.

Why this answer

The agent role must have an IAM policy that grants the `bedrock:Retrieve` and `bedrock:RetrieveAndGenerate` permissions on the knowledge base. Without these permissions, the agent cannot invoke the knowledge base, even if the KnowledgeBaseId is correctly passed and the embedding model is available.

Exam trap

AWS often tests the distinction between resource creation permissions and runtime invocation permissions, trapping candidates who assume that a successful stack deployment implies all runtime permissions are correctly configured.

How to eliminate wrong answers

Option A is wrong because if the KnowledgeBaseId were not passed correctly, the stack would likely fail during creation or the agent would receive a different error (e.g., resource not found), not a generic failure to query. Option C is wrong because if the embedding model were not available in the region, the CloudFormation stack itself would fail during creation of the knowledge base, not during a subsequent query. Option D is wrong because the OpenSearch collection type for a knowledge base must be `VECTORSEARCH` to store and query vector embeddings; `SEARCH` is used for full-text search and does not support the vector similarity search required by the knowledge base.

447
MCQhard

A company using Amazon Bedrock needs to redact personally identifiable information (PII) from user inputs before sending them to the foundation model. Which Bedrock Guardrails component should be configured?

A.Content filters
B.Topic restrictions
C.Word filters
D.Sensitive information filters
AnswerD

Sensitive information filters (PII redaction) detect and redact PII.

Why this answer

PII redaction in Guardrails automatically detects and redacts PII in user inputs or model responses.

448
MCQmedium

A company is using Amazon Bedrock to build a text-to-SQL application. They want to ensure that the generated SQL queries are valid and safe. Which approach is BEST?

A.Fine-tune the model on a dataset of valid SQL queries
B.Use a separate model to validate the SQL after generation
C.Configure a guardrail to filter and validate the generated SQL
D.Limit the max_tokens to 50 to reduce complexity
AnswerC

Guardrails can enforce rules and reject invalid queries.

Why this answer

Amazon Bedrock guardrails provide a native, configurable mechanism to filter and validate model outputs, including SQL queries, against defined policies such as regex patterns, denied topics, and content filters. This approach directly addresses both validity and safety without requiring additional model training or external validation services, making it the most integrated and efficient solution for ensuring generated SQL is syntactically correct and free of harmful operations like DROP or DELETE.

Exam trap

The AIF-C01 exam often tests the misconception that fine-tuning or output length limits can solve safety and validity requirements, when in fact guardrails are the purpose-built AWS service for content filtering and validation at inference time.

How to eliminate wrong answers

Option A is wrong because fine-tuning on valid SQL queries improves the model's ability to generate syntactically correct SQL but does not guarantee safety; a fine-tuned model can still produce harmful queries (e.g., DROP TABLE) if the training data includes such patterns or if the model generalizes incorrectly. Option B is wrong because using a separate model for validation introduces additional latency, cost, and complexity, and still requires a policy or rule set to define what constitutes 'valid and safe'—which is exactly what Bedrock guardrails already provide natively. Option D is wrong because limiting max_tokens to 50 does not ensure SQL validity or safety; it only truncates output, potentially producing incomplete or syntactically invalid SQL, and does not prevent generation of dangerous commands.

449
MCQhard

An organization is using Amazon Bedrock to power a customer service chatbot. They notice that the chatbot occasionally generates hallucinated information about product specifications. Which strategy should be implemented to reduce hallucinations?

A.Fine-tune the model on a dataset of product specification conversations.
B.Integrate a Retrieval Augmented Generation (RAG) system with the product catalog.
C.Use more detailed prompts with explicit instructions to avoid speculation.
D.Increase the temperature parameter to make outputs more conservative.
AnswerB

RAG provides up-to-date, factual context to the model, reducing hallucinations.

Why this answer

Retrieval Augmented Generation (RAG) grounds the model's responses in authoritative, up-to-date product catalog data, directly reducing hallucinations by ensuring the chatbot references verified facts rather than relying solely on its parametric memory. This is the most effective strategy because it provides a retrieval-based factual foundation that fine-tuning or prompt engineering alone cannot guarantee.

Exam trap

The AIF-C01 exam often tests the misconception that prompt engineering or fine-tuning alone can solve hallucination problems, when in fact they lack the dynamic, verifiable grounding that RAG provides.

How to eliminate wrong answers

Option A is wrong because fine-tuning on product specification conversations may reinforce patterns from the training data but does not prevent the model from generating plausible-sounding but incorrect details when faced with queries outside the fine-tuned distribution; it also cannot dynamically incorporate real-time catalog updates. Option C is wrong because while more detailed prompts can reduce speculation, they do not provide the model with access to external, authoritative data—hallucinations can still occur when the model's internal knowledge is incomplete or outdated. Option D is wrong because increasing the temperature parameter makes outputs more random and creative, not more conservative; decreasing temperature would make outputs more deterministic and less prone to hallucination, but even low temperature cannot eliminate hallucinations without a retrieval mechanism.

450
MCQhard

A company uses Amazon Bedrock to deploy a foundation model for a real-time chat application. Users report that responses are slow. Which optimization is MOST likely to reduce latency without degrading quality?

A.Use a larger model variant to improve inference speed
B.Increase the temperature to make the model generate faster
C.Enable response streaming using the Converse API or InvokeModelWithResponseStream
D.Switch from a text generation model to an embedding model
AnswerC

Streaming allows the client to display partial results immediately, improving user experience.

Why this answer

Enabling response streaming with the Converse API or InvokeModelWithResponseStream allows the model to send tokens to the client as they are generated, rather than waiting for the full response. This reduces the user's perceived latency because the first token appears much sooner, even though the total generation time remains similar. This optimization directly addresses the real-time chat requirement without degrading output quality.

Exam trap

The trap here is that candidates confuse 'perceived latency' with 'total generation time' and assume that only model-level changes (like model size or parameters) can affect speed, overlooking the architectural optimization of streaming.

How to eliminate wrong answers

Option A is wrong because using a larger model variant typically increases inference time and latency, not reduces it, due to higher computational requirements. Option B is wrong because temperature controls the randomness of token selection, not the speed of generation; increasing it does not make the model generate faster and can degrade response quality. Option D is wrong because switching from a text generation model to an embedding model would fundamentally change the application's capability—embedding models produce vector representations, not conversational text, so the chat application would no longer function.

Page 5

Page 6 of 9

Page 7

All pages