Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Amazon Web Services > AWS Certified AI Practitioner > AIF-C01

AIF-C01 AWS Certified AI Practitioner Exam Question and Answers

Question # 4

Which AW5 service makes foundation models (FMs) available to help users build and scale generative AI applications?

A.

Amazon Q Developer

B.

Amazon Bedrock

C.

Amazon Kendra

D.

Amazon Comprehend

Full Access
Question # 5

Which technique breaks a complex task into smaller subtasks that are sent sequentially to a large language model (LLM)?

A.

One-shot prompting

B.

Prompt chaining

C.

Tree of thoughts

D.

Retrieval Augmented Generation (RAG)

Full Access
Question # 6

A company wants to develop a large language model (LLM) application by using Amazon Bedrock and customer data that is uploaded to Amazon S3. The company's security policy states that each team can access data for only the team's own customers.

Which solution will meet these requirements?

A.

Create an Amazon Bedrock custom service role for each team that has access to only the team's customer data.

B.

Create a custom service role that has Amazon S3 access. Ask teams to specify the customer name on each Amazon Bedrock request.

C.

Redact personal data in Amazon S3. Update the S3 bucket policy to allow team access to customer data.

D.

Create one Amazon Bedrock role that has full Amazon S3 access. Create IAM roles for each team that have access to only each team's customer folders.

Full Access
Question # 7

A company makes forecasts each quarter to decide how to optimize operations to meet expected demand. The company uses ML models to make these forecasts.

An AI practitioner is writing a report about the trained ML models to provide transparency and explainability to company stakeholders.

What should the AI practitioner include in the report to meet the transparency and explainability requirements?

A.

Code for model training

B.

Partial dependence plots (PDPs)

C.

Sample data for training

D.

Model convergence tables

Full Access
Question # 8

An e-commerce company wants to build a solution to determine customer sentiments based on written customer reviews of products.

Which AWS services meet these requirements? (Select TWO.)

A.

Amazon Lex

B.

Amazon Comprehend

C.

Amazon Polly

D.

Amazon Bedrock

E.

Amazon Rekognition

Full Access
Question # 9

A company wants to use a large language model (LLM) to develop a conversational agent. The company needs to prevent the LLM from being manipulated with common prompt engineering techniques to perform undesirable actions or expose sensitive information.

Which action will reduce these risks?

A.

Create a prompt template that teaches the LLM to detect attack patterns.

B.

Increase the temperature parameter on invocation requests to the LLM.

C.

Avoid using LLMs that are not listed in Amazon SageMaker.

D.

Decrease the number of input tokens on invocations of the LLM.

Full Access
Question # 10

A company manually reviews all submitted resumes in PDF format. As the company grows, the company expects the volume of resumes to exceed the company's review capacity. The company needs an automated system to convert the PDF resumes into plain text format for additional processing.

Which AWS service meets this requirement?

A.

Amazon Textract

B.

Amazon Personalize

C.

Amazon Lex

D.

Amazon Transcribe

Full Access
Question # 11

Which term describes the numerical representations of real-world objects and concepts that AI and natural language processing (NLP) models use to improve understanding of textual information?

A.

Embeddings

B.

Tokens

C.

Models

D.

Binaries

Full Access
Question # 12

A company wants to develop an Al application to help its employees check open customer claims, identify details for a specific claim, and access documents for a claim. Which solution meets these requirements?

A.

Use Agents for Amazon Bedrock with Amazon Fraud Detector to build the application.

B.

Use Agents for Amazon Bedrock with Amazon Bedrock knowledge bases to build the application.

C.

Use Amazon Personalize with Amazon Bedrock knowledge bases to build the application.

D.

Use Amazon SageMaker AI to build the application by training a new ML model.

Full Access
Question # 13

A company wants to use large language models (LLMs) with Amazon Bedrock to develop a chat interface for the company's product manuals. The manuals are stored as PDF files.

Which solution meets these requirements MOST cost-effectively?

A.

Use prompt engineering to add one PDF file as context to the user prompt when the prompt is submitted to Amazon Bedrock.

B.

Use prompt engineering to add all the PDF files as context to the user prompt when the prompt is submitted to Amazon Bedrock.

C.

Use all the PDF documents to fine-tune a model with Amazon Bedrock. Use the fine-tuned model to process user prompts.

D.

Upload PDF documents to an Amazon Bedrock knowledge base. Use the knowledge base to provide context when users submit prompts to Amazon Bedrock.

