Courseiva

CCNA Fundamentals of Generative AI Questions

57 questions · Fundamentals of Generative AI · All types, answers revealed

1
MCQmedium

A developer is using the Amazon Bedrock API to generate text. They notice that the model sometimes returns harmful content despite setting safety parameters. What is the BEST way to add an additional layer of content filtering?

A.Fine-tune the model on a curated safe dataset
B.Configure content filters in Amazon Bedrock Guardrails
C.Improve prompt engineering with more specific instructions
D.Use AWS WAF to filter API responses
AnswerB

Guardrails provide configurable content filters to block harmful content.

Why this answer

Amazon Bedrock Guardrails provides a dedicated, configurable content filtering layer that can block harmful content at inference time, independent of the model's built-in safety parameters. This allows developers to enforce custom policies (e.g., hate speech, violence) without modifying the model itself, making it the best additional safeguard.

Exam trap

The AIF-C01 exam often tests the misconception that fine-tuning or prompt engineering alone can fully prevent harmful outputs, when in fact a separate, configurable guardrail layer is the recommended approach for production-grade content filtering in Amazon Bedrock.

How to eliminate wrong answers

Option A is wrong because fine-tuning the model on a curated safe dataset adjusts the model's weights to reduce harmful outputs, but it does not guarantee filtering of all harmful content at inference and requires significant retraining effort; it is not an 'additional layer' but a model modification. Option C is wrong because improving prompt engineering with more specific instructions can guide the model's behavior but cannot reliably block harmful content that the model might generate despite instructions, as it lacks enforcement at the API response level. Option D is wrong because AWS WAF is a web application firewall designed to filter HTTP requests to web applications, not to inspect or filter the content of API responses from Bedrock; it operates at the network layer, not the application content layer.

2
MCQmedium

A company is building a chatbot using Amazon Bedrock. They want to ensure the model's responses are grounded in their internal knowledge base and avoid generating information outside that scope. Which feature should they use?

A.Amazon Bedrock Knowledge Bases
B.Agents for Amazon Bedrock
C.Model Evaluation on Amazon Bedrock
D.Guardrails for Amazon Bedrock
AnswerA

Knowledge Bases enable RAG by connecting FM to private data, grounding responses.

Why this answer

Amazon Bedrock Knowledge Bases is the correct feature because it allows you to connect a foundation model (FM) to your internal data sources, such as documents or databases, and use Retrieval Augmented Generation (RAG) to ground responses in that specific knowledge. This ensures the chatbot only generates information from the provided knowledge base, preventing hallucinations or out-of-scope content.

Exam trap

The AIF-C01 exam often tests the distinction between features that control content (Guardrails) versus features that provide source data (Knowledge Bases), leading candidates to mistakenly choose Guardrails when the question is about grounding responses in internal data.

How to eliminate wrong answers

Option B is wrong because Agents for Amazon Bedrock are designed to orchestrate multi-step tasks and interact with external APIs, not to restrict the model's responses to a specific knowledge base. Option C is wrong because Model Evaluation on Amazon Bedrock is used to assess model performance and safety, not to control the source of information for responses. Option D is wrong because Guardrails for Amazon Bedrock enforce content policies (e.g., filtering harmful or off-topic content) but do not ground responses in a specific internal knowledge base.

3
MCQhard

A company operates in a region where Amazon Bedrock is not available. They want to use generative AI but must keep data within the country. Which solution should they consider?

A.Use Amazon SageMaker to host an open-source model in the local region.
B.Wait for Bedrock to become available in their region; there is no alternative.
C.Use Amazon Bedrock in the nearest available region with cross-region inference.
D.Use an API from a third-party generative AI provider with AWS PrivateLink.
AnswerA

SageMaker is available in all regions and allows full control over data residency.

Why this answer

Amazon SageMaker allows you to host open-source models (e.g., Llama 2, Falcon) in any AWS region, including those where Bedrock is unavailable. This satisfies the data residency requirement because the model and data never leave the local region. SageMaker provides full control over the infrastructure, enabling compliance with local data sovereignty laws.

Exam trap

The trap here is that candidates assume Bedrock is the only AWS generative AI service, overlooking SageMaker's capability to host open-source models, which is a common misconception tested in the AIF-C01 exam.

How to eliminate wrong answers

Option B is wrong because waiting for Bedrock availability is unnecessary; SageMaker offers a viable alternative today. Option C is wrong because cross-region inference would send data outside the required country boundary, violating the data residency constraint. Option D is wrong because using a third-party API, even with AWS PrivateLink, still involves data leaving the AWS network to an external provider, which may not guarantee data remains within the country.

4
MCQhard

A data scientist fine-tuned a large language model on Amazon SageMaker for financial report generation. The model produces responses that are too short and incomplete, often cutting off mid-sentence. What parameter should be adjusted first?

A.Increase the temperature parameter
B.Increase the top_p parameter
C.Increase the maximum token count
D.Switch to a different foundation model
AnswerC

Max tokens sets a hard limit on the number of tokens generated; raising it allows longer responses.

Why this answer

