Community Q&A
AIF-C01 — frequently asked questions
Community-vetted answers to 66 common questions about this exam, each traced back to a specific practice question.
General exam questions
20 answers
How can a custom trained model be used in Amazon Bedrock?
To use a custom trained model in Amazon Bedrock, you must first import the model by registering it from Amazon SageMaker or importing it from Amazon S3. Once imported, the model can be provisioned for inference and used within the Bedrock environment.
How can you increase image specificity when generating images with Amazon Bedrock Stable Diffusion?
You can increase image specificity by using more detailed and descriptive prompts that specify attributes like style, lighting, and composition. Additionally, using negative prompts to explicitly exclude unwanted elements helps guide the model towards a more specific output.
What is the most effective way to quickly deploy and consume Foundation Models within a VPC on AWS?
The most effective way is to use Amazon SageMaker Serverless Inference or Real-time Inference endpoints configured to run inside your VPC, which ensures that all traffic between your applications and the model endpoint remains securely within the AWS network.
What capabilities does Amazon Q Developer offer to increase developer productivity?
Amazon Q Developer increases productivity by providing AI-powered assistance for generating code, writing unit tests, debugging applications, and upgrading Java versions, while understanding the context of your entire codebase.
Which AWS service sends email notifications when ISV compliance reports are available in AWS Artifact?
Amazon EventBridge is used to send notifications by configuring a rule to listen for specific events from AWS Artifact, which then triggers an Amazon Simple Notification Service (SNS) topic to deliver the email.
How can data access in Amazon Bedrock be restricted on a per-team basis?
Data access can be restricted using AWS Identity and Access Management (IAM) by creating policies that grant or deny permissions to specific Bedrock actions and attaching these policies to IAM roles or groups corresponding to each team.
What are the best practices for developing and deploying Large Language Models (LLMs) responsibly?
Best practices include identifying and mitigating bias, ensuring transparency, implementing robust security measures against prompt injection, establishing human-in-the-loop review processes, and continuously monitoring model performance.
In which phase of the ML lifecycle are compliance and regulatory requirements typically determined?
Compliance and regulatory requirements are determined during the initial Problem Formulation and Planning phase to ensure the entire project is designed to be compliant from the ground up.
Which prompt engineering technique is best for generating concise, feature-specific product descriptions?
The best technique is to use a clear, structured prompt with specific instructions and examples (few-shot prompting) that explicitly state the desired format, length, and key features to highlight.
How can you prevent an Amazon Bedrock custom model from generating inference responses based on confidential data?
You can prevent this by implementing Amazon Bedrock Guardrails to screen prompts and responses for sensitive information, or by using a pre-processing step to redact confidential data before it reaches the model.
Which AI solution is best for extracting key points from legal documents using LLMs?
A Retrieval-Augmented Generation (RAG) architecture with Amazon Bedrock is best, as it allows the LLM to access and reason over specific information from a vector database containing the legal documents.
Which SageMaker inference option is suitable for processing large, archived datasets?
SageMaker Batch Transform is the most suitable option for running inference on large volumes of data asynchronously without requiring a persistent endpoint.
Which model evaluation strategy is used to measure the accuracy of machine translation?
The BLEU (Bilingual Evaluation Understudy) score is a common metric that evaluates machine translation by comparing the generated output to human reference translations based on n-gram overlap.
Which SageMaker inference option fits a scenario with 1GB payloads, 1-hour processing, and near real-time latency requirements?
SageMaker Asynchronous Inference is designed for requests with large payload sizes and long processing times, queuing requests and notifying via Amazon SNS when results are ready.
Which metric is used to measure the financial effect of a generative AI chatbot?
Return on Investment (ROI) is a key metric used to measure financial effect by comparing the cost savings or revenue generated by the chatbot against its total development and operational costs.
Which algorithm is used to group customers by demographics and buying patterns?
Clustering algorithms, such as K-Means, are used for this unsupervised learning task to group data points into clusters based on feature similarity without pre-existing labels.
Which type of prompting attack is designed to expose an LLM's configured behavior?
Prompt Probing or Model Probing attacks are designed to systematically test the model to understand its underlying instructions, guardrails, and limitations.
What is a primary use case for generative AI models?
Content creation and summarization, including generating text, creating images from descriptions, summarizing long documents, and translating languages, are primary use cases.
Which type of bias causes an ML model to disproportionately flag a specific ethnic group?
Societal Bias or Prejudicial Bias occurs when an ML model learns and amplifies existing stereotypes and inequalities present in the real world or the training data.
Which Amazon Bedrock pricing model offers flexibility without a long-term commitment?
The On-Demand pricing model offers flexibility by allowing you to pay only for the number of input and output tokens processed, with no minimum fees or upfront commitments.
Questions from real practice questions
Each Q&A comes from a specific question — follow the link for the full analysisHow to Extract Insights from Contact Center Call Audio?
Why is Amazon Comprehend not the best choice for raw call audio?
Comprehend extracts entities, sentiment, and key phrases from text only; it cannot process audio recordings, so transcription with Transcribe must happen first.
Does Amazon Transcribe also extract sentiment and key entities?
Transcribe focuses on speech-to-text; deeper NLP extraction such as sentiment or entities is typically done afterward with a text service like Comprehend.
Which AWS Service Quickly Deploys a Foundation Model Inside the Team's VPC?
Why is Amazon SageMaker endpoints (D) not the answer if the model runs on an endpoint?
An endpoint is only the hosting target; it has no foundation model catalog or prebuilt containers. JumpStart is the feature that supplies the FM and deploys it to that endpoint quickly.
Does SageMaker JumpStart keep foundation model traffic inside the team's VPC?
Yes. Models deployed from JumpStart run on SageMaker endpoints in your account, and you can apply VPC configuration and network isolation so traffic never traverses the public internet.
Which AWS Services Analyze Sentiment in Written Customer Reviews?
Why is Amazon Rekognition not correct for written customer reviews?
Rekognition analyzes images and video for objects, faces, and text, not free-form review sentiment. Written reviews require NLP or a foundation model.
Can Amazon Bedrock perform sentiment analysis without a custom model?
Yes. You can prompt a foundation model in Bedrock to classify review sentiment, or customize a model for your domain.
How Do You Use a Customized Model in Amazon Bedrock for Summarization?
Why doesn't granting access to the custom model in Bedrock make it usable?
Model access grants unlock third-party base foundation models for an account. A custom model you fine-tuned already exists in your account, but it still needs Provisioned Throughput before it can serve inference.
Can I invoke a Bedrock custom model on-demand instead of buying Provisioned Throughput?
No. Bedrock custom models have no on-demand option; you must purchase Provisioned Throughput for that model, which provisions dedicated model units for your workload.
How Can a Bedrock Chatbot Better Handle Complex Scientific Terms?
Why isn't few-shot prompting enough for complex scientific terms?
Few-shot examples only steer behaviour within the context window; they cannot add vocabulary or domain knowledge the FM lacks. The stem already says multiple prompt engineering attempts failed.
Would cleaning scientific terms out of the research papers help the chatbot?
No. Removing complex terms strips the precise vocabulary the chatbot must interpret, degrading answers for a research audience instead of teaching the model the domain.
Which SageMaker Feature Evaluates Model Bias and Drift in Production?
Why isn't SageMaker Clarify the answer if it detects bias?
Clarify provides bias metrics and explanations, and Model Monitor can use those analyses, but Clarify alone is not the ongoing production drift-monitoring feature for a deployed model.
Does SageMaker Model Monitor evaluate bias or only data drift?
Model Monitor supports bias drift monitoring as well as data quality and model quality monitoring; Clarify supplies the bias analysis used by those jobs.
Which service reports unused Amazon Comprehend endpoints after 15 days?
Why isn't CloudWatch the answer for unused Comprehend endpoints?
CloudWatch can monitor Comprehend endpoint metrics, but the question asks for the built-in report of endpoints unused for over 15 days, which Trusted Advisor provides.
Does Trusted Advisor refresh the Comprehend underutilized endpoint check automatically?
Yes, the check identifies Comprehend endpoints not used for real-time inference for more than 15 days and refreshes results automatically.
Amazon Bedrock S3 Access Permissions with SSE-S3
Does SSE-S3 require KMS permissions?
No, SSE-S3 uses S3-managed keys. You do not need KMS permissions, but you do need S3 permissions like s3:GetObject.
Can I make the S3 bucket public to fix this?
Never. Public access violates security best practices and compliance requirements, especially for potential sensitive data.
Understanding Context Windows in Amazon Bedrock Foundation Models
What is the difference between context window and model size?
Context window refers to the maximum number of tokens (input + output) a model can process at once. Model size refers to the number of parameters in the model, which affects complexity and performance, not necessarily input length.
Does a larger context window mean a better model?
Not necessarily. A larger context window allows for longer inputs but does not guarantee higher intelligence or accuracy. You must balance context window size with other factors like reasoning capability and cost.
SageMaker Feature Store for Cross-Team Collaboration
What is the difference between SageMaker Feature Store and Data Wrangler?
Data Wrangler is for interactive data preparation and exploration. Feature Store is for storing, versioning, and sharing prepared features across teams and projects for consistent model training and inference.
Why is Feature Store important for multi-team collaboration?
It prevents silos by allowing teams to discover, use, and contribute to a common set of features. This reduces redundancy and ensures all models use consistent definitions for the same variables.
Amazon Q Developer Capabilities for Developer Productivity
What is the main purpose of Amazon Q Developer?
Amazon Q Developer is a generative AI assistant designed to improve developer productivity by helping them write, understand, and secure code faster.
Does Amazon Q Developer support voice commands?
No, Amazon Q Developer primarily interacts through natural language text prompts within integrated development environments (IDEs), not voice commands.
Accessing Amazon Bedrock Privately Without Internet
Why can't I use an Internet Gateway to access Bedrock?
An Internet Gateway routes traffic to the public internet. Since the requirement prohibits all internet traffic, an IG violates the compliance constraint.
Does AWS PrivateLink support Amazon Bedrock?
Yes, AWS PrivateLink supports many AWS services including Bedrock, allowing private connectivity from your VPC to these services.
Least Operational Overhead for Simple Probability Calculations
Why is reinforcement learning wrong for this?
Reinforcement learning is for sequential decision-making in dynamic environments with reward signals. It is unsuitable for static, deterministic calculations like probability ratios.
Does 'operational overhead' include development time?
Yes. While ML models might take longer to develop, the primary overhead in AWS exams usually refers to runtime compute, storage, and management complexity. Simple code has negligible overhead in both.
Measuring Runtime Efficiency of AI Models
What is the difference between training time and response time?
Training time measures how long it takes to build or fine-tune a model using a dataset. Response time measures how long it takes for the trained model to generate a prediction when processing a single input request.
Why is Customer Satisfaction Score (CSAT) not a runtime efficiency metric?
CSAT is a subjective business metric reflecting user happiness. It does not technically measure the computational speed or latency of the AI model itself.
Using Unsupervised Learning for Customer Segmentation with Unlabeled Data
Can you use supervised learning on unlabeled data?
No, supervised learning strictly requires labeled training data where inputs are paired with known correct outputs. Without labels, the model has no target to learn from.
What does 'classify into tiers' mean in an unsupervised context?
It refers to clustering, where the algorithm groups similar data points together. These groups are then interpreted as 'tiers' or segments by business analysts.
Fine-Tuning Foundation Models in Amazon Bedrock
Is Provisioned Throughput needed for fine-tuning?
No. Provisioned throughput is required for inference capacity after the model is fine-tuned. It is not part of the training/fine-tuning process itself.
What format should fine-tuning data be in?
Data should be provided as labeled examples with 'prompt' (input) and 'completion' (desired output) fields, typically in JSONL or CSV formats supported by Bedrock.
AI-Based Threat Detection for Suspicious IP Addresses
What is anomaly detection in cybersecurity?
Anomaly detection uses machine learning to establish a baseline of normal network behavior. It then flags any activities, such as access from a specific IP address, that significantly deviate from this baseline as potential threats.
Why isn't NLP used for IP threat detection?
Natural Language Processing (NLP) is designed for text and speech data. Since IP addresses and network logs are numerical and structural data, NLP techniques like Named Entity Recognition are not applicable for analyzing traffic patterns.
Generative AI Use Case: Image Synthesis
Is forecasting stock trends considered generative AI?
No, forecasting is primarily predictive analytics. While generative models can analyze data, the act of predicting future numerical trends based on historical patterns is distinct from generating new content like images or text.
What makes an image generator a 'generative' model?
It uses learned patterns from training data to create entirely new, previously non-existent instances (like images) that resemble the training distribution, rather than just retrieving or classifying existing ones.
Using Prompt Engineering to Control Foundation Model Tone
Why not fine-tune the model instead of using prompts?
Fine-tuning is more resource-intensive and time-consuming. Prompt engineering is the fastest, most cost-effective way to adjust tone and style for specific use cases without modifying the model weights.
Does setting a higher temperature help with creative writing tones?
While higher temperature increases creativity, it reduces consistency. For a company-specific tone, consistency is usually prioritized, so prompt engineering offers better control than randomization.
Few-Shot Prompting for Sentiment Analysis on Amazon Bedrock
What is few-shot prompting?
Few-shot prompting is a technique where you provide the LLM with a few examples of the task (input-output pairs) in the prompt before asking it to perform the task on new data.
Why not use zero-shot prompting for sentiment analysis?
While zero-shot can work, few-shot provides clearer guidance and consistency by showing the model exactly what kind of labels and formatting are expected, reducing errors.
AWS Artifact for ISV Compliance Notifications
Does AWS Data Exchange support compliance reports?
No. AWS Data Exchange is for subscribing to third-party data products like market or weather data. Compliance reports are handled by AWS Artifact.
What is AWS Artifact Notifications?
It is a feature in AWS Artifact that sends email alerts to users when new compliance reports, agreements, or certifications are published.
Mitigating Prompt Injection Risks in LLM Applications
What is prompt injection?
Prompt injection is a technique where attackers manipulate an LLM by inserting malicious instructions into the input, causing the model to perform unintended actions or leak data.
Does increasing temperature help security?
No. Increasing temperature makes outputs more random and creative, which can actually make the model less predictable and potentially more susceptible to following erratic injected instructions.
Optimizing GenAI Costs and Customization on Amazon Bedrock
Why is RAG cheaper than fine-tuning?
RAG does not require modifying the model weights or performing expensive training runs. It simply retrieves relevant documents and adds them to the prompt, incurring only storage and retrieval costs.
Can prompt engineering replace RAG?
Prompt engineering can guide tone and format, but it cannot provide the model with new, proprietary information or update its knowledge base like RAG does.
← Back to AWS AIF-C01 Exam: Frequently Missed Questions and Core Concepts