Full Access
Question # 14

A company needs to train an ML model to classify images of different types of animals. The company has a large dataset of labeled images and will not label more data. Which type of learning should the company use to train the model?

A.

Supervised learning.

B.

Unsupervised learning.

C.

Reinforcement learning.

D.

Active learning.

Full Access
Question # 15

A company has petabytes of unlabeled customer data to use for an advertisement campaign. The company wants to classify its customers into tiers to advertise and promote the company's products.

Which methodology should the company use to meet these requirements?

A.

Supervised learning

B.

Unsupervised learning

C.

Reinforcement learning

D.

Reinforcement learning from human feedback (RLHF)

Full Access
Question # 16

A financial institution is building an AI solution to make loan approval decisions by using a foundation model (FM). For security and audit purposes, the company needs the AI solution's decisions to be explainable.

Which factor relates to the explainability of the AI solution's decisions?

A.

Model complexity

B.

Training time

C.

Number of hyperparameters

D.

Deployment time

Full Access
Question # 17

A research company implemented a chatbot by using a foundation model (FM) from Amazon Bedrock. The chatbot searches for answers to questions from a large database of research papers.

After multiple prompt engineering attempts, the company notices that the FM is performing poorly because of the complex scientific terms in the research papers.

How can the company improve the performance of the chatbot?

A.

Use few-shot prompting to define how the FM can answer the questions.

B.

Use domain adaptation fine-tuning to adapt the FM to complex scientific terms.

C.

Change the FM inference parameters.

D.

Clean the research paper data to remove complex scientific terms.

Full Access
Question # 18

A company has a database of petabytes of unstructured data from internal sources. The company wants to transform this data into a structured format so that its data scientists can perform machine learning (ML) tasks.

Which service will meet these requirements?

A.

Amazon Lex

B.

Amazon Rekognition

C.

Amazon Kinesis Data Streams

D.

AWS Glue

Full Access
Question # 19

A company wants to assess the costs that are associated with using a large language model (LLM) to generate inferences. The company wants to use Amazon Bedrock to build generative AI applications.

Which factor will drive the inference costs?

A.

Number of tokens consumed

B.

Temperature value

C.

Amount of data used to train the LLM

D.

Total training time

Full Access
Question # 20

A company wants to create an application to summarize meetings by using meeting audio recordings.

Select and order the correct steps from the following list to create the application. Each step should be selected one time or not at all. (Select and order THREE.)

• Convert meeting audio recordings to meeting text files by using Amazon Polly.

• Convert meeting audio recordings to meeting text files by using Amazon Transcribe.

• Store meeting audio recordings in an Amazon S3 bucket.

• Store meeting audio recordings in an Amazon Elastic Block Store (Amazon EBS) volume.

• Summarize meeting text files by using Amazon Bedrock.

• Summarize meeting text files by using Amazon Lex.

Full Access
Question # 21

A company needs to log all requests made to its Amazon Bedrock API. The company must retain the logs securely for 5 years at the lowest possible cost.

Which combination of AWS service and storage class meets these requirements? (Select TWO.)

A.

AWS CloudTrail

B.

Amazon CloudWatch

C.

AWS Audit Manager

D.

Amazon S3 Intelligent-Tiering

E.

Amazon S3 Standard

Full Access
Question # 22

A company uses a foundation model (FM) from Amazon Bedrock for an AI search tool. The company wants to fine-tune the model to be more accurate by using the company's data.

Which strategy will successfully fine-tune the model?

A.

Provide labeled data with the prompt field and the completion field.

B.

Prepare the training dataset by creating a .txt file that contains multiple lines in .csv format.

C.

Purchase Provisioned Throughput for Amazon Bedrock.

D.

Train the model on journals and textbooks.

Full Access
Question # 23

A law firm wants to build an AI application by using large language models (LLMs). The application will read legal documents and extract key points from the documents.

Which solution meets these requirements?

A.

Build an automatic named entity recognition system.

B.

Create a recommendation engine.

C.

Develop a summarization chatbot.

D.

Develop a multi-language translation system.

Full Access
Question # 24

A company is using an Amazon Bedrock base model to summarize documents for an internal use case. The company trained a custom model to improve the summarization quality.

Which action must the company take to use the custom model through Amazon Bedrock?

A.

Purchase Provisioned Throughput for the custom model.

B.

Deploy the custom model in an Amazon SageMaker endpoint for real-time inference.

