Courseiva

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

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

Page 6

Page 7 of 9

Page 8
451
MCQmedium

A developer needs to reduce costs for a Bedrock application that processes high volumes of similar queries. The queries are repetitive and the model is invoked many times with the same prompt. Which cost optimization technique is MOST suitable?

A.Select a smaller right-sized model
B.Fine-tune the model on the common queries
C.Use batch inference to process multiple queries together
D.Enable model caching to serve repeated prompts from cache
AnswerD

Caching avoids recomputation for identical prompts, reducing latency and cost.

Why this answer

Model caching (prompt caching) stores responses to common prompts, reducing the need to recompute. Batch inference is for asynchronous processing, not real-time. Right-sizing the model helps but does not leverage query repetition.

Fine-tuning is for adapting the model, not cost savings on repetitive queries.

452
MCQeasy

A company is using Amazon Bedrock to build a generative AI application. The company wants to prevent the model from generating toxic or harmful content while still allowing creative responses. Which feature should the company enable?

A.Amazon Bedrock Guardrails with content filters.
B.AWS Key Management Service (KMS) to encrypt model responses.
C.AWS Identity and Access Management (IAM) policies to restrict model output.
D.Amazon CloudWatch Logs to monitor and block harmful content.
AnswerA

Guardrails provide configurable content filters to block harmful output without overly restricting creativity.

Why this answer

Amazon Bedrock Guardrails with content filters is the correct feature because it allows the company to define and enforce policies that block toxic or harmful content in model inputs and outputs, while still permitting creative responses within safe boundaries. This feature provides configurable thresholds for content categories like hate, insults, and sexual content, enabling precise control over model behavior without restricting overall creativity.

Exam trap

The trap here is that candidates may confuse security services (like KMS for encryption or IAM for access control) with content moderation capabilities, assuming any AWS security service can filter model outputs, when in fact only Bedrock Guardrails provides purpose-built content filters for generative AI.

How to eliminate wrong answers

Option B is wrong because AWS KMS encrypts data at rest and in transit but does not inspect or filter model responses for toxic content; encryption ensures confidentiality, not content safety. Option C is wrong because IAM policies control access to AWS resources and actions (e.g., who can invoke a model) but cannot restrict the actual text output of a model; they are for authorization, not content moderation. Option D is wrong because Amazon CloudWatch Logs can monitor and store logs for analysis but cannot actively block harmful content in real-time; it is a logging and monitoring service, not a content filter.

453
MCQeasy

A startup is deploying a foundation model on Amazon SageMaker for real-time inference. They notice high latency (over 2 seconds per request). Which action is most likely to reduce latency?

A.Enable auto-scaling on the SageMaker endpoint to handle more concurrent requests.
B.Switch to a smaller, distilled version of the model.
C.Deploy the model on a CPU-based instance instead of GPU.
D.Increase the batch size parameter in the inference request.
AnswerB

Smaller models have fewer parameters, reducing computation time and latency.

Why this answer

Using a smaller, distilled version of the model directly reduces the computational complexity per inference request. Distillation compresses the model by training a smaller student network to mimic a larger teacher model, resulting in fewer parameters and faster forward passes. This is the most direct way to cut latency when the model size is the bottleneck, as it reduces the number of floating-point operations (FLOPs) required per request.

Exam trap

AWS often tests the distinction between latency (time per single request) and throughput (requests per second), so candidates mistakenly choose auto-scaling or batch size increases, which improve throughput but not per-request latency.

How to eliminate wrong answers

Option A is wrong because enabling auto-scaling adds more endpoint instances to handle higher concurrency, but it does not reduce the latency of a single inference request; it only improves throughput under load. Option C is wrong because CPU-based instances are generally slower for deep learning inference than GPU instances, especially for large foundation models, so switching to CPU would increase latency, not reduce it. Option D is wrong because increasing the batch size in the inference request means processing multiple inputs together, which increases the time to first byte for each individual request and does not reduce per-request latency; it is a throughput optimization, not a latency reduction technique.

454
Multi-Selectmedium

A company is using Amazon Bedrock Agents to build a travel booking assistant that can search for flights, book hotels, and answer questions about travel policies. Which TWO components are required to enable the agent to call external services? (Select TWO.)

Select 2 answers
A.Action group with API schema
B.AWS Lambda function
C.Amazon DynamoDB table
D.Amazon SageMaker endpoint
E.Bedrock Knowledge Base
AnswersA, B

Action groups define the set of operations (APIs) the agent can call.

Why this answer

Action groups define the APIs (e.g., flight search, hotel booking) that the agent can invoke. A Lambda function provides the business logic to execute those API calls. Together they enable the agent to interact with external services.

455
MCQeasy

What does the temperature parameter control in a text generation model?

A.The number of candidate tokens considered at each step
B.The degree of randomness in the generated output
C.The similarity to the training data distribution
D.The maximum number of tokens to generate
AnswerB

Temperature directly influences randomness: low values produce focused outputs, high values produce diverse outputs.

Why this answer

Temperature scales the logits before applying softmax; higher temperature produces more random outputs, lower temperature makes the model more deterministic.

456
Multi-Selecthard

Which TWO of the following are valid methods to reduce the risk of foundation models generating harmful or biased content?

Select 2 answers
A.Use a smaller model
B.Use a content filter
C.Apply prompt engineering to guide output
D.Fine-tune the model on a biased dataset
E.Disable all logging
AnswersB, C

Content filters can block harmful outputs.

Why this answer

Content filters act as a safety layer that intercepts and blocks harmful or biased outputs before they reach the user. These filters can be rule-based or use a separate classifier model trained to detect toxic, hateful, or biased language, reducing the risk of harmful content generation without altering the underlying model.

Exam trap

AWS often tests the misconception that simply using a smaller model or disabling logging can reduce bias, when in fact these actions either have no effect or worsen the problem, whereas content filters and prompt engineering are direct, effective mitigation strategies.

457
MCQmedium

An e-commerce company uses Amazon Bedrock to generate product descriptions from keywords. Some descriptions contain inaccurate details about product specifications. Which approach should the company take to reduce factual errors?

A.Increase the maxTokens parameter to allow more detailed descriptions.
B.Use a different foundation model from Bedrock for each product category.
C.Deploy the model to a SageMaker endpoint and use human-in-the-loop validation.
D.Include the product specifications in the prompt and instruct the model to base the description on the provided data.
AnswerD

Providing facts in the prompt grounds the model's output and reduces fabrication.

Why this answer

Providing the product specifications directly in the prompt and instructing the model to base the description on that data grounds the generation in factual information, reducing hallucinations. This technique, known as prompt engineering with in-context learning, ensures the model uses the given data rather than relying on its training data, which may contain inaccuracies.

Exam trap

AWS often tests the misconception that increasing model parameters or changing models alone improves factual accuracy, when in fact prompt engineering with grounded data is the most effective and efficient method to reduce hallucinations.

How to eliminate wrong answers

Option A is wrong because increasing maxTokens only allows longer outputs but does not improve factual accuracy; it may even increase the chance of hallucinations by generating more unverified content. Option B is wrong because using a different foundation model for each category does not inherently reduce factual errors; all models can hallucinate, and this approach adds complexity without addressing the root cause of inaccurate specifications. Option C is wrong because deploying to a SageMaker endpoint with human-in-the-loop validation is an operational pattern for custom models, but it is overkill and inefficient for this use case; prompt engineering (Option D) is a simpler, more direct solution that avoids the latency and cost of human review for every generation.

458
MCQeasy

A company wants to classify customer emails into categories (e.g., complaint, inquiry, feedback) using a foundation model. Which approach is MOST efficient?

A.Use Amazon Comprehend for custom classification
B.Train a custom model using Amazon SageMaker
C.Fine-tune a large language model on labeled emails
D.Use Amazon Lex with a classifier intent
AnswerA

Comprehend provides a ready-to-use classification API.

Why this answer

Amazon Comprehend provides a managed custom classification API that is purpose-built for text classification tasks like categorizing emails. It requires only a small set of labeled data to train a custom classifier, eliminating the need to manage infrastructure or fine-tune large models, making it the most efficient choice for this specific use case.

Exam trap

AWS often tests the misconception that any NLP task requires a large language model or custom training in SageMaker, when in fact managed services like Comprehend are optimized for common classification tasks and are more efficient.

How to eliminate wrong answers

Option B is wrong because training a custom model using Amazon SageMaker involves provisioning instances, managing training jobs, and handling model deployment, which is overkill and less efficient for a straightforward text classification task that can be handled by a managed service. Option C is wrong because fine-tuning a large language model (LLM) on labeled emails is computationally expensive, requires significant expertise in prompt engineering and hyperparameter tuning, and is not the most efficient approach when a simpler, purpose-built service like Comprehend exists. Option D is wrong because Amazon Lex is designed for building conversational chatbots and intent-based routing, not for batch or real-time text classification of emails; its classifier intent feature is meant for dialog management, not document categorization.

459
MCQmedium

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

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

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

Why this answer

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

460
MCQeasy

Refer to the exhibit. A security analyst is reviewing CloudTrail logs and notices a training job creation from an IP address (203.0.113.5) that is not associated with the company's network. What is the most likely cause?

A.The user john.doe is accessing the AWS Management Console from a VPN.
B.The CloudTrail log is being generated by a cross-account role.
C.The training job was created using the AWS CLI from an external machine.
D.The training job was created by a malicious actor who stole credentials.
AnswerA

A VPN would route traffic through an external IP; this is a common scenario for remote workers.

Why this answer

The IP address 203.0.113.5 is a non-routable test IP (RFC 5737) and not associated with the company's network. The most likely cause is that user john.doe is accessing the AWS Management Console through a VPN, which would route traffic through the VPN's public IP rather than the corporate network. This explains why the source IP appears external while the user identity is legitimate.

Exam trap

AWS often tests the distinction between 'external IP' and 'unauthorized access'—the trap here is assuming any external IP indicates a security breach, when in fact VPN usage is a legitimate and common cause for such logs.

How to eliminate wrong answers

Option B is wrong because cross-account roles would show the source IP of the role's session, not necessarily an external IP, and the log would include a 'userIdentity' with 'arn:aws:sts::...' indicating assumed role, which is not described. Option C is wrong because using the AWS CLI from an external machine would still show the machine's public IP, but the question states the IP is 'not associated with the company's network'—this is a plausible scenario but less likely than a VPN, as the user identity (john.doe) suggests a legitimate user, not an external machine. Option D is wrong because while stolen credentials are possible, the question asks for the 'most likely cause' given the context of a legitimate user identity; a malicious actor would typically not use a known corporate username without additional suspicious activity.