The max tokens parameter limits the length of generated responses. Increasing it allows the model to produce longer completions. Temperature, top_p, and model change affect quality or diversity, but not the length cap.

5
MCQeasy

Which AWS service provides a serverless experience for building and scaling generative AI applications with access to various foundation models?

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

Bedrock provides a serverless experience with pre-trained foundation models from leading AI companies.

Why this answer

Amazon Bedrock is a fully managed service that provides a serverless experience for building and scaling generative AI applications. It offers access to a variety of foundation models (FMs) from providers like AI21 Labs, Anthropic, Cohere, Meta, Stability AI, and Amazon via a single API, without the need to manage underlying infrastructure.

Exam trap

The trap here is that candidates may confuse Amazon SageMaker's broad ML capabilities with the specific serverless, foundation-model-focused offering of Amazon Bedrock, or mistakenly think AWS Lambda alone provides generative AI model access when it is merely a compute trigger.

How to eliminate wrong answers

Option B is wrong because Amazon SageMaker is a comprehensive machine learning (ML) platform that requires users to manage the entire ML lifecycle, including provisioning instances, training custom models, and deploying endpoints; it is not a serverless service specifically designed for accessing pre-built 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), and it does not provide access to foundation models for generative AI tasks. Option D is wrong because AWS Lambda is a serverless compute service that runs code in response to events, but it does not natively provide access to foundation models or a managed API for generative AI; it can be used as part of a solution but is not the primary service for building and scaling generative AI applications with FMs.

6
MCQmedium

A company wants to use Amazon Bedrock to generate images from text descriptions. Which model should they use?

A.Amazon Titan Image Generator
B.Stable Diffusion XL
C.Amazon Titan Text
D.Amazon Polly
AnswerA

Amazon Titan Image Generator is purpose-built for text-to-image generation within Bedrock.

Why this answer

Amazon Titan Image Generator is the correct choice because it is specifically designed by AWS for generating images from text descriptions within Amazon Bedrock. It leverages a diffusion-based architecture to create high-quality images, making it the native and optimal model for this task on the platform.

Exam trap

The trap here is that candidates may confuse Stable Diffusion XL as the default image generation model for Bedrock due to its popularity, but Amazon Bedrock prioritizes its own first-party models like Titan for native integration and support.

How to eliminate wrong answers

Option B is wrong because Stable Diffusion XL, while capable of generating images from text, is an open-source model that is not natively integrated into Amazon Bedrock as a first-party offering; it would require additional setup or third-party integration. Option C is wrong because Amazon Titan Text is a large language model (LLM) designed for text generation tasks such as summarization, translation, and question-answering, not for image generation. Option D is wrong because Amazon Polly is a text-to-speech service that converts text into lifelike speech, not a generative AI model for creating images.

7
MCQhard

A financial services company is deploying a generative AI model on Amazon SageMaker for real-time fraud detection. The model, a fine-tuned Llama 2 7B, must respond to transaction requests within 500 milliseconds. The team has deployed the model using a SageMaker real-time endpoint with a single ml.g5.2xlarge instance. During load testing, the endpoint achieves an average latency of 450 ms at 10 requests per second (RPS), but the latency spikes to over 2 seconds at 20 RPS. The team needs to maintain sub-500 ms latency at up to 50 RPS. The model is too large to fit on a single GPU, so they are using CPU instances. They considered using a larger instance type but want to minimize cost. What should the team do to meet the latency requirement cost-effectively?

A.Upgrade to a single ml.g5.4xlarge instance
B.Attach an Amazon Elastic Inference accelerator to the existing instance
C.Use a SageMaker multi-model endpoint with multiple ml.g5.xlarge instances and auto scaling
D.Use SageMaker Serverless Inference to automatically scale
AnswerC

Distributing load across smaller instances reduces cost and meets latency via scaling.

Why this answer

A SageMaker multi-model endpoint (MME) allows multiple model replicas to be hosted on a fleet of instances, enabling horizontal scaling to handle increased throughput. By using multiple ml.g5.xlarge instances with auto scaling, the team can distribute the 50 RPS load across several instances, keeping per-instance latency low while minimizing cost compared to a single larger instance. This approach also leverages the fact that the model is too large for a single GPU but can be efficiently served on CPU instances with proper load distribution.

Exam trap

The trap here is that candidates assume a larger single instance (Option A) is the simplest solution, but they overlook the cost-efficiency and scalability benefits of horizontal scaling with a multi-model endpoint, which is specifically designed for high-throughput, low-latency inference with models that don't fit on a single GPU.

How to eliminate wrong answers

Option A is wrong because upgrading to a single ml.g5.4xlarge instance provides more vCPUs and memory but does not address the fundamental bottleneck of a single instance handling 50 RPS; latency would still spike due to sequential processing limits. Option B is wrong because Amazon Elastic Inference (EI) accelerators are designed for low-latency GPU-based inference and are not compatible with CPU-only instances; they also cannot help if the model does not fit on a single GPU. Option D is wrong because SageMaker Serverless Inference has a maximum concurrency limit and cold start latency that can exceed 500 ms, making it unsuitable for real-time fraud detection with strict sub-500 ms latency requirements.