C.

Register the model with the Amazon SageMaker Model Registry.

D.

Grant access to the custom model in Amazon Bedrock.

Full Access
Question # 25

A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analysis. The company wants to classify the sentiment of text passages as positive or negative.

Which prompt engineering strategy meets these requirements?

A.

Provide examples of text passages with corresponding positive or negative labels in the prompt followed by the new text passage to be classified.

B.

Provide a detailed explanation of sentiment analysis and how LLMs work in the prompt.

C.

Provide the new text passage to be classified without any additional context or examples.

D.

Provide the new text passage with a few examples of unrelated tasks, such as text summarization or question answering.

Full Access
Question # 26

A company is using a large language model (LLM) on Amazon Bedrock to build a chatbot. The chatbot processes customer support requests. To resolve a request, the customer and the chatbot must interact a few times.

Which solution gives the LLM the ability to use content from previous customer messages?

A.

Turn on model invocation logging to collect messages.

B.

Add messages to the model prompt.

C.

Use Amazon Personalize to save conversation history.

D.

Use Provisioned Throughput for the LLM.

Full Access
Question # 27

A loan company is building a generative AI-based solution to offer new applicants discounts based on specific business criteria. The company wants to build and use an AI model responsibly to minimize bias that could negatively affect some customers.

Which actions should the company take to meet these requirements? (Select TWO.)

A.

Detect imbalances or disparities in the data.

B.

Ensure that the model runs frequently.

C.

Evaluate the model's behavior so that the company can provide transparency to stakeholders.

D.

Use the Recall-Oriented Understudy for Gisting Evaluation (ROUGE) technique to ensure that the model is 100% accurate.

E.

Ensure that the model's inference time is within the accepted limits.

Full Access
Question # 28

A company wants to build an interactive application for children that generates new stories based on classic stories. The company wants to use Amazon Bedrock and needs to ensure that the results and topics are appropriate for children.

Which AWS service or feature will meet these requirements?

A.

Amazon Rekognition

B.

Amazon Bedrock playgrounds

C.

Guardrails for Amazon Bedrock

D.

Agents for Amazon Bedrock

Full Access
Question # 29

An AI practitioner has a database of animal photos. The AI practitioner wants to automatically identify and categorize the animals in the photos without manual human effort.

Which strategy meets these requirements?

A.

Object detection

B.

Anomaly detection

C.

Named entity recognition

D.

Inpainting

Full Access
Question # 30

A company needs to choose a model from Amazon Bedrock to use internally. The company must identify a model that generates responses in a style that the company's employees prefer.

What should the company do to meet these requirements?

A.

Evaluate the models by using built-in prompt datasets.

B.

Evaluate the models by using a human workforce and custom prompt datasets.

C.

Use public model leaderboards to identify the model.

D.

Use the model InvocationLatency runtime metrics in Amazon CloudWatch when trying models.

Full Access
Question # 31

Which option is a use case for generative AI models?

A.

Improving network security by using intrusion detection systems

B.

Creating photorealistic images from text descriptions for digital marketing

C.

Enhancing database performance by using optimized indexing

D.

Analyzing financial data to forecast stock market trends

Full Access
Question # 32

Which option is a characteristic of AI governance frameworks for building trust and deploying human-centered AI technologies?

A.

Expanding initiatives across business units to create long-term business value

B.

Ensuring alignment with business standards, revenue goals, and stakeholder expectations

C.

Overcoming challenges to drive business transformation and growth

D.

Developing policies and guidelines for data, transparency, responsible AI, and compliance\

Full Access
Question # 33

A company deployed a model to production. After 4 months, the model inference quality degraded. The company wants to receive a notification if the model inference quality degrades. The company also wants to ensure that the problem does not happen again.

Which solution will meet these requirements?

A.

Retrain the model. Monitor model drift by using Amazon SageMaker Clarify.

B.

Retrain the model. Monitor model drift by using Amazon SageMaker Model Monitor.

C.

Build a new model. Monitor model drift by using Amazon SageMaker Feature Store.

D.

Build a new model. Monitor model drift by using Amazon SageMaker JumpStart.

Full Access
Question # 34

A company wants to deploy a conversational chatbot to answer customer questions. The chatbot is based on a fine-tuned Amazon SageMaker JumpStart model. The application must comply with multiple regulatory frameworks.

Which capabilities can the company show compliance for? (Select TWO.)

A.