461
MCQeasy

A developer wants to test different foundation models quickly without setting up infrastructure. Which AWS service allows interactive prompting and comparison of multiple models?

A.Amazon Comprehend
B.Amazon Bedrock Playground
C.Amazon Lex
D.Amazon SageMaker Studio
AnswerB

Bedrock offers a playground to interactively test and compare foundation models.

Why this answer

Amazon Bedrock Playground is a feature within Amazon Bedrock that provides a web-based interface for interactive prompting and side-by-side comparison of multiple foundation models (FMs). It allows developers to test different models quickly without provisioning any infrastructure, making it ideal for rapid experimentation and evaluation.

Exam trap

The trap here is that candidates may confuse Amazon Bedrock Playground with SageMaker Studio, assuming both are for model experimentation, but SageMaker Studio requires infrastructure setup and lacks the built-in multi-model comparison interface that Bedrock Playground provides.

How to eliminate wrong answers

Option A is wrong because Amazon Comprehend is a natural language processing (NLP) service for extracting insights like sentiment, entities, and key phrases from text; it does not support interactive prompting or comparison of foundation models. Option C is wrong because Amazon Lex is a service for building conversational interfaces (chatbots) using automatic speech recognition (ASR) and natural language understanding (NLU), not for testing or comparing foundation models. Option D is wrong because Amazon SageMaker Studio is an integrated development environment (IDE) for building, training, and deploying machine learning models, but it requires setting up infrastructure (e.g., instances, kernels) and does not provide a built-in interactive playground for comparing multiple foundation models.

462
MCQmedium

A data scientist is using Amazon SageMaker to train a model. The training job is taking longer than expected. Which change would most likely reduce training time?

A.Increase the number of training epochs
B.Use a larger batch size
C.Use a smaller instance type
D.Enable spot training
AnswerB

A larger batch size processes more samples per iteration, reducing the number of steps and overall time, provided the hardware supports it.

Why this answer

Using a larger batch size allows the model to process more training samples per iteration, which reduces the number of weight updates needed per epoch and can improve hardware utilization (e.g., GPU parallelism). This often leads to faster training times, provided the batch size fits within memory constraints and does not degrade model convergence.

Exam trap

The AIF-C01 exam often tests the misconception that reducing instance size or enabling spot instances directly improves training speed, when in fact these changes primarily affect cost or resource availability, not performance.

How to eliminate wrong answers

Option A is wrong because increasing the number of training epochs increases the total number of passes over the data, which would lengthen training time, not reduce it. Option C is wrong because using a smaller instance type reduces compute capacity (e.g., fewer vCPUs, less memory), which typically slows down training rather than speeding it up. Option D is wrong because enabling spot training (using Amazon EC2 Spot Instances) reduces cost but does not inherently reduce training time; it may even cause interruptions that delay completion.

463
MCQeasy

A company needs to audit all API calls made to Amazon Bedrock, including model invocations and guardrail evaluations. Which AWS service should they enable to capture these API calls for compliance?

A.AWS CloudTrail
B.Amazon Macie
C.AWS Config
D.Amazon GuardDuty
AnswerA

CloudTrail logs all AWS API calls for auditing.

Why this answer

AWS CloudTrail records API calls for all AWS services, including Bedrock. It captures the caller identity, API, parameters, and response elements, which can be used for auditing and compliance.

464
MCQmedium

A company is using Amazon Bedrock to generate images from text prompts. They need to ensure the generated images do not contain offensive content. Which feature should be enabled?

A.VPC endpoints
B.AWS WAF
C.Content moderation with AI
D.IAM policies
AnswerC

Bedrock's content moderation uses AI to detect and block offensive content.

Why this answer

Amazon Bedrock's content moderation with AI feature allows you to filter generated images for offensive or inappropriate content by applying predefined or custom moderation policies. This is the correct choice because it directly addresses the requirement to ensure generated images do not contain offensive material, leveraging machine learning models to detect and block such content at inference time.

Exam trap

The trap here is that candidates may confuse network-level or access-control services (like VPC endpoints, WAF, or IAM policies) with content-level filtering, assuming they can be repurposed for moderation, but only Bedrock's built-in content moderation feature directly analyzes and filters generated image content.

How to eliminate wrong answers

Option A is wrong because VPC endpoints are used to privately connect your VPC to AWS services without traversing the public internet, and they do not provide any content filtering or moderation capabilities for generated images. Option B is wrong because AWS WAF is a web application firewall that protects web applications from common exploits like SQL injection and cross-site scripting, but it operates at the HTTP/HTTPS request layer and cannot inspect or moderate the content of images generated by Bedrock. Option D is wrong because IAM policies control access permissions to AWS resources, such as who can invoke Bedrock models, but they do not inspect or filter the actual content of generated outputs.

465
Multi-Selectmedium

Which TWO factors are most important when selecting a foundation model in Amazon Bedrock for a text summarization task with strict latency requirements?

Select 2 answers
A.Average response latency per request.
B.Model size in billions of parameters.
C.Maximum input token limit.
D.Output quality and token efficiency for summarization tasks.
E.Availability of fine-tuning capability for domain adaptation.
AnswersA, D

Low latency is critical for real-time summarization.

Why this answer

Average response latency per request directly measures how quickly the model generates summaries, which is critical for strict latency requirements. Amazon Bedrock provides latency metrics for each foundation model, and selecting a model with lower average latency ensures the summarization task meets performance SLAs.

Exam trap

A common misconception is that model size (parameters) is the primary driver of latency, but in practice, latency depends on inference optimization, model quantization, and hardware, not just parameter count.

466
Multi-Selecteasy

Which TWO actions can help reduce the likelihood of hallucinations in a generative AI model used for question answering?

Select 2 answers
A.Increase the maximum token count to allow more complete answers.
B.Use Retrieval Augmented Generation (RAG) with a trusted knowledge base.
C.Fine-tune the model on the training data used for the application.
D.Set a lower temperature parameter (e.g., 0.1) to reduce randomness.
E.Use a larger foundation model with more parameters.
AnswersB, D

Grounding on real documents reduces hallucinations.

Why this answer

Retrieval Augmented Generation (RAG) grounds the model's responses in a trusted, external knowledge base, providing factual context that reduces the model's reliance on its parametric memory alone. By retrieving relevant documents at inference time, RAG directly mitigates the risk of hallucination, as the model generates answers based on retrieved evidence rather than inventing information.

Exam trap

AWS often tests the misconception that simply increasing model size or output length improves answer quality, when in fact grounding through RAG and controlling randomness via temperature are the direct mechanisms to reduce hallucinations.

467
MCQhard

A company uses an LLM to summarize medical research papers. They are concerned about hallucinations. Which combination of techniques would most effectively reduce hallucinations in this context?

A.Increase temperature and top-p sampling parameters
B.Use a smaller model with less capacity
C.Few-shot prompting and fine-tuning on more data
D.Retrieval-Augmented Generation (RAG) and Bedrock Guardrails
AnswerD

RAG retrieves relevant documents to ground the model, and Bedrock Guardrails can block non-factual or harmful outputs, effectively reducing hallucinations.

Why this answer

Retrieval-Augmented Generation (RAG) grounds the model in retrieved documents, and Bedrock Guardrails can enforce content policies and factuality checks, together reducing hallucinations.

468
MCQeasy

A retail company uses a recommendation system that occasionally suggests inappropriate products to minors. Which responsible AI practice should be applied?

A.Implement human review of flagged recommendations
B.Rely solely on user feedback to improve
C.Disable the recommendation system entirely
D.Increase the volume of training data
AnswerA

Human-in-the-loop ensures responsible oversight.

Why this answer

The correct practice is to implement human review of flagged recommendations. This aligns with the responsible AI principle of accountability, where automated systems must have oversight mechanisms to catch and correct inappropriate outputs, especially when minors are involved. Human-in-the-loop (HITL) validation ensures that edge cases or subtle context (e.g., age-inappropriate product suggestions) are caught before they reach end users, rather than relying solely on automated filters or feedback loops.

Exam trap

AWS often tests the misconception that more data or automation alone can solve fairness and safety issues, when in fact responsible AI requires explicit governance mechanisms like human oversight for high-stakes or vulnerable-user scenarios.

How to eliminate wrong answers

Option B is wrong because relying solely on user feedback to improve is reactive and can expose minors to harm before any corrective action is taken; feedback loops are slow and may not capture subtle or rare inappropriate recommendations. Option C is wrong because disabling the recommendation system entirely is an extreme, non-scalable response that eliminates business value and does not teach the system to behave responsibly; responsible AI aims to mitigate harm, not abandon functionality. Option D is wrong because increasing the volume of training data does not inherently address the problem of inappropriate recommendations; if the training data itself contains biased or unlabeled age-sensitive content, more data can amplify the issue rather than fix it.

469
MCQmedium

A company uses Amazon SageMaker to train a model. The training job fails with 'InsufficientInstanceCapacity' error. What is the most likely cause?

A.The request rate is too high.
B.The dataset size exceeds the instance storage limit.
C.The requested instance type is not available in the specified region.
D.The training image is not compatible with the instance type.
AnswerC

This error occurs when AWS cannot provision the instance due to capacity constraints.

Why this answer

The 'InsufficientInstanceCapacity' error in Amazon SageMaker indicates that AWS does not currently have enough available capacity for the requested instance type in the specified region or Availability Zone. This is a common transient error when demand for a particular instance type exceeds supply, and it is not related to request rate, dataset size, or image compatibility.

Exam trap

The AIF-C01 exam often tests the distinction between capacity errors and throttling errors, so the trap here is confusing 'InsufficientInstanceCapacity' with a rate-limiting or quota error, leading candidates to incorrectly select Option A.

How to eliminate wrong answers

Option A is wrong because 'InsufficientInstanceCapacity' is a capacity error, not a throttling error; throttling (e.g., from high request rate) would return a 'ThrottlingException' or 'RequestLimitExceeded' error. Option B is wrong because dataset size exceeding instance storage limits would cause an 'OutOfMemory' or 'DiskFull' error, not a capacity error. Option D is wrong because image compatibility issues would result in a 'ClientError' or 'ImageNotFoundException', not an instance capacity error.

470
Multi-Selecthard