8
MCQeasy

A developer invoked an Amazon Bedrock model and received this output. What does the stopReason field indicate?

A.A content filter blocked the output
B.The input prompt was too long
C.The model reached the maximum token limit set in the request
D.The model reached a natural stopping point
AnswerC

The stopReason 'max_tokens' explicitly indicates the output was truncated due to the token limit.

Why this answer

The `stopReason` field in Amazon Bedrock model responses indicates why the model stopped generating tokens. When set to `end_turn` or `stop_sequence`, it means the model reached a natural stopping point or encountered a user-defined stop sequence. However, if the value is `max_tokens`, it explicitly means the model stopped because it reached the maximum token limit specified in the `max_tokens` request parameter.

Option C correctly identifies this behavior.

Exam trap

The AWS AI Practitioner exam often tests the distinction between `max_tokens` (a user-set limit) and the model's natural completion (`end_turn`), tricking candidates into choosing 'natural stopping point' when the field explicitly indicates a forced truncation.

How to eliminate wrong answers

Option A is wrong because a content filter blocking the output would return a different `stopReason` (e.g., `content_filtered`) or a separate guardrail response, not `max_tokens`. Option B is wrong because an input prompt that is too long would result in a validation error or a `ValidationException` before the model even begins generation, not a `stopReason` field in a successful response. Option D is wrong because a model reaching a natural stopping point (e.g., completing a sentence) would return a `stopReason` of `end_turn` or `stop_sequence`, not `max_tokens`.

9
Multi-Selectmedium

Which TWO AWS services can be used to build a chatbot that responds to customer inquiries using a company's documentation as source? (Select two.)

Select 2 answers
A.Amazon Bedrock with RAG
B.Amazon Polly
C.Amazon Q Business
D.Amazon Transcribe
E.Amazon Lex
AnswersA, C

Bedrock with RAG can retrieve from documentation and generate answers using foundation models.

Why this answer

Amazon Bedrock with RAG (Retrieval-Augmented Generation) enables a chatbot to retrieve relevant chunks from a company's documentation and use them as context for a foundation model to generate accurate, grounded responses. This approach directly addresses the need to answer customer inquiries using proprietary or domain-specific source material.

Exam trap

AWS often tests the distinction between services that provide conversational interfaces (like Lex) versus those that enable retrieval-augmented generation from custom data sources (like Bedrock with RAG or Q Business), leading candidates to mistakenly select Lex because it is a chatbot service, even though it lacks native document retrieval capabilities.

10
MCQmedium

A developer is using the Amazon Bedrock InvokeModel API with the above request to summarize meeting notes. The response is a single word repeated many times. Which parameter is MOST likely causing this issue?

A.topP set to 0.9
B.stopSequences is empty
C.maxTokenCount set to 100
D.temperature set to 0
AnswerD

Temperature 0 makes output deterministic and prone to repetition.

Why this answer

A temperature of 0 forces the model to always select the highest-probability token at each step, which can lead to repetitive loops if the most likely token repeatedly points back to itself (e.g., the same word). This deterministic behavior eliminates randomness, causing the model to get stuck in a single-word cycle rather than generating diverse or coherent text.

Exam trap

AWS often tests the misconception that temperature only affects 'creativity' or 'randomness,' when in fact a temperature of 0 causes deterministic argmax selection, which can paradoxically produce repetitive or stuck outputs rather than simply 'less creative' text.

How to eliminate wrong answers

Option A is wrong because topP set to 0.9 (nucleus sampling) actually increases diversity by considering tokens whose cumulative probability reaches 0.9, which would reduce repetition, not cause it. Option B is wrong because an empty stopSequences list means no custom stopping conditions are applied, but this does not force repetition; the model would still generate until a natural stop (e.g., EOS token) or maxTokenCount is reached. Option C is wrong because maxTokenCount set to 100 only limits the total number of tokens generated; it does not influence token selection probability or cause a single word to repeat—it would simply stop after 100 tokens regardless of content.

11
MCQmedium

A media company is using Amazon Bedrock to generate captions for images. They have a batch processing pipeline that sends thousands of images daily to the Bedrock API using the Titan Image Generator G1 model. Recently, they started receiving ThrottlingException errors during peak hours. The team needs to process all images within 24 hours without changing the model or the application code. The current account has a default quota of 10 requests per second (RPS) for the Titan model in us-east-1. The team estimates they need 50 RPS during peak hours. They have already implemented exponential backoff in the client, but the errors persist. What is the MOST effective solution to resolve the throttling issue?

A.Request a service quota increase for the InvokeModel API for the Titan model in us-east-1
B.Use Amazon SageMaker batch transform to process images offline
C.Distribute the requests across multiple AWS Regions
D.Switch to a different foundation model that has a higher default quota
AnswerA

Increasing quota directly resolves throttling.

Why this answer

The team has already implemented exponential backoff, but the errors persist because their current quota of 10 RPS is insufficient for the required 50 RPS. Requesting a service quota increase for the InvokeModel API for the Titan Image Generator G1 model in us-east-1 directly addresses the root cause by raising the throughput limit, allowing the existing application code and model to handle the peak load without any architectural changes.