Auto scaling inference endpoints

B.

Threat detection

C.

Data protection

D.

Cost optimization

E.

Loosely coupled microservices

Full Access
Question # 35

A company wants to develop ML applications to improve business operations and efficiency.

Select the correct ML paradigm from the following list for each use case. Each ML paradigm should be selected one or more times. (Select FOUR.)

• Supervised learning

• Unsupervised learning

Full Access
Question # 36

A company needs to build its own large language model (LLM) based on only the company's private data. The company is concerned about the environmental effect of the training process.

Which Amazon EC2 instance type has the LEAST environmental effect when training LLMs?

A.

Amazon EC2 C series

B.

Amazon EC2 G series

C.

Amazon EC2 P series

D.

Amazon EC2 Trn series

Full Access
Question # 37

A company wants to fine-tune an ML model that is hosted on Amazon Bedrock. The company wants to use its own sensitive data that is stored in private databases in a VPC. The data needs to stay within the company's private network.

Which solution will meet these requirements?

A.

Restrict access to Amazon Bedrock by using an AWS Identity and Access Management (IAM) service role.

B.

Restrict access to Amazon Bedrock by using an AWS Identity and Access Management (IAM) resource policy.

C.

Use AWS PrivateLink to connect the VPC and Amazon Bedrock.

D.

Use AWS Key Management Service (AWS KMS) keys to encrypt the data.

Full Access
Question # 38

Why does overfilting occur in ML models?

A.

The training dataset does not reptesent all possible input values.

B.

The model contains a regularization method.

C.

The model training stops early because of an early stopping criterion.

D.

The training dataset contains too many features.

Full Access
Question # 39

An AI company periodically evaluates its systems and processes with the help of independent software vendors (ISVs). The company needs to receive email message notifications when an ISV's compliance reports become available.

Which AWS service can the company use to meet this requirement?

A.

AWS Audit Manager

B.

AWS Artifact

C.

AWS Trusted Advisor

D.

AWS Data Exchange

Full Access
Question # 40

A company has built a chatbot that can respond to natural language questions with images. The company wants to ensure that the chatbot does not return inappropriate or unwanted images.

Which solution will meet these requirements?

A.

Implement moderation APIs.

B.

Retrain the model with a general public dataset.

C.

Perform model validation.

D.

Automate user feedback integration.

Full Access
Question # 41

A company wants to build and deploy ML models on AWS without writing any code.

Which AWS service or feature meets these requirements?

A.

Amazon SageMaker Canvas

B.

Amazon Rekognition

C.

AWS DeepRacer

D.

Amazon Comprehend

Full Access
Question # 42

A company wants to use language models to create an application for inference on edge devices. The inference must have the lowest latency possible.

Which solution will meet these requirements?

A.

Deploy optimized small language models (SLMs) on edge devices.

B.

Deploy optimized large language models (LLMs) on edge devices.

C.

Incorporate a centralized small language model (SLM) API for asynchronous communication with edge devices.

D.

Incorporate a centralized large language model (LLM) API for asynchronous communication with edge devices.

Full Access
Question # 43

A company has terabytes of data in a database that the company can use for business analysis. The company wants to build an AI-based application that can build a SQL query from input text that employees provide. The employees have minimal experience with technology.

Which solution meets these requirements?

A.

Generative pre-trained transformers (GPT)

B.

Residual neural network

C.

Support vector machine

D.

WaveNet

Full Access
Question # 44

A medical company deployed a disease detection model on Amazon Bedrock. To comply with privacy policies, the company wants to prevent the model from including personal patient information in its responses. The company also wants to receive notification when policy violations occur.

Which solution meets these requirements?

A.

Use Amazon Macie to scan the model's output for sensitive data and set up alerts for potential violations.

B.

Configure AWS CloudTrail to monitor the model's responses and create alerts for any detected personal information.

C.

Use Guardrails for Amazon Bedrock to filter content. Set up Amazon CloudWatch alarms for notification of policy violations.

D.

Implement Amazon SageMaker Model Monitor to detect data drift and receive alerts when model quality degrades.

Full Access
Question # 45

A company is using Amazon SageMaker to develop AI models.

Select the correct SageMaker feature or resource from the following list for each step in the AI model lifecycle workflow. Each

SageMaker feature or resource should be selected one time or not at all. (Select TWO.)

    SageMaker Clarify

    SageMaker Model Registry

    SageMaker Serverless Inference

Full Access