A company is training a deep learning model for image classification. Which THREE practices help reduce overfitting? (Choose three.)

Select 3 answers
A.L2 regularization
B.Increasing model depth
C.Increasing learning rate
D.Dropout
E.Data augmentation
AnswersA, D, E

L2 regularization penalizes large weights, reducing overfitting.

Why this answer

L2 regularization (also known as weight decay) adds a penalty proportional to the square of the weight magnitudes to the loss function. This discourages the model from learning overly complex patterns by forcing weights to stay small, which reduces overfitting by limiting the model's capacity to fit noise in the training data.

Exam trap

The AIF-C01 exam often tests the misconception that increasing model complexity (depth) or tuning the learning rate can mitigate overfitting, when in fact these changes either exacerbate the problem or address unrelated training dynamics.

471
MCQhard

An organization uses SageMaker JumpStart to deploy a foundation model for real-time inference. They observe high latency. What is the most effective way to reduce latency?

A.Compile the model with SageMaker Neo
B.Use a larger instance with more memory
C.Use batch transform instead
D.Enable SageMaker Inference Recommender
AnswerA

Neo compiles models for faster inference on specific hardware.

Why this answer

SageMaker Neo compiles the model to optimize it for the target hardware, reducing inference latency by applying hardware-specific optimizations such as kernel fusion, quantization, and memory layout tuning. This directly addresses the high latency issue for real-time inference without changing the instance type or inference mode.

Exam trap

AWS often tests the misconception that increasing instance size or switching to batch processing is the primary solution for latency, when in fact model compilation with SageMaker Neo is the most direct and cost-effective optimization for real-time inference.

How to eliminate wrong answers

Option B is wrong because using a larger instance with more memory may reduce latency due to increased compute capacity, but it is less effective and more costly than model compilation, which optimizes the model itself for the existing hardware. Option C is wrong because batch transform is designed for offline, asynchronous inference on large datasets, not for real-time inference, and it would not reduce latency for a real-time endpoint. Option D is wrong because SageMaker Inference Recommender helps select the optimal instance type and configuration for a given model, but it does not directly reduce latency; it recommends deployment parameters, whereas compilation actively optimizes the model.

472
MCQeasy

A company wants to prevent an Amazon Bedrock chatbot from discussing specific prohibited topics like competitor pricing. Which Bedrock feature should they configure?

A.Bedrock Knowledge Base
B.Bedrock Guardrails – topic denial
C.Bedrock Agents
D.Bedrock Model Evaluation
AnswerB

Topic denial in Guardrails explicitly blocks defined subjects.

Why this answer

Amazon Bedrock Guardrails with topic denial is the correct feature because it allows administrators to define a set of prohibited topics (e.g., competitor pricing) and configure the model to refuse to engage in conversations about them. When the model detects a user input or generates a response that falls within a denied topic, Guardrails intercepts the interaction and returns a predefined denial message, effectively blocking the unwanted discussion. This is a content moderation capability specifically designed to enforce policy-based restrictions on model behavior, making it the ideal choice for preventing a chatbot from discussing specific prohibited topics.

Exam trap

The trap here is that candidates often confuse Bedrock Guardrails with Bedrock Agents or Knowledge Bases, assuming that agents or knowledge bases can inherently filter topics, when in fact Guardrails is the dedicated service for content moderation and policy enforcement.

How to eliminate wrong answers

Option A is wrong because Bedrock Knowledge Base is a feature for connecting the model to a company's private data sources (e.g., documents, databases) to enable retrieval-augmented generation (RAG), not for blocking or denying topics. Option C is wrong because Bedrock Agents are used to orchestrate multi-step tasks by invoking APIs and knowledge bases, but they do not natively provide topic-level denial or content filtering; they rely on Guardrails for such safety controls. Option D is wrong because Bedrock Model Evaluation is a tool for assessing model performance (e.g., accuracy, toxicity) on benchmark datasets, not for enforcing runtime content restrictions or blocking specific topics.

473
MCQeasy

Which of the following is a primary benefit of using Bedrock Agents for building generative AI applications?

A.Automatically fine-tune the underlying model on new data
B.Orchestrate multi-step tasks and call external APIs via action groups
C.Optimize prompts automatically without any manual tuning
D.Guarantee that the model's responses are factually correct
AnswerB

Agents can break down complex requests, call APIs, and combine results to complete tasks.

Why this answer

Bedrock Agents enable multi-step reasoning and tool use, allowing the model to perform complex sequences of actions. Fine-tuning is not an agent capability. Guardrails are separate.

Prompt optimization is done at the prompt level, not by agents.

474
MCQmedium

A data scientist is evaluating a logistic regression model for a binary classification task. The model's AUC-ROC score is 0.95 on the training set and 0.51 on the test set. What is the MOST likely issue?

A.The model is overfitting the training data
B.The test set is too small
C.The learning rate is too low
D.The model is underfitting the training data
AnswerA

High training performance and poor test performance is classic overfitting.

Why this answer

A large gap between training and test AUC-ROC indicates overfitting — the model memorizes training data but fails to generalize. Cross-validation can help detect and mitigate this. Data leakage or class imbalance could also contribute, but overfitting is the primary symptom.

475
MCQhard

A financial services firm needs an LLM-powered application that analyzes customer transaction data and generates compliance reports. The data contains personally identifiable information (PII). The firm must ensure that no training data includes PII, and that the LLM never outputs PII. Which combination of AWS services and practices should they use?

A.Use RAG to retrieve transaction data from a vector database and include it in the prompt to the LLM
B.Fine-tune an Amazon Titan model on the transaction data after masking PII, then use the fine-tuned model for inference
C.Host the model on Amazon SageMaker and apply differential privacy during training
D.Use a pre-trained foundation model via Amazon Bedrock with a system prompt that instructs the model not to output PII, and enable Bedrock’s data protection
AnswerD

Pre-trained model avoids PII in training; system prompt and data protection guardrails prevent PII in outputs.

Why this answer

Using Amazon Bedrock with a pre-trained foundation model (no fine-tuning) ensures PII is not in training data. A system prompt instructing the model to avoid PII, combined with Bedrock’s built-in data protection, prevents PII in outputs. Fine-tuning or RAG with sensitive data would risk exposure.

476
Multi-Selecthard

Which THREE are benefits of using Amazon Bedrock over self-managing foundation models on EC2? (Choose THREE.)

Select 3 answers
A.Built-in integration with AWS services such as AWS CloudWatch and AWS CloudTrail.
B.Lower data transfer costs between cloud regions.
C.Access to a curated set of foundation models from different providers.
D.Managed infrastructure for model hosting and scaling.
E.Greater control over model fine-tuning and customization.
AnswersA, C, D

Bedrock natively logs to CloudWatch and CloudTrail for monitoring and auditing.

Why this answer

Amazon Bedrock provides built-in integration with AWS services like CloudWatch for monitoring model invocation metrics and CloudTrail for auditing API calls. This eliminates the need to manually set up logging and monitoring infrastructure when self-managing foundation models on EC2, where you would have to configure these integrations yourself.

Exam trap

The trap here is that candidates may confuse 'managed infrastructure' with 'greater control'—Bedrock simplifies operations but reduces customization flexibility, so option E is a common distractor for those who think managed services offer more control than self-managed solutions.

477
MCQeasy

An e-commerce company uses an LLM to generate product descriptions. They observe that occasionally the model outputs factually incorrect information about products. What is the term for this phenomenon?

A.Bias amplification
B.Overfitting
C.Hallucination
D.Concept drift
AnswerC

Hallucination is the correct term for when an LLM produces plausible-sounding but factually incorrect content.

Why this answer

Hallucinations are when an LLM generates incorrect or nonsensical information that is not grounded in the input or training data.

478
MCQeasy

Which AWS service provides human review workflows to handle low-confidence predictions or high-risk decisions in an AI system?

A.AWS Lambda
B.Amazon Augmented AI (A2I)
C.Amazon Bedrock
D.Amazon SageMaker Ground Truth
AnswerB

A2I allows you to define conditions (e.g., low confidence) to route predictions to human reviewers.

Why this answer

Amazon Augmented AI (A2I) enables human review of predictions when the model confidence is low or when the decision is high-risk. SageMaker Ground Truth is for data labeling, not for production review. Bedrock is for foundation models.

Lambda is compute, not a review service.

479
MCQhard

A financial services company uses Bedrock Agents to automate a multi-step loan approval process. The agent needs to call an external credit scoring API and a compliance database, then combine results. The agent currently fails when the API returns a 503 error. How should the practitioner address this?

A.Adjust the Bedrock Agent's granularity setting to 'high'
B.Reduce the agent's trace truncation limit to shorten the context
C.Implement a custom Lambda function for the action group to handle errors and retries
D.Use Bedrock Guardrails with a topic denial rule for error messages
AnswerC

Lambda functions in action groups can implement custom logic, including retries on 503 errors, before returning results to the agent.

Why this answer

Lambda functions integrated with action groups can implement retry logic, error handling, and custom processing. Granularity tuning or trace truncation does not handle errors. Guardrails are for content filtering, not API error handling.

480
MCQmedium

A financial services company is deploying a foundation model to analyze customer sentiment from call transcripts. The model outputs must be consistent and deterministic for auditing purposes. Which parameter configuration should the company use?

A.Set temperature to 0.1 and top_p to 0.9.
B.Set temperature to 0.7 and top_p to 1.0.
C.Set temperature to 0.5 and top_p to 0.5.
D.Set temperature to 0 and top_p to 1.
AnswerD

Temperature 0 makes the model deterministic.

Why this answer

Setting temperature to 0 and top_p to 1 forces the model to always select the highest-probability token at each step, producing deterministic and repeatable outputs. This is essential for auditing and compliance in financial services, where consistency is required. Any nonzero temperature introduces randomness, which undermines determinism.

Exam trap

AWS often tests the misconception that low temperature (e.g., 0.1) is 'deterministic enough,' but only temperature exactly 0 guarantees deterministic outputs, and top_p must be 1 to avoid interfering with the argmax selection.

How to eliminate wrong answers

Option A is wrong because temperature 0.1 still introduces slight randomness, making outputs non-deterministic and unsuitable for auditing. Option B is wrong because temperature 0.7 introduces significant randomness, and top_p 1.0 does not constrain it, leading to high variability. Option C is wrong because temperature 0.5 introduces randomness, and top_p 0.5 further restricts token sampling but does not eliminate the stochastic behavior from the nonzero temperature.