Exam trap

The trap here is that candidates may think exponential backoff or distributing across Regions solves all throttling, but the core issue is a hard service quota that must be increased, not a transient rate limit.

How to eliminate wrong answers

Option B is wrong because Amazon SageMaker batch transform is designed for offline inference on SageMaker endpoints, not for invoking Bedrock APIs; it would require changing the application code and infrastructure, which the question explicitly prohibits. Option C is wrong because distributing requests across multiple AWS Regions would require modifying the application code to route traffic to different endpoints, and it does not address the underlying quota issue in the primary region; it also introduces latency and complexity. Option D is wrong because switching to a different foundation model would require changing the application code and potentially the image generation logic, which is not allowed; moreover, other models may have different default quotas or capabilities, and the goal is to process images with the Titan model.

12
MCQeasy

A developer is building an application that generates product descriptions from images using a multimodal model. Which AWS service provides access to multimodal foundation models?

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

Bedrock provides access to foundation models, including multimodal models that can generate text from images.

Why this answer

Amazon Bedrock is a managed service that provides access to a wide range of foundation models (FMs) from leading AI providers, including multimodal models that can process both images and text to generate product descriptions. This makes it the correct choice for building an application that requires multimodal capabilities.

Exam trap

The trap here is that candidates may confuse AWS AI services that handle specific modalities (Rekognition for images, Comprehend for text) with Bedrock, which is the only service that provides access to generative multimodal foundation models capable of combining both modalities in a single inference.

How to eliminate wrong answers

Option A is wrong because Amazon Rekognition is a computer vision service for image and video analysis (e.g., object detection, facial recognition), but it does not provide access to generative multimodal foundation models. Option B is wrong because Amazon Textract is an OCR service that extracts text from documents, not a platform for accessing or running multimodal generative models. Option C is wrong because Amazon Comprehend is a natural language processing (NLP) service for text analysis (e.g., sentiment, entities), and it lacks support for multimodal input or generative model access.

13
MCQmedium

A company deployed a chatbot using Amazon Lex integrated with a Lambda function that invokes Claude on Amazon Bedrock. The Lambda function retrieves relevant documents from an Amazon Kendra index to use as context. Users report that the chatbot's responses are often irrelevant or incorrect despite the Kendra index containing accurate information. The logs show that the Lambda function is correctly passing retrieved documents to the model. What is the most likely cause and solution?

A.Switch to a larger foundation model like Claude 3 Opus
B.The model's temperature is set too high; reduce it to 0.1
C.The maximum tokens limit is too low; increase it to 4096
D.The chunking strategy for documents is too coarse or inappropriate; refine chunking and use semantic search in Kendra
AnswerD

Proper chunking ensures each chunk contains coherent information relevant to potential queries; Kendra's semantic search improves relevance.

Why this answer

