Community Q&A

AIF-C01 — frequently asked questions

Community-vetted answers to 20 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.