481
MCQhard

An AI practitioner is fine-tuning an Amazon Titan Text model on a dataset of customer support conversations to improve response accuracy. After training, the model's perplexity on the validation set is low, but during inference, the model frequently generates off-topic or nonsensical responses to real customer queries. What is the most likely cause?

A.The model's context window is too small for the inference queries
B.The temperature during inference is set too low
C.The fine-tuning dataset is too small, causing overfitting
D.The validation set does not represent the distribution of real customer queries
AnswerD

If the validation set is similar to training data but different from real-world inputs, the model may appear good on validation but fail in production.

Why this answer

The core issue is a mismatch between the validation set and real-world inference data. Low perplexity on the validation set indicates the model fits that specific distribution well, but if the validation set does not reflect the diversity, phrasing, or intent of actual customer queries, the model will generate off-topic or nonsensical responses during inference. This is a classic case of distribution shift, where the model has not generalized to the true target domain.

Exam trap

The AIF-C01 exam often tests the distinction between overfitting (Option C) and distribution mismatch (Option D), where candidates mistakenly attribute low validation perplexity with good generalization, but the trap is that overfitting would still show high perplexity on a representative validation set, whereas here the validation set itself is the problem.

How to eliminate wrong answers

Option A is wrong because a small context window would truncate input, not cause off-topic or nonsensical responses; it would more likely cause incomplete or irrelevant answers due to missing context, but the model would still stay on-topic within its truncated window. Option B is wrong because a temperature set too low makes the model deterministic and repetitive, reducing creativity but not causing off-topic or nonsensical outputs; low temperature actually forces the model to pick the most likely token, which should keep responses coherent and on-topic if the model is well-trained. Option C is wrong because a small fine-tuning dataset causing overfitting would lead to low perplexity on the validation set (which matches the training distribution) but high perplexity on unseen data; however, the question states perplexity is low on the validation set, and overfitting would typically cause poor performance on any out-of-distribution data, not specifically off-topic or nonsensical responses—this is a subtle but important distinction, as overfitting often produces memorized or repetitive outputs, not random nonsense.

482
MCQeasy

A developer needs to preprocess a dataset consisting of customer reviews for sentiment analysis. Which text preprocessing technique is most likely to improve model accuracy?

A.Stemming
B.All of the above
C.Removing stop words
D.Lowercasing
AnswerB

Combining lowercasing, stop word removal, and stemming is a common and effective preprocessing pipeline.

Why this answer

All three listed techniques—stemming, removing stop words, and lowercasing—are standard text preprocessing steps that collectively improve model accuracy for sentiment analysis. Stemming reduces words to root forms to consolidate similar meanings, removing stop words eliminates noise from high-frequency but low-information tokens, and lowercasing normalizes case variations. Together, they reduce the feature space and help the model focus on sentiment-bearing terms, leading to better generalization and accuracy.

Exam trap

The AIF-C01 exam often tests the misconception that a single preprocessing step is sufficient, when in fact the combination of all three—stemming, stop word removal, and lowercasing—is standard practice for maximizing model accuracy in NLP tasks like sentiment analysis.

How to eliminate wrong answers

Option A is wrong because stemming alone is insufficient; while it helps consolidate word variants, it does not address noise from stop words or case sensitivity, so it is not the single most likely technique to improve accuracy. Option C is wrong because removing stop words alone reduces noise but ignores the benefits of stemming and lowercasing, which are also critical for handling morphological variations and case mismatches. Option D is wrong because lowercasing alone normalizes case but does not handle word root consolidation or removal of irrelevant high-frequency words, leaving significant noise in the feature set.

483
MCQeasy

What is the primary role of the self-attention mechanism in the Transformer architecture?

A.To allow each token to attend to all other tokens in the sequence, capturing long-range dependencies
B.To process tokens in parallel by alternating attention and feed-forward layers
C.To reduce the vocabulary size by mapping tokens to embeddings
D.To generate the next token one at a time in an autoregressive manner
AnswerA

Self-attention computes attention scores between all token pairs, enabling the model to capture context from distant positions.

Why this answer

The self-attention mechanism allows each token in the input sequence to directly attend to every other token, computing a weighted sum of all token representations. This enables the model to capture long-range dependencies and contextual relationships regardless of distance, which is the fundamental innovation of the Transformer architecture over recurrent or convolutional models.

Exam trap