The issue likely stems from the chunking and retrieval strategy. If the retrieved document chunks do not contain the exact answer or are poorly segmented, the model may not have the necessary context. Improving chunking to be more semantic and ensuring retrieval uses a relevant similarity metric (e.g., using Kendra's relevance tuning) would help.

Increasing temperature or reducing tokens would degrade quality. Switching model may not address the root cause.

14
Multi-Selectmedium

A company is building a generative AI application using Amazon Bedrock and needs to ensure that the model does not generate outputs containing personally identifiable information (PII). Which TWO actions should the company take? (Choose 2)

Select 2 answers
A.Implement a custom AWS Lambda function to scan and redact PII from inputs and outputs.
B.Use AWS Identity and Access Management (IAM) policies to restrict model access.
C.Enable Amazon CloudWatch Logs to capture and audit model outputs.
D.Configure Amazon Bedrock Guardrails to block or mask PII.
E.Place the Bedrock model endpoint within a private VPC.
AnswersA, D

Lambda can use PII detection libraries to filter sensitive data.

Why this answer

A custom AWS Lambda function can be integrated into the application workflow to programmatically scan and redact PII from both inputs and outputs before they reach or leave the Bedrock model. This provides a flexible, code-driven approach to data sanitization, allowing the use of libraries like Amazon Comprehend or regex patterns to detect and mask PII entities such as names, addresses, and social security numbers.

Exam trap

The AIF-C01 exam often tests the distinction between network-level security controls (like VPCs) and content-level data protection mechanisms, leading candidates to mistakenly choose VPC isolation as a solution for PII redaction.

15
MCQhard

A company wants to use a large language model to generate code based on natural language descriptions. They need to minimize latency and control costs by running inference on their own infrastructure. Which approach is most suitable?

A.Use Amazon Bedrock API
B.Use Amazon SageMaker to deploy a custom LLM
C.Use Amazon Comprehend
D.Use Amazon Lex
AnswerB

SageMaker can deploy models on customer-specified instances, giving control over latency and cost.

Why this answer

Amazon SageMaker allows you to deploy a custom large language model (LLM) on your own infrastructure, giving you full control over inference latency and cost. By using SageMaker endpoints with auto-scaling and instance selection, you can optimize for low-latency responses while avoiding per-token API charges from managed services.

Exam trap

AWS often tests the distinction between managed API services (like Bedrock) and self-managed deployment options (like SageMaker), where candidates mistakenly choose Bedrock for 'control' over costs and latency, not realizing that Bedrock is a pay-per-token managed service with no infrastructure control.

How to eliminate wrong answers

Option A is wrong because Amazon Bedrock is a managed API service that charges per-token and does not allow you to run inference on your own infrastructure, so you cannot control latency or costs at the infrastructure level. Option C is wrong because Amazon Comprehend is a natural language processing (NLP) service for tasks like sentiment analysis and entity extraction, not a generative AI service capable of code generation from natural language. Option D is wrong because Amazon Lex is designed for building conversational chatbots using intent-based models, not for deploying large language models for code generation.

16
Multi-Selectmedium

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

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

Guardrails proactively filter inputs and outputs.

Why this answer

Amazon Bedrock Guardrails provides configurable content filters that can block harmful or undesirable content in both input prompts and model responses. This is a direct monitoring and prevention mechanism for misuse, allowing administrators to define policies for topics, toxicity, and sensitive information.

Exam trap

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

17
MCQmedium

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

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

In-context learning via few-shot examples guides model behavior without retraining.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

18
MCQhard

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

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

This configuration meets regulatory requirements for data privacy and content safety.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

19
MCQmedium

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

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

RAG retrieves relevant product data at inference time, ensuring factual accuracy and allowing updates without retraining.

Why this answer

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

20
MCQmedium

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

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

Better retrieval ensures only pertinent information is provided, reducing the chance of hallucination.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

21
MCQmedium

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

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

Providing examples of secure code and expected test results helps ground the model's output in desired patterns.

Why this answer

Contextual grounding by providing code examples and security guidelines in the prompt (prompt engineering) helps guide the model to produce safe and correct code. Fine-tuning on secure codebases would also help but is more resource-intensive; prompt engineering is a quicker first step.

22
MCQhard

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

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

Correct. The cache is not invalidated on document updates, so identical queries return cached old responses.

Why this answer

Since the data source sync succeeded and the index contains new chunks, the retrieval should be able to access the latest data. However, the Lambda function caches responses keyed by query. With a 24-hour TTL and no invalidation, the cache returns stale responses containing the old safety information.

Clearing the cache or reducing TTL would resolve the issue. The other options are less likely: low max results might cause missing new chunks but would not consistently return old info; the embedding model is not retrained per sync; IAM permissions would affect sync, not retrieval.

23
MCQeasy

A company wants to use a pre-trained generative AI model to analyze customer feedback. They need to adjust the model for their specific domain without retraining from scratch. Which approach is MOST suitable?

A.Fine-tuning the model on domain-specific data
B.Reinforcement Learning from Human Feedback (RLHF)
C.Training a new model from scratch on the domain data
D.Using prompt engineering to provide context
AnswerA

Fine-tuning is efficient for domain adaptation using pre-trained models.

Why this answer

Fine-tuning is the most suitable approach because it takes a pre-trained generative AI model and updates its weights using a smaller, domain-specific dataset (e.g., customer feedback transcripts). This allows the model to adapt to the company's specific terminology, sentiment patterns, and context without the massive computational cost and data requirements of training from scratch. It preserves the general language understanding from pre-training while specializing the model for the target domain.

Exam trap

The AIF-C01 exam often tests the distinction between prompt engineering (a zero-shot or few-shot method that does not modify the model) and fine-tuning (which updates model weights), leading candidates to mistakenly choose prompt engineering as a simpler but insufficient solution for deep domain adaptation.

How to eliminate wrong answers

Option B (RLHF) is wrong because RLHF is a technique used to align model outputs with human preferences through reward modeling, not primarily for domain adaptation; it requires a separate reward model and human feedback loop, making it overkill and less direct for simply specializing on domain-specific data. Option C (training a new model from scratch) is wrong because it discards the benefits of pre-training, requiring enormous amounts of domain data and compute resources, which contradicts the requirement to avoid retraining from scratch. Option D (prompt engineering) is wrong because while it can provide context at inference time, it does not adjust the model's internal weights or permanently adapt it to the domain; it relies on the model's existing knowledge and may fail for nuanced or rare domain-specific terms.

24
MCQeasy

A company is building a customer service chatbot using Amazon Bedrock. Which component of a foundation model determines the creativity and randomness of the generated responses?

A.Prompt template
B.Temperature
C.Max tokens
D.Top-p
AnswerB

Temperature scales the logits before softmax, controlling randomness. Lower values make outputs more deterministic.

Why this answer

The temperature parameter controls randomness. Higher values (e.g., >1) produce more creative but less focused outputs, while lower values (e.g., near 0) produce more deterministic responses.

25
MCQhard

A healthcare startup is using Amazon Bedrock to generate clinical notes. They must prevent the model from outputting any personally identifiable information (PII) such as patient names. What is the most effective approach?

A.Fine-tune the model on de-identified data only
B.Configure a guardrail in Amazon Bedrock to deny PII topics
C.Use a prompt engineering technique to instruct the model to avoid PII
D.Post-process the output with a regex filter
AnswerB

Guardrails provide robust content filtering that can detect and block PII, making this the most effective approach.

Why this answer

Amazon Bedrock Guardrails provide a native, policy-based mechanism to deny the generation of PII topics at inference time, without requiring model retraining or external filtering. This approach directly intercepts and blocks prohibited content before it is returned, offering the most reliable and maintainable solution for compliance with healthcare privacy regulations like HIPAA.

Exam trap

AWS often tests the misconception that prompt engineering or fine-tuning alone can provide reliable content safety, when in fact guardrails (or similar policy-based controls) are required for deterministic enforcement in production environments.

How to eliminate wrong answers

Option A is wrong because fine-tuning on de-identified data only does not guarantee the model will never generate PII; the model may still hallucinate or infer PII from context, and fine-tuning is costly and time-consuming without providing a runtime enforcement layer. Option C is wrong because prompt engineering is a soft instruction that the model can ignore or fail to follow consistently, especially when faced with adversarial or ambiguous inputs, and it offers no deterministic enforcement. Option D is wrong because post-processing with a regex filter is brittle and cannot catch all forms of PII (e.g., misspellings, paraphrased names, or contextually inferred identities), and it still allows PII to be generated before filtering, which may violate compliance requirements.

26
MCQhard

A startup is fine-tuning a large language model (LLM) for code generation using Amazon SageMaker. They are using a p4d.24xlarge instance with a single GPU. The training process is extremely slow, taking over 48 hours for one epoch. The dataset is 10GB of code snippets. The company needs to iterate quickly. Which action would most significantly reduce training time without sacrificing model quality?

A.Enable distributed training using SageMaker’s data parallelism library across multiple GPUs
B.Switch to spot instances to reduce cost, not time
C.Increase the batch size to use GPU memory more efficiently
D.Use a smaller foundation model to reduce compute per step
AnswerA

Distributed training scales across GPUs/nodes, significantly speeding up training while preserving model size.

Why this answer

Distributed training across multiple GPUs and instances dramatically reduces time by parallelizing the workload. Increasing instance count or using a smaller model helps but may not be optimal. Spot instances could be unstable.

Data parallelism is a standard technique for large models.

27
MCQhard

A company is building a chatbot that must provide accurate answers based on internal documents without retraining the model. Which approach should they use?

A.Reinforcement learning from human feedback (RLHF)
B.Fine-tuning the model on internal documents
C.Model distillation to a smaller model
D.Prompt engineering with retrieval-augmented generation (RAG)
AnswerD

RAG retrieves relevant documents at inference time, providing up-to-date answers.

Why this answer

Retrieval-augmented generation (RAG) allows the chatbot to fetch relevant internal documents at inference time and incorporate them into the prompt, providing accurate, up-to-date answers without retraining the model. This approach combines prompt engineering with a retrieval step, ensuring the model's responses are grounded in the company's specific knowledge base while keeping the base model frozen.

Exam trap

The trap here is that candidates may confuse fine-tuning (which requires retraining) with RAG (which does not), or mistakenly think RLHF or distillation can inject new factual knowledge without retraining, when in fact they address alignment, efficiency, or behavior, not dynamic knowledge retrieval.

How to eliminate wrong answers

Option A is wrong because reinforcement learning from human feedback (RLHF) is a training technique used to align model behavior with human preferences, not a method for injecting new factual knowledge without retraining. Option B is wrong because fine-tuning the model on internal documents would require modifying the model's weights through additional training, which contradicts the requirement of not retraining the model. Option C is wrong because model distillation compresses a large model into a smaller one for efficiency, but it does not enable the model to answer questions based on new internal documents without retraining.

28
MCQhard

A data scientist is fine-tuning a large language model on Amazon SageMaker for a text summarization task. The training loss decreases steadily but the validation loss starts increasing after a few epochs. What should the scientist do to address this issue?

A.Reduce the batch size
B.Increase the learning rate
C.Increase the number of training epochs
D.Use early stopping based on validation loss
AnswerD

Early stopping prevents overfitting by halting training when validation loss stops improving.

Why this answer

The validation loss increasing while training loss decreases is a classic sign of overfitting. Early stopping based on validation loss halts training when the validation loss stops improving, preventing overfitting and saving computational resources. This is a standard technique in SageMaker's built-in training algorithms and custom training scripts.

Exam trap

The AIF-C01 exam often tests the distinction between overfitting and underfitting; the trap here is that candidates may mistakenly think increasing epochs (Option C) always improves performance, ignoring the validation loss divergence that signals overfitting.

How to eliminate wrong answers

Option A is wrong because reducing batch size introduces more noise into gradient estimates, which can actually worsen generalization and does not directly address overfitting. Option B is wrong because increasing the learning rate can cause the optimizer to overshoot minima, leading to divergence or unstable training, not reduced overfitting. Option C is wrong because increasing the number of training epochs would exacerbate overfitting, as the model would continue to memorize the training data beyond the point where validation loss degrades.

29
MCQhard

A developer attached this IAM policy to a role used by an application that invokes Claude v2 in us-east-1. The application receives an access denied error. What is the MOST likely cause?

A.The Allow statement does not include a condition on the region
B.The Deny statement is blocking requests because the condition does not match the resource ARN's region
C.The Deny statement uses StringNotEquals instead of StringEquals
D.The resource ARN in the Allow statement is incorrect
AnswerB

The Deny condition checks aws:RequestedRegion, which may differ from the region in the resource ARN if requests are made to a different region.

Why this answer

The Deny statement uses a `StringNotEquals` condition on `aws:RequestedRegion` set to `us-east-1`. This means the Deny applies to any request where the requested region is NOT `us-east-1`. Since the resource ARN in the Deny statement is `arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2`, the condition does not match the resource's region (the resource ARN itself is in us-east-1), but the Deny is triggered when the request is made to a different region, blocking the call.

The application is likely invoking the model from a region other than us-east-1, causing the Deny to take effect.

Exam trap

The AIF-C01 exam often tests the subtle interaction between Allow and Deny statements with condition operators, where candidates mistakenly think the Deny is blocking because of a region mismatch on the resource ARN itself, rather than understanding that the Deny's condition evaluates the request's region, not the resource's region.

How to eliminate wrong answers

Option A is wrong because the Allow statement does not need a region condition; the Allow grants access to the specific resource ARN, and the Deny is the one causing the issue. Option C is wrong because using `StringNotEquals` is correct for this pattern—it denies requests that are NOT in the specified region; `StringEquals` would deny only requests in us-east-1, which is not the intended behavior. Option D is wrong because the resource ARN in the Allow statement (`arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2`) is correct for Claude v2 in us-east-1; the error is not due to an incorrect ARN but due to the Deny statement's condition logic.

30
MCQeasy

A developer is creating a generative AI application using Amazon Bedrock and needs to ensure that responses do not include toxic or harmful content. Which feature should be enabled?

A.Amazon CloudWatch Logs for prompt logging.
B.Amazon Virtual Private Cloud (VPC) for network isolation.
C.Amazon Bedrock Guardrails.
D.AWS Identity and Access Management (IAM) policies.
AnswerC

Guardrails enforce content policies, filter toxic content, and block denied topics.

Why this answer

Amazon Bedrock Guardrails is the correct feature because it is specifically designed to enforce content policies, filter toxic or harmful content, and block undesirable topics in generative AI responses. It provides configurable thresholds for hate, insults, sexual content, violence, and other harmful categories, ensuring compliance with safety requirements without modifying the underlying model.

Exam trap

The trap here is that candidates often confuse monitoring/logging services (CloudWatch) or security controls (VPC, IAM) with content safety features, not realizing that Bedrock Guardrails is the only option that directly filters toxic or harmful content at the application layer.

How to eliminate wrong answers

Option A is wrong because Amazon CloudWatch Logs for prompt logging captures and stores logs for monitoring and debugging, but it does not actively filter or block toxic content in responses. Option B is wrong because Amazon Virtual Private Cloud (VPC) provides network isolation and security at the infrastructure layer, but it has no mechanism to inspect or control the semantic content of AI-generated responses. Option D is wrong because AWS Identity and Access Management (IAM) policies control authentication and authorization for API calls, but they cannot enforce content safety rules or filter harmful language in model outputs.

31
Multi-Selecthard

Which TWO practices help ensure responsible AI when deploying generative AI applications? (Select TWO.)

Select 2 answers
A.Deploy the model without any content filters to maximize creativity
B.Increase model size to improve accuracy at the expense of interpretability
C.Use only synthetic data for training to avoid privacy issues
D.Implement guardrails to filter harmful or inappropriate content
E.Monitor the model's outputs for bias and drift over time
AnswersD, E

Guardrails like Amazon Bedrock Guardrails help enforce content policies and prevent harmful outputs.

Why this answer

Implementing guardrails (e.g., content filtering) to prevent harmful outputs (D) and continuously monitoring outputs for bias and drift (E) are essential responsible AI practices. Deploying without filters (A) is unsafe, increasing model size (B) reduces interpretability and doesn't address responsibility, and using only synthetic data (C) can introduce bias and is impractical. The correct answers are D and E.

32
MCQmedium

Refer to the exhibit. A company sets up a knowledge base for a customer support chatbot using Amazon Bedrock. Users report that the chatbot misses relevant details from long documents. Which change to the data source configuration would most likely improve retrieval?

A.Increase the chunk size in FIXED_SIZE chunking
B.Change chunking strategy to SEMANTIC
C.Add more documents to the S3 bucket
D.Change the embedding model to a larger one
AnswerB

Semantic chunking groups related content, preserving context and improving retrieval accuracy.

Why this answer

Semantic chunking groups text based on meaning rather than fixed token counts, preserving the natural boundaries of concepts and paragraphs. This ensures that relevant details from long documents remain intact within a single chunk, improving retrieval accuracy for the chatbot.

Exam trap

AWS often tests the misconception that simply increasing chunk size or using a larger embedding model will improve retrieval, when the real bottleneck is the chunking strategy's ability to preserve semantic coherence.

How to eliminate wrong answers

Option A is wrong because increasing the chunk size in FIXED_SIZE chunking can cause chunks to contain multiple unrelated topics, diluting the semantic focus and making retrieval less precise. Option C is wrong because adding more documents to the S3 bucket does not address the core issue of poor chunking; it may even introduce more noise if the chunking strategy remains suboptimal. Option D is wrong because changing the embedding model to a larger one may improve representation quality but does not fix the fundamental problem of how documents are split; poorly chunked content will still lose relevant details regardless of the embedding model.

33
MCQeasy

A company wants to build a generative AI application that can summarize customer support tickets. They need to ensure the model stays up-to-date with the latest product documentation without retraining. Which AWS service would best support this requirement?

A.Amazon Bedrock with Retrieval Augmented Generation (RAG)
B.Amazon Comprehend
C.Amazon Rekognition
D.Amazon SageMaker Ground Truth
AnswerA

Amazon Bedrock supports RAG, which enables the model to retrieve current information from a knowledge base, keeping summaries up-to-date without retraining.

Why this answer

Amazon Bedrock with Retrieval Augmented Generation (RAG) is the correct choice because it allows the generative AI model to access and incorporate the latest product documentation from an external knowledge base without retraining. RAG works by retrieving relevant document chunks at inference time and injecting them into the model's context, ensuring responses reflect current information. This directly meets the requirement for staying up-to-date with evolving documentation while avoiding the cost and latency of full model retraining.

Exam trap

The trap here is that candidates may confuse Amazon Comprehend's text analysis capabilities (like summarization via extractive methods) with generative AI summarization, overlooking that Comprehend cannot incorporate external, dynamic knowledge sources without retraining.

How to eliminate wrong answers

Option B (Amazon Comprehend) is wrong because it is a natural language processing (NLP) service for extracting insights like sentiment, entities, and key phrases from text, but it does not provide generative AI summarization capabilities or a mechanism to dynamically incorporate updated documentation. Option C (Amazon Rekognition) is wrong because it is a computer vision service for analyzing images and videos, not for processing text-based customer support tickets or integrating with product documentation. Option D (Amazon SageMaker Ground Truth) is wrong because it is a data labeling service used to create training datasets for machine learning models, not a generative AI service that can summarize text or retrieve real-time information from external sources.

34
MCQhard

A healthcare company wants to use generative AI to automatically generate patient summary reports from electronic health records (EHRs). The solution must be HIPAA compliant and data must not leave AWS. They plan to use Amazon Bedrock with a foundation model. The EHR data is stored in Amazon S3 and contains protected health information (PHI). Which approach best meets compliance requirements?

A.Use Amazon Bedrock with a HIPAA-eligible account, enable encryption with KMS, and de-identify PHI in the prompt
B.Use a publicly available foundation model API outside AWS for better accuracy
C.Use Amazon Comprehend Medical for entity extraction and then feed results into a model on Amazon Bedrock without de-identification
D.Use Amazon SageMaker with a public model from the internet without encryption
AnswerA

Bedrock is HIPAA-eligible when used with AWS Organizations and BAA; de-identification and KMS encryption protect PHI.

Why this answer

Amazon Bedrock operates within a HIPAA-eligible environment when configured appropriately, and using AWS KMS for encryption and not storing PHI in prompts (using de-identification) can maintain compliance. Using public models or non-HIPAA services would violate requirements. SageMaker with encryption can also be HIPAA-eligible, but Bedrock with proper settings is simpler.

35
MCQmedium

A company wants to build a customer support chatbot that answers questions based on a large internal knowledge base. Which AWS service is most suitable for implementing RAG to retrieve relevant documents?

A.Amazon Lex
B.Amazon Polly
C.Amazon Connect
D.Amazon Kendra
AnswerD

Kendra provides intelligent search and retrieval from indexed documents, ideal for RAG workflows.

Why this answer

Amazon Kendra is a highly accurate enterprise search service that can retrieve relevant documents from various sources, which can then be provided to a foundation model for generation. Lex, Connect, and Polly are not designed for document retrieval.

36
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

37
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

38
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

39
Multi-Selecthard

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

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

Required for compliance and investigation.

Why this answer

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

Exam trap

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

40
MCQmedium

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

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

More compute resources reduce inference time per request.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

41
MCQeasy

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

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

Content filtering provides automated detection and blocking of inappropriate content.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

42
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

43
MCQeasy

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

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

Bedrock is a serverless service offering foundation models via API.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

44
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

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

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

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

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

49
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

50
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

51
MCQhard

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

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

Comprehend Medical provides PHI detection and de-identification.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

52
MCQhard

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

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

Better prompts and tuning inference parameters directly improve image quality.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

53
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

54
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

55
MCQeasy

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

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

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

Why this answer

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

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

56
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

57
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Ready to test yourself?

Try a timed practice session using only Fundamentals of Generative AI questions.