A company deploys a custom ML model on Amazon SageMaker AI. The company uses the model to build a generative AI application for a healthcare recommendation system. The company tests the application and finds a potential bias issue. The application consistently recommends different treatment approaches for patients who have identical medical conditions based on patient demographic information. The company needs a solution to ensure that the application does not generate biased recommendations. Which solution will meet this requirement?
Correct Answer: A
Comprehensive and Detailed Explanation (AWS AI documents): AWS Responsible AI best practices emphasize that bias should be detected, measured, mitigated, and monitored throughout the ML lifecycle, especially for sensitive domains such as healthcare. When biased outcomes are observed, AWS guidance recommends addressing bias at the data and model level, not only at the output level. Using Amazon SageMaker Clarify aligns directly with AWS Responsible AI principles because it is designed to: * Detect and quantify bias in datasets and model predictions across sensitive attributes such as demographic groups * Provide pre-training and post-training bias metrics, allowing practitioners to identify where bias originates * Support data-centric mitigation, including improving dataset balance and representativeness After identifying bias with SageMaker Clarify, collecting additional balanced training data and retraining the model helps ensure that: * The model learns from a more representative dataset * Disparate treatment recommendations based on demographics are reduced * Fairness is improved while maintaining clinical accuracy Why the other options are not sufficient or aligned with AWS best practices: * B. Prompt engineering can influence outputs but does not address underlying data or model bias and is not sufficient for regulated, high-risk domains like healthcare. * C. Content filtering removes outputs after generation but does not prevent biased decision-making by the model itself. * D. Separate FM endpoints by demographic group increases the risk of reinforcing bias and violates fairness principles rather than mitigating them. AWS AI Study Guide References: * AWS Responsible AI principles: Fairness and Governance * Amazon SageMaker Clarify: bias detection and mitigation * AWS best practices for ML in high-risk domains such as healthcare
AIF-C01 Exam Question 77
A company wants to develop an educational game where users answer questions such as the following: "A jar contains six red, four green, and three yellow marbles. What is the probability of choosing a green marble from the jar?" Which solution meets these requirements with the LEAST operational overhead?
Correct Answer: C
The problem involves a simple probability calculation that can be handled efficiently by straightforward mathematical rules and computations. Using machine learning techniques would introduce unnecessary complexity and operational overhead. Option C (Correct): "Use code that will calculate probability by using simple rules and computations": This is the correct answer because it directly solves the problem with minimal overhead, using basic probability rules. Option A: "Use supervised learning to create a regression model" is incorrect as it overcomplicates the solution for a simple probability problem. Option B: "Use reinforcement learning to train a model" is incorrect because reinforcement learning is not needed for a simple probability calculation. Option D: "Use unsupervised learning to create a model" is incorrect as unsupervised learning is not applicable to this task. AWS AI Practitioner References: Choosing the Right Solution for AI Tasks: AWS recommends using the simplest and most efficient approach to solve a given problem, avoiding unnecessary machine learning techniques for straightforward tasks.
AIF-C01 Exam Question 78
Which metric measures the runtime efficiency of operating AI models?
Correct Answer: C
The average response time is the correct metric for measuring the runtime efficiency of operating AI models. * Average Response Time: * Refers to the time taken by the model to generate an output after receiving an input. It is a key metric for evaluating the performance and efficiency of AI models in production. * A lower average response time indicates a more efficient model that can handle queries quickly. * Why Option C is Correct: * Measures Runtime Efficiency: Directly indicates how fast the model processes inputs and delivers outputs, which is critical for real-time applications. * Performance Indicator: Helps identify potential bottlenecks and optimize model performance. * Why Other Options are Incorrect: * A. Customer satisfaction score (CSAT): Measures customer satisfaction, not model runtime efficiency. * B. Training time for each epoch: Measures training efficiency, not runtime efficiency during model operation. * D. Number of training instances: Refers to data used during training, not operational efficiency.
AIF-C01 Exam Question 79
A financial company has offices in different countries worldwide. The company requires that all API calls between generative AI applications and foundation models (FM) must not travel across the public internet. Which AWS service should the company use?
Correct Answer: A
AWS PrivateLink provides private connectivity between VPCs, AWS services, and on-premises networks, ensuring traffic does not traverse the public internet. A is correct: "AWS PrivateLink provides private connectivity to services across VPCs, keeping API traffic off the public internet." (Reference: AWS PrivateLink Overview) B (Amazon Q) is a generative AI assistant, not a network security/control tool. C (CloudFront) is a CDN, not for private API calls. D (CloudTrail) is for logging and monitoring, not secure connectivity.
AIF-C01 Exam Question 80
A company is building a mobile app for users who have a visual impairment. The app must be able to hear what users say and provide voice responses. Which solution will meet these requirements?
Correct Answer: A
The mobile app for users with visual impairment needs to hear user speech and provide voice responses, requiring speech-to-text (speech recognition) and text-to-speech capabilities. Deep learning neural networks are widely used for speech recognition tasks, as they can effectively process and transcribe spoken language. AWS services like Amazon Transcribe, which uses deep learning for speech recognition, can fulfill this requirement by converting user speech to text, and Amazon Polly can generate voice responses. Exact Extract from AWS AI Documents: From the AWS Documentation on Amazon Transcribe: "Amazon Transcribe uses deep learning neural networks to perform automatic speech recognition (ASR), converting spoken language into text with high accuracy. This is ideal for applications requiring voice input, such as accessibility features for visually impaired users." (Source: Amazon Transcribe Developer Guide, Introduction to Amazon Transcribe) Detailed Explanation: Option A: Use a deep learning neural network to perform speech recognition.This is the correct answer. Deep learning neural networks are the foundation of modern speech recognition systems, as used in AWS services like Amazon Transcribe. They enable the app to hear and transcribe user speech, and a service like Amazon Polly can handle voice responses, meeting the requirements. Option B: Build ML models to search for patterns in numeric data.This option is irrelevant, as the task involves processing speech (audio data) and generating voice responses, not analyzing numeric data patterns. Option C: Use generative AI summarization to generate human-like text.Generative AI summarization focuses on summarizing text, not processing speech orgenerating voice responses. This option does not address the core requirement of speech recognition. Option D: Build custom models for image classification and recognition.Image classification and recognition are unrelated to processing speech or generating voice responses, making this option incorrect for an app focused on audio interaction. References: Amazon Transcribe Developer Guide: Introduction to Amazon Transcribe (https://docs.aws.amazon.com /transcribe/latest/dg/what-is.html) Amazon Polly Developer Guide: Text-to-Speech Overview (https://docs.aws.amazon.com/polly/latest/dg /what-is.html) AWS AI Practitioner Learning Path: Module on Speech Recognition and Synthesis