AWS often tests the distinction between the specific function of a component (self-attention's role in capturing dependencies) and the broader architectural or procedural behavior (parallel processing, embedding, or autoregressive generation), leading candidates to confuse the mechanism with its effects or surrounding architecture.

How to eliminate wrong answers

Option B is wrong because processing tokens in parallel by alternating attention and feed-forward layers describes the overall Transformer architecture, not the specific role of self-attention; self-attention is the component that enables parallelization by removing sequential recurrence, but its primary role is dependency capture. Option C is wrong because reducing vocabulary size by mapping tokens to embeddings is the function of the embedding layer (e.g., token embedding or word embedding), not self-attention; self-attention operates on the embedded representations to model relationships. Option D is wrong because generating the next token one at a time in an autoregressive manner describes the decoding process (e.g., in GPT-style models), not the role of self-attention; self-attention is used within both encoder and decoder to compute context, but autoregressive generation is a separate inference strategy.

484
Multi-Selectmedium

A company is using Amazon SageMaker to train machine learning models. The security team wants to ensure that the training data is encrypted at rest and that the SageMaker notebook instances cannot access the internet. Which TWO actions should the company take? (Choose TWO.)

Select 2 answers
A.Enable S3 server-side encryption with AWS KMS (SSE-KMS) for the training data bucket
B.Create an AWS CloudTrail trail to log all S3 data events
C.Enable encryption at rest for the SageMaker endpoint using the AWS Management Console
D.Disable internet access for the SageMaker notebook instance by placing it in a VPC without a NAT gateway or internet gateway
E.Use AWS Security Token Service (STS) to generate temporary credentials for the notebook instance
AnswersA, D

SSE-KMS encrypts objects at rest using KMS keys.

Why this answer

Enabling S3 server-side encryption with AWS KMS (SSE-KMS) ensures that the training data stored in the S3 bucket is encrypted at rest. This satisfies the security team's requirement for data encryption at rest, as SSE-KMS provides envelope encryption with a customer-managed or AWS-managed KMS key, giving the company control over the encryption keys and auditability via AWS CloudTrail.

Exam trap

The trap here is that candidates often confuse encryption at rest for the endpoint (Option C) with encryption of the training data in S3, or they mistakenly think that CloudTrail logging (Option B) or STS credentials (Option E) provide encryption, when in fact they address auditing and access control, not data encryption.

485
MCQmedium

A financial services firm uses Amazon Bedrock to generate investment summaries. They need to prevent the model from generating content containing personally identifiable information (PII) such as social security numbers. Which feature should they configure in Bedrock Guardrails?

A.Contextual grounding checks
B.Content filtering with category-based harmful content filters
C.Sensitive information filters with PII redaction
D.Word filters with a custom list of terms
AnswerC

Sensitive information filters in Guardrails include PII detection and redaction, which can block or mask PII.

Why this answer

Bedrock Guardrails include a PII redaction filter that can detect and block or mask PII in model inputs and outputs.

486
MCQhard

Refer to the exhibit. A team is creating an IAM policy for a SageMaker notebook user. The user needs to access training data in an S3 bucket and create models. Which responsible AI concern is most relevant to this policy?

A.The policy does not enforce encryption for the notebook.
B.The policy does not restrict which S3 buckets the user can read.
C.The policy does not include a condition for model explainability.
D.The policy grants overly broad permissions, violating the principle of least privilege.
AnswerD

Allowing CreateModel and CreateNotebookInstance on all resources can lead to misuse.

Why this answer

The IAM policy grants the SageMaker notebook user overly broad permissions (e.g., s3:* or sagemaker:*), which violates the principle of least privilege. This is a core responsible AI concern as it increases the risk of unauthorized access or accidental modification of training data and models. The policy should restrict actions to only those necessary for the user's specific role, such as s3:GetObject for specific buckets and sagemaker:CreateModel with resource constraints.

Exam trap

AWS often tests the principle of least privilege by presenting a policy with wildcard permissions (e.g., s3:* or sagemaker:*), and candidates mistakenly focus on missing features like encryption or explainability instead of recognizing the core violation of excessive access.

How to eliminate wrong answers

Option A is wrong because encryption enforcement (e.g., via kms:Encrypt or s3:x-amz-server-side-encryption) is a security best practice but not the most relevant responsible AI concern for this scenario; the question focuses on access control, not data-at-rest protection. Option B is wrong because restricting which S3 buckets the user can read is a subset of least privilege, but the policy's broader issue is granting overly broad permissions (e.g., s3:*), not just failing to restrict bucket names; the core violation is excessive scope. Option C is wrong because model explainability is a responsible AI principle related to interpretability and bias detection, but it is not enforced via IAM policies; IAM policies control access, not model behavior or explainability attributes.

487
MCQmedium

An organization is required to provide transparency about AI-generated content. Which of the following is the best practice to comply with transparency requirements?

A.Clearly label AI-generated content with a disclosure statement
B.Store metadata but not display it to users
C.Use a watermark that is invisible to users
D.Only disclose AI generation if the content is inaccurate
AnswerA

Labeling content as AI-generated meets transparency requirements.

Why this answer

Clear disclosure that content is AI-generated is a fundamental transparency practice, helping users understand the origin of the content.

488
Multi-Selectmedium

A company uses Amazon Bedrock Agents to automate a multi-step customer support workflow. The agent needs to query a customer database and update a ticket system. Which TWO components are required to enable the agent to interact with these external systems?

Select 2 answers
A.A vector store like Amazon OpenSearch Serverless
B.Bedrock Guardrails
C.Bedrock Knowledge Bases
D.Lambda functions that implement the business logic for each action
E.Action groups that define the APIs or database operations
AnswersD, E

Lambda functions contain the code to actually query the database and update the ticket system.

Why this answer

Action groups define the functions the agent can call, and Lambda functions implement the business logic to interact with databases and APIs. Knowledge Bases provide static information, no tool use. Guardrails filter content, not execute actions.

Vector stores store embeddings.

489
MCQeasy

A company wants to predict customer churn. They have historical data with features like usage minutes, support tickets, contract length. The target is binary: churn/not churn. Which ML algorithm is best suited?

A.Logistic regression
B.Principal Component Analysis (PCA)
C.Linear regression
D.K-means clustering
AnswerA

Logistic regression models the probability of a binary outcome using a logistic function.

Why this answer

Logistic regression is the best choice because it is specifically designed for binary classification tasks like predicting churn (churn/not churn). It models the probability of the target class using a logistic (sigmoid) function, making it interpretable and efficient for this type of supervised learning problem with a categorical outcome.

Exam trap

The AIF-C01 exam often tests the distinction between supervised and unsupervised learning, and the trap here is that candidates may confuse dimensionality reduction (PCA) or clustering (K-means) with classification, or mistakenly apply linear regression to a binary outcome without recognizing the need for a logistic function.

How to eliminate wrong answers

Option B is wrong because Principal Component Analysis (PCA) is an unsupervised dimensionality reduction technique, not a classification algorithm; it reduces feature space but does not predict a binary target. Option C is wrong because linear regression predicts a continuous numeric output, not a binary class; using it for classification would violate the assumption of normally distributed errors and produce unbounded predictions. Option D is wrong because K-means clustering is an unsupervised learning algorithm used for grouping unlabeled data into clusters, not for predicting a known binary target variable.

490
MCQeasy

A financial services company uses Amazon Rekognition to verify customer identities. To ensure responsible AI practices, which measure should the company prioritize?

A.Use only black-box models to protect intellectual property
B.Increase model complexity to improve accuracy
C.Minimize the amount of training data collected
D.Regularly audit the model for demographic bias
AnswerD

Bias audits are essential for fairness.

Why this answer

Regularly auditing the model for demographic bias is a core responsible AI practice, especially for identity verification systems where biased outcomes could lead to unfair treatment of certain customer groups. Amazon Rekognition's facial analysis and comparison features must be tested across diverse demographics to ensure equitable performance, as bias can arise from imbalanced training data or algorithmic artifacts.

Exam trap

The trap here is that candidates may confuse 'responsible AI' with generic model optimization (like increasing accuracy or reducing data), but the exam specifically tests the principle of fairness through bias auditing and transparency.

How to eliminate wrong answers

Option A is wrong because using only black-box models contradicts responsible AI principles; explainability and transparency are critical for auditing bias and ensuring fairness, and black-box models obscure how decisions are made, making it harder to detect issues. Option B is wrong because increasing model complexity does not inherently improve accuracy and can amplify bias or reduce interpretability; responsible AI prioritizes balanced performance and fairness over raw accuracy. Option C is wrong because minimizing training data can exacerbate bias by underrepresenting certain demographic groups, leading to poor generalization and unfair outcomes; responsible AI requires diverse, representative datasets.

491
Multi-Selectmedium

A company is building a content generation application using Amazon Bedrock. They need to ensure that the model does not generate offensive content and also avoids discussing certain prohibited topics. Which TWO Bedrock features should be combined to achieve this?

Select 2 answers
A.Bedrock Model Evaluation
B.Bedrock Guardrails topic denial
C.Bedrock Guardrails content filters
D.Bedrock Knowledge Bases
E.Bedrock Agents
AnswersB, C

Topic denial prevents the model from discussing specified prohibited topics.

Why this answer

Bedrock Guardrails provide content filtering (offensive content) and topic denial (prohibited topics). Knowledge Bases are for RAG, not content control. Agents orchestrate tasks.

Model evaluation tests performance. The correct combination is content filtering and topic denial, both part of Guardrails.

492
MCQhard

Refer to the exhibit. A developer sees this error when calling Amazon Bedrock for inference. What is the MOST likely cause and recommended solution?

A.The model ID is incorrect; use a different model
B.The prompt is too long; reduce the number of tokens in the prompt
C.The request rate exceeds the model's throughput limit; implement retries with exponential backoff
D.Increase the max_tokens_to_sample value
AnswerC

Throttling is due to rate limits; exponential backoff handles it.

Why this answer

The error indicates a throttling exception from Amazon Bedrock, which occurs when the request rate exceeds the model's throughput limit. The recommended solution is to implement retries with exponential backoff to handle transient rate limits gracefully, as this aligns with AWS best practices for managing API call limits.

Exam trap

The trap here is that candidates may confuse a throttling error with a model ID or prompt length issue, because the error message may not explicitly state 'throttling' and instead show a generic 'ServiceUnavailable' or 'TooManyRequests' response, leading them to incorrectly modify the model or prompt instead of implementing retry logic.

How to eliminate wrong answers

Option A is wrong because a model ID error would produce a different error (e.g., 'ValidationException' or 'ResourceNotFoundException'), not a throttling-related error. Option B is wrong because a prompt that is too long would cause a 'ValidationException' regarding token limits, not a throttling error. Option D is wrong because increasing max_tokens_to_sample would increase the output length, potentially worsening throttling or causing a different error, but it does not address the rate limit issue.

493
Multi-Selecthard

Which TWO of the following are key components of a responsible AI governance framework?

Select 2 answers
A.Develop and enforce AI ethics policies and standards
B.Focus solely on compliance with legal regulations
C.Minimize human involvement in AI lifecycle decisions
D.Conduct regular bias and fairness impact assessments
E.Deploy AI models as black boxes to avoid scrutiny
AnswersA, D

Policies provide the foundation for governance.

Why this answer

A responsible AI governance framework must include the development and enforcement of AI ethics policies and standards to ensure alignment with societal values, fairness, and accountability. These policies guide the design, deployment, and monitoring of AI systems, embedding ethical principles such as transparency, privacy, and non-discrimination into the AI lifecycle. Without such policies, organizations risk deploying AI that violates ethical norms or regulatory expectations.

Exam trap

The AIF-C01 exam often tests the distinction between mere legal compliance and comprehensive ethical governance, trapping candidates who think that meeting regulatory requirements alone constitutes responsible AI, while ignoring proactive fairness and transparency measures.

494
MCQmedium

An AI practitioner is evaluating a text generation model and notices that the model sometimes produces plausible-sounding but factually incorrect statements. What is this phenomenon called?

A.Hallucination
B.Catastrophic forgetting
C.Bias amplification
D.Overfitting
AnswerA

Hallucination is the generation of false or nonsensical information that appears credible.

Why this answer

Hallucination in LLMs refers to generating content that is not grounded in the training data or provided context. It is a known challenge for generative models.

495
MCQmedium

A data scientist is using Amazon Bedrock to build a question-answering system over a large corpus of technical manuals. They want to ensure that the model's answers are grounded in the retrieved documents and that the model does not hallucinate. Which feature should they enable?

A.Embedding model with higher dimensionality
B.Larger chunk sizes in the knowledge base
C.Bedrock Guardrails with grounding support
D.Bedrock Agents with a multi-step reasoning prompt
AnswerC

Grounding checks ensure the model's output is supported by the provided context (retrieved documents), reducing ungrounded or hallucinated answers.

Why this answer

Bedrock Knowledge Bases provides source attribution, and when combined with model inference, the model can be instructed to answer only from the retrieved chunks. However, Bedrock Guardrails' grounding check specifically verifies that the model's response is supported by the retrieved context, reducing hallucination.

496
MCQeasy

A developer is using Amazon Bedrock's Claude model to summarize long documents. The developer notices that the summaries sometimes miss key points. Which parameter adjustment is most likely to improve summary completeness?

A.Increase the max_tokens parameter.
B.Increase the top_k parameter.
C.Increase the temperature parameter.
D.Increase the top_p parameter.
AnswerA

More tokens allow the model to include more details in the summary.

Why this answer

Increasing max_tokens allows the model to generate longer outputs, which is essential when summarizing long documents because the summary may need more tokens to capture all key points. If max_tokens is too low, the model truncates the response, potentially omitting important details. This directly addresses the issue of missing key points by providing sufficient output length for a complete summary.

Exam trap

The AIF-C01 exam often tests the misconception that parameters controlling randomness (temperature, top_k, top_p) affect output length or completeness, when in fact they only influence token selection diversity and creativity.

How to eliminate wrong answers

Option B is wrong because increasing top_k controls the number of highest-probability tokens considered during sampling, which affects randomness and diversity, not the length or completeness of the output. Option C is wrong because increasing temperature increases randomness in token selection, which can lead to more creative but less focused summaries, potentially worsening completeness. Option D is wrong because increasing top_p (nucleus sampling) also controls randomness by selecting tokens with cumulative probability, and does not extend the output length or guarantee inclusion of key points.

497
MCQhard

A research team is using Amazon Bedrock to analyze scientific papers. They want the model to generate answers based only on papers published after 2023. Which approach should they use?

A.Fine-tune the model on a dataset of post-2023 papers and deploy it.
B.Set the maxTokens to a low value to force the model to rely on recent context.
C.Include a system prompt instructing the model to ignore data before 2023.
D.Use Amazon Bedrock Knowledge Bases with a metadata filter to retrieve only papers published after 2023, and generate responses based on retrieved content.
AnswerD

Metadata filtering ensures only relevant recent documents are used, grounding the model in current data.

Why this answer

Amazon Bedrock Knowledge Bases with a metadata filter allows you to restrict retrieval to only documents that match specific metadata criteria, such as publication year. By filtering the vector search to only include papers published after 2023, the model generates responses based solely on that retrieved content, ensuring it does not rely on pre-2023 data. This approach is the only one that guarantees the model's answers are grounded exclusively in the specified time range.

Exam trap

AWS often tests the misconception that a system prompt or fine-tuning can reliably restrict a model's knowledge to a specific time period, when in fact only a retrieval-based approach with metadata filtering can enforce such temporal constraints.

How to eliminate wrong answers

Option A is wrong because fine-tuning the model on a dataset of post-2023 papers does not prevent the model from using its pre-existing training data (which includes pre-2023 knowledge) during inference; fine-tuning adjusts weights but does not erase prior knowledge, so the model could still generate answers based on older information. Option B is wrong because setting maxTokens to a low value limits the length of the generated response but does not control the temporal scope of the model's knowledge; the model can still draw on pre-2023 training data regardless of token count. Option C is wrong because a system prompt instructing the model to ignore data before 2023 is merely a suggestion and not a technical enforcement; the model has no inherent mechanism to filter its own training data by date, so it may still generate answers based on pre-2023 information, especially if the prompt is not strictly followed.

498
MCQmedium

A financial services firm wants to deploy a generative AI application that answers customer questions about account balances and recent transactions. The firm has strict latency requirements (responses under 2 seconds) and wants to minimize costs. Which strategy for model selection and deployment is MOST appropriate?

A.Select a smaller, faster foundation model (e.g., Amazon Titan Text Lite) and use on-demand inference
B.Use the largest available foundation model via on-demand inference for highest accuracy
C.Fine-tune a large model specifically on account data and deploy on a dedicated endpoint
D.Deploy a large model using Provisioned Throughput to guarantee low latency
AnswerA

A smaller model reduces latency and cost while still handling simple Q&A tasks well; on-demand avoids upfront costs.

Why this answer

For latency-sensitive and cost-conscious applications, selecting a smaller, faster model is preferable over a large model or custom deployment. Provisioned Throughput for dedicated capacity would increase cost and may not be needed if the base model performs adequately.

499
Multi-Selectmedium

A company is using an LLM to generate customer support responses. They want to reduce hallucinations and improve the accuracy of the responses. Which TWO approaches are most effective? (Select TWO.)

Select 2 answers
A.Increase the temperature parameter to 1.0
B.Use a smaller model to reduce complexity
C.Remove all system prompts
D.Apply Bedrock Guardrails with contextual grounding check
E.Use Retrieval-Augmented Generation (RAG) to retrieve relevant documents
AnswersD, E

Contextual grounding check verifies that the model's response is supported by the retrieved sources, filtering out unsupported claims.

Why this answer

RAG grounds the model in retrieved facts, while Bedrock Guardrails with contextual grounding check validates responses against sources. Both are proven techniques to reduce hallucinations.

500
MCQhard

A company is building a RAG application that indexes thousands of PDF documents. They notice that some documents are very long (hundreds of pages) and the vector search often returns irrelevant chunks. Which configuration change would MOST improve retrieval relevance?

A.Switch from Amazon OpenSearch Serverless to Pinecone
B.Increase the embedding dimension from 1024 to 4096
C.Use a larger, more capable foundation model for response generation
D.Adjust the chunk size and overlap to better capture context from the documents
AnswerD

Proper chunking ensures that each chunk contains complete, context-rich information, improving the relevance of retrieved passages.

Why this answer

Adjusting chunk size and overlap ensures that chunks contain coherent information. Increasing embedding dimension does not directly improve relevance, nor does changing the model size. Using a different vector store does not inherently fix chunking issues.

501
MCQmedium

A machine learning team wants to detect bias in a deployed model's predictions on new data. They use Amazon SageMaker. Which service should they use to generate bias reports after deployment?

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

Clarify can run bias metrics on predictions after deployment.

Why this answer

Amazon SageMaker Clarify provides bias detection and explainability for ML models, both during training and after deployment. SageMaker Model Monitor detects data drift but not bias. SageMaker Debugger is for training debugging.

SageMaker Role Manager is for managing IAM roles.

502
MCQhard

A security engineer is configuring logging for Amazon Bedrock model invocations. They need to capture both the input and output of all API calls for compliance audits. Which set of steps should they take?

A.Enable Bedrock model invocation logging and specify an S3 bucket and optionally CloudWatch Logs as the destination
B.Enable CloudTrail for the Bedrock API and configure S3 event notifications
C.Use VPC Flow Logs to capture network traffic and reconstruct model inputs from packet data
D.Enable AWS Config rules for Bedrock and stream logs to Amazon Kinesis
AnswerA

Model invocation logging captures the content of requests and responses and stores them in S3 or CloudWatch.

Why this answer

Bedrock model invocation logging captures inputs and outputs to S3 and/or CloudWatch Logs. CloudTrail records API calls but not the model inputs/outputs.

503
Multi-Selecthard

A company wants to enforce strict data residency for training data used in SageMaker. The data must never leave a specific AWS Region. Which THREE actions should they take? (Choose 3)

Select 3 answers
A.Use KMS customer managed keys specific to the region
B.Use AWS KMS multi-Region keys to encrypt data
C.Use S3 bucket policies to deny access if the request originates from outside the region
D.Enable cross-region replication for the S3 bucket
E.Create a VPC in the desired region and place all SageMaker resources in that VPC
AnswersA, C, E

Regional KMS keys ensure data can only be decrypted in that region.

Why this answer

To enforce data residency, the company must use a VPC in the desired region, configure S3 bucket policies to block cross-region access, and use KMS keys regional to that region.

504
MCQmedium

An IAM policy allows creation of SageMaker training jobs only if they use a specific VPC security group. A user tries to create a training job without specifying that security group. What will happen?

A.The request will succeed but SageMaker will ignore the condition
B.The request will succeed because the condition is optional
C.The request will be denied because the training job resource ARN is invalid
D.The request will be denied with an AccessDenied error
AnswerD

The IAM condition is not satisfied, so the request is denied.

Why this answer

IAM policies are evaluated before any AWS API action is executed. If the policy includes a condition that requires a specific VPC security group for SageMaker training jobs, and the user's request does not include that security group, the condition is not met, resulting in an explicit deny (AccessDenied error). AWS IAM denies the request by default if the condition in a policy is not satisfied, regardless of whether the condition is marked as optional in the API.

Exam trap

The trap here is that candidates assume an optional API parameter means the IAM condition is also optional, but IAM conditions are strictly enforced regardless of whether the parameter is required by the API.

How to eliminate wrong answers

Option A is wrong because IAM policies do not ignore conditions; if a condition is not met, the request is denied, not silently ignored. Option B is wrong because the condition is not optional from an IAM perspective; even if the API parameter is optional, the IAM policy condition must be satisfied for the request to be allowed. Option C is wrong because the training job resource ARN is not invalid; the request is denied due to the policy condition, not due to an ARN format issue.

505
MCQeasy

A data science team is fine-tuning a Llama 2 7B model on Amazon SageMaker for a text classification task. After the first training run, they notice the loss is not decreasing and the model is overfitting to the small training set. What should the team change to mitigate overfitting?

A.Add dropout layers and reduce the learning rate.
B.Increase the number of epochs to allow the model to learn more patterns.
C.Increase the batch size and use gradient accumulation.
D.Remove dropout layers from the model architecture.
AnswerA

Dropout randomly drops neurons to prevent co-adaptation, and a lower learning rate helps stabilize training, both reducing overfitting.

Why this answer

Adding dropout layers introduces regularization by randomly dropping neurons during training, which prevents the model from relying too heavily on specific features and reduces overfitting. Reducing the learning rate helps the model converge more smoothly and avoid oscillating around a suboptimal minimum, which is especially important when fine-tuning a large model like Llama 2 7B on a small dataset. Together, these changes address the core issues of overfitting and non-decreasing loss.

Exam trap

The trap here is that candidates may mistakenly think increasing epochs or batch size helps with overfitting, when in fact these changes often worsen it by allowing the model to memorize the training data more thoroughly.

How to eliminate wrong answers

Option B is wrong because increasing the number of epochs would allow the model to see the small training set more times, which exacerbates overfitting rather than mitigating it. Option C is wrong because increasing the batch size and using gradient accumulation primarily affect training speed and memory usage, not regularization; they do not directly address overfitting and may even lead to sharper minima, worsening generalization. Option D is wrong because removing dropout layers would reduce regularization, making overfitting worse, not better.

506
MCQhard

A company has built a RAG application using Amazon Bedrock Knowledge Bases. Users report that answers are sometimes based on irrelevant or incorrect document chunks. The team has verified that the embedding model is appropriate and the documents are correctly indexed. What is the MOST likely cause of the poor retrieval quality?

A.The foundation model is too small
B.The prompt template is missing instructions
C.The vector store is too slow
D.The chunking strategy is suboptimal
AnswerD

Chunking size, overlap, and strategy heavily impact which chunks are retrieved. Incorrect chunking can lead to irrelevant results even with good embeddings.

Why this answer

Chunking strategy directly affects retrieval relevance. If chunks are too large, they may contain irrelevant information; if too small, they may miss context. Overlap size also matters.

Optimizing chunking often fixes relevance issues when embeddings are correct.

507
Multi-Selecteasy

Which TWO AWS services can be used to monitor and detect security anomalies in Amazon SageMaker model inference data? (Choose TWO.)

Select 2 answers
A.Amazon Macie
B.AWS CloudTrail
C.Amazon CodeGuru Security
D.Amazon SageMaker Model Monitor
E.Amazon CloudWatch Logs
AnswersD, E

Model Monitor detects data drift and anomalies in inference data.

Why this answer

Amazon SageMaker Model Monitor is specifically designed to detect deviations in model quality, such as data drift and feature attribution drift, by continuously monitoring inference data against a baseline. Amazon CloudWatch Logs can be used to capture and analyze inference request logs, enabling custom anomaly detection through log-based metrics and alarms. Together, they provide a comprehensive approach to monitoring security anomalies in SageMaker model inference data.

Exam trap

The trap here is that candidates often confuse AWS CloudTrail (API auditing) with CloudWatch Logs (log monitoring), or assume Macie can monitor any data flow, when it is restricted to S3 object-level sensitive data discovery.

508
MCQmedium

A company uses Amazon Bedrock to generate marketing copy. They want to measure the quality of generated text compared to reference text. Which metric is most appropriate?

A.F1 score
B.BLEU
C.RMSE
D.Accuracy
AnswerB

BLEU calculates n-gram overlap between candidate and reference text, suitable for generation evaluation.

Why this answer

BLEU (Bilingual Evaluation Understudy) is the most appropriate metric for evaluating the quality of generated text against reference text in tasks like machine translation and text generation. It measures n-gram precision between the generated and reference texts, making it ideal for assessing marketing copy generated by Amazon Bedrock.

Exam trap

AWS often tests the distinction between classification/regression metrics and text generation metrics, leading candidates to mistakenly apply F1 score or accuracy to evaluate generated text quality instead of using BLEU or similar sequence-based metrics.

How to eliminate wrong answers

Option A is wrong because F1 score is a classification metric that measures harmonic mean of precision and recall, not suitable for evaluating text generation quality against reference text. Option C is wrong because RMSE (Root Mean Square Error) is a regression metric used for continuous numerical predictions, not for text or sequence evaluation. Option D is wrong because Accuracy is a classification metric that measures the proportion of correct predictions, which does not account for the sequential and linguistic nuances of generated text.

509
MCQmedium

A company is developing a chatbot using Amazon Bedrock and wants to ensure the model's responses do not include toxic or biased language. The company has a labeled dataset of undesirable responses. Which approach should be used to fine-tune the foundation model to reduce harmful outputs?

A.Use reinforcement learning from human feedback (RLHF) with a reward model trained on human preferences.
B.Perform supervised fine-tuning on a curated dataset of safe responses.
C.Use prompt engineering to instruct the model to avoid toxic language.
D.Implement adversarial validation by testing against toxic inputs.
AnswerA

RLHF uses human feedback to train a reward model, which then guides the base model to generate safer outputs.

Why this answer

Reinforcement learning from human feedback (RLHF) is the correct approach because it directly optimizes the model to avoid toxic or biased outputs by training a reward model on human-labeled preferences. The reward model scores the model's responses, and the foundation model is fine-tuned via reinforcement learning to maximize these scores, effectively reducing harmful language. This method is specifically designed to align model behavior with nuanced human values, such as avoiding toxicity, which supervised fine-tuning alone cannot guarantee.

Exam trap

The AIF-C01 exam often tests the misconception that supervised fine-tuning or prompt engineering alone can reliably eliminate harmful outputs, when in fact RLHF is required to align the model with nuanced human preferences through iterative feedback.

How to eliminate wrong answers

Option B is wrong because supervised fine-tuning on a curated dataset of safe responses teaches the model to mimic safe patterns but does not explicitly penalize toxic outputs during generation; it lacks a reward signal to discourage harmful language when the model deviates from the training distribution. Option C is wrong because prompt engineering is a static, instruction-based technique that can be easily bypassed by adversarial inputs or subtle variations in phrasing; it does not modify the model's internal weights to reliably avoid toxic language. Option D is wrong because adversarial validation only tests the model's robustness to toxic inputs without fine-tuning the model itself; it identifies vulnerabilities but does not reduce harmful outputs in production.

510
MCQeasy

A startup is building a code generation assistant using a large language model. They want to evaluate the quality of generated code compared to reference implementations. Which automated metric is MOST suitable for this task?

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

BLEU measures n-gram precision and is widely used for code translation/generation tasks.

Why this answer

BLEU is commonly used for code generation evaluation, measuring n-gram overlap with reference code. ROUGE is for summarization, BERTScore for semantic similarity, and accuracy is for classification.

511
MCQhard

A data scientist is using Amazon Bedrock to generate product descriptions. They notice the output is often repetitive and lacks creativity. Which combination of parameter adjustments is MOST likely to produce more diverse and less repetitive output?

A.Decrease temperature and decrease top-p
B.Decrease temperature and increase top-p
C.Increase temperature and decrease top-p
D.Increase temperature and increase top-p
AnswerD

Higher temperature flattens probability distribution; higher top-p expands the set of candidate tokens, both promoting diversity.

Why this answer

Increasing temperature raises the probability of sampling lower-probability tokens, which increases randomness and diversity. Increasing top-p (nucleus sampling) expands the set of tokens considered for sampling, further reducing repetitiveness. Together, these adjustments encourage the model to explore a wider range of possible continuations, producing more creative and less repetitive output.

Exam trap

AWS often tests the misconception that increasing temperature alone is sufficient for diversity, but candidates forget that top-p must also be increased to avoid the model repeatedly sampling from a narrow set of high-probability tokens.

How to eliminate wrong answers

Option A is wrong because decreasing both temperature and top-p makes the model more deterministic and focused on the highest-probability tokens, which increases repetitiveness and reduces creativity. Option B is wrong because decreasing temperature while increasing top-p partially counteracts the effect: lower temperature narrows token probabilities, so even with a larger top-p set, the model still tends to pick the same high-probability tokens, limiting diversity. Option C is wrong because increasing temperature but decreasing top-p restricts the sampling pool to only the most probable tokens, which can still lead to repetitive patterns despite higher randomness within that narrow set.

512
MCQhard

A company wants to forecast product demand across thousands of SKUs with different demand patterns. They have 3 years of historical sales data, plus external factors like holidays and promotions. Which combination of AWS services and approach would deliver the most accurate forecasts with minimal manual effort?

A.Use Amazon Comprehend to analyze customer reviews and correlate with sales
B.Upload data to Amazon QuickSight and use its built-in forecasting widget
C.Use Amazon Forecast with the DeepAR+ algorithm and provide item metadata, holiday calendars, and promotion data
D.Train individual ARIMA models for each SKU using Amazon SageMaker built-in algorithms
AnswerC

Forecast is designed for scalable, accurate forecasting with built-in handling of external regressors.

Why this answer

Amazon Forecast is purpose-built for time-series forecasting and automatically handles multiple SKUs, holidays, and promotions. SageMaker would require building custom models from scratch. Comprehend is NLP, and QuickSight is for visualization.

513
MCQhard

A bank uses an AI system to detect fraudulent transactions. The model has high precision but low recall for small transactions, potentially missing fraud. Which approach aligns with responsible AI?

A.Send all flagged transactions to customers for confirmation
B.Focus only on precision to minimize false positives
C.Tune the model to achieve an acceptable balance between recall and precision
D.Increase the detection threshold to reduce false positives
AnswerC

Balancing metrics is a responsible approach.

Why this answer

Responsible AI requires balancing competing objectives like precision and recall to align with ethical principles and business needs. In fraud detection, high precision with low recall means many fraudulent transactions are missed, which can lead to significant financial losses and erode customer trust. Tuning the model to achieve an acceptable trade-off ensures that the system is both effective and fair, minimizing harm while maintaining operational viability.

Exam trap

The AIF-C01 exam often tests the misconception that increasing the detection threshold improves model performance overall, when in fact it only reduces false positives at the cost of lowering recall, which can be detrimental in high-stakes applications like fraud detection.

How to eliminate wrong answers

Option A is wrong because sending all flagged transactions to customers for confirmation shifts the burden to users, degrades user experience, and may not be scalable or timely for real-time fraud detection, nor does it address the underlying model imbalance. Option B is wrong because focusing only on precision ignores the critical need to catch actual fraud (recall), which can result in substantial financial losses and violates the responsible AI principle of beneficence. Option D is wrong because increasing the detection threshold reduces false positives but further lowers recall, worsening the problem of missed fraud and contradicting the goal of responsible AI.

514
Multi-Selecthard

A company is evaluating the performance of their question-answering model using Amazon Bedrock's model evaluation feature. They want to assess both the factual accuracy and the fluency of the generated answers. Which THREE metrics should they choose? (Select THREE.)

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

ROUGE measures n-gram recall, useful for factual overlap in QA.

Why this answer

ROUGE measures overlap for summarization/QA; BERTScore measures semantic similarity; and human evaluation is the gold standard for fluency and factual accuracy. BLEU is for translation; exact match is too strict for open-ended QA.

515
MCQeasy

A company wants to use a foundation model to automatically summarize lengthy documents. Which capability of foundation models is being utilized?

A.Text generation
B.Sentiment analysis
C.Text classification
D.Machine translation
AnswerA

Summarization is a form of text generation where the model produces concise output.

Why this answer

Summarization is a text generation task where the model produces a concise version of the original content. Foundation models (e.g., GPT, Claude) are pre-trained on vast corpora and can generate coherent summaries by predicting the next tokens conditioned on the input document. This directly utilizes the text generation capability, not classification or translation.

Exam trap

The AIF-C01 exam often tests the distinction between text generation and text classification, so the trap here is that candidates may confuse summarization (a generative task) with classification or analysis tasks, especially when the question emphasizes 'understanding' the document rather than 'producing' new text.

How to eliminate wrong answers

Option B (Sentiment analysis) is wrong because it involves classifying the emotional tone of text (positive, negative, neutral), not generating a summary. Option C (Text classification) is wrong because it assigns predefined labels or categories to text, whereas summarization requires generating new text. Option D (Machine translation) is wrong because it converts text from one language to another, not condensing content within the same language.

516
MCQmedium

A company uses Amazon Bedrock to generate code snippets for internal tools. They notice that the generated code often contains security vulnerabilities such as SQL injection and cross-site scripting. The security team has compiled a comprehensive list of secure coding guidelines and examples of vulnerable patterns. The development team wants to reduce vulnerabilities without significantly slowing down the code generation process. They have tried adding the guidelines to the system prompt, but the model still produces insecure code occasionally. The team is considering additional measures. Which action should they take to most effectively eliminate security vulnerabilities in the generated code?

A.Implement a post-processing step using Amazon CodeGuru or a similar static analysis tool to scan the generated code for vulnerabilities and reject or fix insecure code.
B.Use a larger, more expensive foundation model that specializes in code generation.
C.Include the complete secure coding guidelines in every prompt.
D.Increase the temperature parameter of the foundation model to promote more diverse outputs.
AnswerA

Correct: Post-processing with static analysis reliably catches vulnerabilities and can be automated without slowing down generation significantly.

Why this answer

It introduces a deterministic, post-generation validation layer that catches vulnerabilities the model might miss. Amazon CodeGuru Reviewer or similar static analysis tools can scan generated code for patterns like SQL injection and XSS, then reject or fix insecure code without modifying the generation process itself. This approach directly addresses the security team's guidelines while maintaining generation speed, as the model's inference latency is unaffected.

Exam trap

AWS often tests the misconception that prompt engineering alone can fully control model output, when in reality, deterministic post-processing steps are required to enforce strict security or compliance requirements.

How to eliminate wrong answers

Option B is wrong because using a larger, more expensive foundation model does not guarantee elimination of security vulnerabilities; all models can produce insecure code, and size does not correlate with adherence to specific security guidelines. Option C is wrong because including the complete secure coding guidelines in every prompt increases token usage and may cause the model to ignore or truncate the guidelines, leading to inconsistent results and slower generation due to longer prompts. Option D is wrong because increasing the temperature parameter promotes more diverse and random outputs, which would likely increase the probability of generating insecure code rather than reducing it.

517
MCQmedium

A company uses Amazon Bedrock to generate marketing copy. They want to evaluate the quality of generated text against human-written reference texts using automated metrics. Which metric measures the overlap of n-grams between generated and reference text?

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

ROUGE (Recall-Oriented Understudy for Gisting Evaluation) measures n-gram overlap.

Why this answer

ROUGE measures n-gram overlap and is commonly used for summarisation. BLEU is for translation, BERTScore uses embeddings, and Perplexity measures language model confidence.

518
MCQeasy

A startup needs to predict customer churn based on historical data containing labels (churned or not). Which type of machine learning should they use?

A.Reinforcement learning
B.Unsupervised learning
C.Supervised learning
D.Semi-supervised learning
AnswerC

Since the data has labels, supervised learning is appropriate for classification.

Why this answer

The startup has labeled historical data (churned or not), which is the defining characteristic of supervised learning. The goal is to learn a mapping from input features to the known output labels to predict churn for new customers. This is a classic classification problem, making supervised learning the correct choice.

Exam trap

The AIF-C01 exam often tests the distinction between supervised and unsupervised learning by presenting a scenario with labeled data, where candidates might mistakenly choose unsupervised learning if they overlook the presence of labels.

How to eliminate wrong answers

Option A is wrong because reinforcement learning involves an agent learning through trial-and-error interactions with an environment to maximize cumulative reward, not from labeled historical data. Option B is wrong because unsupervised learning finds hidden patterns or structures in unlabeled data, but here the labels (churned/not) are explicitly provided. Option D is wrong because semi-supervised learning uses a small amount of labeled data with a large amount of unlabeled data, but the problem states the historical data contains labels, implying fully labeled data is available.

519
MCQhard

A deployed model on an Amazon SageMaker endpoint is experiencing high inference latency (average 500ms) during peak hours. The model is a deep neural network with 10 million parameters. The endpoint uses a single ml.c5.xlarge instance. The company wants to reduce latency to under 200ms without retraining or changing the model architecture. Which action should they take?

A.Enable automatic scaling to add more instances
B.Switch to a GPU-based instance type like ml.p2.xlarge
C.Deploy the model on a multi-model endpoint
D.Use SageMaker Neo to compile and optimize the model
AnswerD

SageMaker Neo optimizes models for target hardware, significantly reducing inference latency without changing the model.

Why this answer

SageMaker Neo compiles trained models into an optimized format for the target hardware, reducing inference latency without altering the model architecture. For a deep neural network with 10 million parameters on a CPU instance, Neo applies hardware-specific optimizations like operator fusion and memory layout tuning, which can significantly lower latency. This directly addresses the requirement to reduce latency from 500ms to under 200ms without retraining or changing the model.

Exam trap

AWS often tests the misconception that scaling or switching to GPU is the default solution for latency issues, but the trap here is that the question explicitly prohibits retraining or architecture changes, making model compilation via SageMaker Neo the only viable option that directly optimizes inference speed on the existing hardware.

How to eliminate wrong answers

Option A is wrong because automatic scaling adds more instances to handle increased request volume, but it does not reduce per-request latency; it distributes load but each request still processes on a single instance with the same inference time. Option B is wrong because switching to a GPU instance like ml.p2.xlarge may accelerate certain model types but does not guarantee latency reduction for a deep neural network with 10 million parameters, and it introduces higher cost and potential overhead from GPU initialization; the requirement is to reduce latency without retraining or architecture changes, and GPU acceleration often requires model adaptation. Option C is wrong because deploying on a multi-model endpoint is designed to host multiple models on a single endpoint to improve resource utilization, not to reduce inference latency for a single model; it adds container management overhead that could increase latency.

520
Multi-Selecteasy

A company wants to log all model invocation requests in Amazon Bedrock for audit and troubleshooting. Which TWO destinations can they configure for invocation logging? (Choose 2)

Select 2 answers
A.Amazon CloudWatch Logs
B.Amazon S3
C.Amazon DynamoDB
D.AWS CloudTrail
E.Amazon Kinesis Data Firehose
AnswersA, B

Invocation logs can be sent to CloudWatch Logs.

Why this answer

Bedrock invocation logging supports S3 and CloudWatch Logs as destinations.

521
MCQhard

An e-commerce company uses Amazon Personalize to provide product recommendations. The business team observes that the recommendations are dominated by popular items and rarely suggest niche products, even for users with long purchase histories. Which Personalize recipe or configuration change would BEST address this issue?

A.Increase the minimum interaction threshold for item inclusion
B.Decrease the learning rate for the model
C.Switch from aws-user-personalization recipe to aws-popularity-count recipe
D.Use the aws-user-personalization recipe and enable the explore-holdoff feature
AnswerD

This recipe includes automatic popularity-bias reduction; explore-holdoff can further encourage exploration of less popular items.

Why this answer

The aws-user-personalization recipe includes an explore-holdoff feature that controls the balance between exploiting known user preferences and exploring less popular items. Enabling this feature reduces the dominance of popular items by allowing the model to recommend niche products, even for users with long purchase histories, addressing the bias toward popular items.

Exam trap

The trap here is that candidates often confuse the explore-holdoff feature with hyperparameter tuning (like learning rate) or assume that switching to a popularity-based recipe would solve the problem, when in fact the correct approach is to enable exploration within the existing personalization recipe.

How to eliminate wrong answers

Option A is wrong because increasing the minimum interaction threshold for item inclusion would filter out items with fewer interactions, further reducing niche product recommendations and worsening the popularity bias. Option B is wrong because decreasing the learning rate affects the model's convergence speed during training, not the exploration-exploitation balance, and does not directly address the dominance of popular items. Option C is wrong because switching to the aws-popularity-count recipe would recommend items solely based on popularity, which would exacerbate the issue of recommending only popular items, not solve it.

522
MCQhard

A company is deploying a real-time chatbot using Amazon Bedrock and expects high traffic during business hours. They want to minimise inference costs while maintaining low latency. Which combination of strategies would be MOST effective?

A.Increase the context length to handle more conversations per prompt
B.Enable model caching and use a smaller, faster foundation model
C.Use batch inference for all requests and provision a large model
D.Disable content filtering to reduce processing time
AnswerB

Caching reduces redundant compute, and a smaller model reduces per-request cost while meeting latency needs.

Why this answer

Model caching can serve repeated queries quickly without re-invocation, and batch inference is cost-effective for non-real-time workloads but not for real-time. Right-sizing means choosing a model that balances cost and performance.

523
MCQeasy

A company wants to monitor for malicious activity in their machine learning pipelines, such as unauthorized access to training data or model artifacts. Which AWS service can provide automated threat detection and continuous monitoring?

A.AWS Config
B.Amazon GuardDuty
C.AWS Shield
D.Amazon Inspector
AnswerB

GuardDuty continuously monitors for malicious activity across AWS accounts and workloads.

Why this answer

Amazon GuardDuty is a threat detection service that continuously monitors for malicious activity and unauthorized behavior across AWS workloads, including machine learning pipelines. It uses machine learning, anomaly detection, and integrated threat intelligence to identify threats such as unauthorized access to S3 buckets containing training data or model artifacts, without requiring manual intervention.

Exam trap

AWS often tests the distinction between services that monitor for security threats (GuardDuty) versus services that manage compliance (AWS Config), protect against DDoS (AWS Shield), or scan for vulnerabilities (Amazon Inspector), leading candidates to confuse configuration auditing with active threat detection.

How to eliminate wrong answers

Option A is wrong because AWS Config is a service for evaluating and auditing resource configurations against compliance rules, not for continuous threat detection or monitoring for malicious activity. Option C is wrong because AWS Shield is a managed Distributed Denial of Service (DDoS) protection service, designed to safeguard against network and transport layer attacks, not for detecting unauthorized access or malicious behavior in ML pipelines. Option D is wrong because Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not for real-time threat detection or monitoring of malicious activity.

524
MCQeasy

An e-commerce company uses a foundation model to generate personalized email subject lines. The marketing team notices that the subject lines sometimes contain product recommendations that are out of stock. Which action would best reduce the generation of out-of-stock recommendations without retraining the model?

A.Implement a post-processing step to replace out-of-stock recommendations with in-stock alternatives.
B.Fine-tune the model on a dataset of past successful subject lines that only include in-stock products.
C.Add a system prompt that explicitly instructs the model to only recommend products that are in stock.
D.Use a retrieval-augmented generation (RAG) approach to retrieve a list of in-stock products and include it in the prompt.
AnswerC

A system prompt can constrain the model's output to follow the instruction, reducing unwanted recommendations.

Why this answer

Adding a system prompt that explicitly instructs the model to only recommend in-stock products directly constrains the model's output at inference time without requiring retraining. This leverages the model's instruction-following capability to filter its generated content based on the provided context, which is a lightweight and immediate solution.

Exam trap

AWS often tests the distinction between inference-time interventions (like prompt engineering) and training-time interventions (like fine-tuning), and the trap here is that candidates may confuse RAG (which retrieves external data but does not enforce constraints) with a system prompt that directly instructs the model, leading them to select D instead of C.

How to eliminate wrong answers

Option A is wrong because post-processing replacement of out-of-stock recommendations with in-stock alternatives is reactive and may introduce irrelevant or incorrect substitutions, failing to prevent the model from generating out-of-stock items in the first place. Option B is wrong because fine-tuning the model requires retraining on a new dataset, which contradicts the question's constraint of 'without retraining the model.' Option D is wrong because while RAG can retrieve a list of in-stock products, including it in the prompt does not guarantee the model will exclusively recommend those items; the model may still generate out-of-stock recommendations from its parametric knowledge, especially if the prompt is not strictly enforced.

525
MCQeasy

A social media company needs to automatically detect and flag toxic comments in multiple languages. They have a large stream of user comments and require real-time moderation. Which AWS service is best suited for this task?

A.Amazon Lex
B.Amazon Comprehend
C.Amazon Rekognition
D.Amazon Translate
AnswerB

Amazon Comprehend provides built-in sentiment analysis and toxic content detection in multiple languages, suitable for real-time text analysis.

Why this answer

Amazon Comprehend is the correct choice because it is a natural language processing (NLP) service that can perform real-time toxicity detection across multiple languages using its built-in content moderation and custom classification capabilities. It analyzes text streams to identify toxic comments (e.g., hate speech, threats) and integrates with AWS streaming services like Amazon Kinesis for real-time processing.

Exam trap

The trap here is that candidates may confuse Amazon Comprehend's NLP capabilities with Amazon Lex's conversational AI or Amazon Translate's language translation, assuming any language-related service can detect toxicity, but only Comprehend provides the specific text analysis APIs for content moderation.

How to eliminate wrong answers

Option A is wrong because Amazon Lex is a service for building conversational interfaces (chatbots) using automatic speech recognition (ASR) and natural language understanding (NLU), not for analyzing text for toxicity. Option C is wrong because Amazon Rekognition is designed for image and video analysis (e.g., object detection, facial recognition), not for processing text comments. Option D is wrong because Amazon Translate is a machine translation service that converts text between languages but does not perform toxicity detection or content moderation.

Page 6

Page 7 of 9

Page 8

All pages