🔍

MLA-C01 — questions

Page 11 of 12 · 226 total questions.

Topic 1 · Question 211

A company needs to deploy a custom-trained classification ML model on AWS. The model must make near real-time predictions with low latency and must handle variable request volumes. Which solution will meet these requirements?

  • ACreate an Amazon SageMaker AI batch transform job to process inference requests in batches.
  • BUse Amazon API Gateway to receive prediction requests. Use an Amazon S3 bucket to host and serve the model.
  • CDeploy an Amazon SageMaker AI endpoint. Configure auto scaling for the endpoint. (correct answer)
  • DLaunch AWS Deep Learning AMIs (DLAMI) on two Amazon EC2 instances. Run the instances behind an Application Load Balancer.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Deploy an Amazon SageMaker AI endpoint. Configure auto scaling for the endpoint.

Explanation

Auto Scaling adjusts capacity automatically to match demand, improving availability and cost efficiency. Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service. AWS Config tracks resource configuration changes and evaluates compliance. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 212

A company runs a neural network model and retrains the model when the performance degrades. The company uses a training job that uses Amazon SageMaker AI distributed data parallelism (DDP). The training job takes several hours to run. The company wants to decrease the required time for the training job. Which solution will meet this requirement?

  • AIncrease the number of epochs.
  • BIncrease the number of neurons in the hidden layers.
  • CIncrease the number of layers.
  • DIncrease the number of instances. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Increase the number of instances.

Topic 1 · Question 213

An ML engineer decides to use Amazon SageMaker AI automated model tuning (AMT) for hyperparameter optimization (HPO). The ML engineer requires a tuning strategy that uses regression to slowly and sequentially select the next set of hyperparameters based on previous runs. The strategy must work across small hyperparameter ranges. Which solution will meet these requirements?

  • AGrid search
  • BRandom search
  • CBayesian optimization (correct answer)
  • DHyperband
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Bayesian optimization.

Topic 1 · Question 214

A healthcare company wants to detect irregularities in patient vital signs that could indicate early signs of a medical condition. The company has an unlabeled dataset that includes patient health records, medication history, and lifestyle changes. Which algorithm and hyperparameter should the company use to meet this requirement?

  • AUse the Amazon SageMaker AI XGBoost algorithm. Set max_depth to greater than 100 to regulate tree complexity.
  • BUse the Amazon SageMaker AI k-means clustering algorithm. Set k to determine the number of clusters.
  • CUse the Amazon SageMaker AI DeepAR algorithm. Set epochs to the number of training iterations.
  • DUse the Amazon SageMaker AI Random Cut Forest (RCF) algorithm. Set num_trees to greater than 100. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the Amazon SageMaker AI Random Cut Forest (RCF) algorithm. Set num_trees to greater than 100.

Explanation

Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service.

Topic 1 · Question 215

An ML engineer at an entertainment company is refining an ML model to predict audience preferences. As the model learns from data, the ML engineer notices that the model’s performance peaks early and then begins to gradually decline. The ML engineer must prevent the performance degradation after initial success. Which solution will meet this requirement?

  • AIncrease the number of layers.
  • BImplement early stopping. (correct answer)
  • CAdd more neurons to each layer to capture complex patterns.
  • DExamine model bias and variance to understand performance issues.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Implement early stopping.

Topic 1 · Question 216

An ML engineer is tuning an image classification model that shows poor performance on one of two available classes during prediction. Analysis reveals that the images whose class the model performed poorly on represent an extremely small fraction of the whole training dataset. The ML engineer must improve the model’s performance. Which solution will meet this requirement?

  • AOptimize for accuracy. Use image augmentation on the less common images to generate new samples.
  • BOptimize for F1 score. Use image augmentation on the less common images to generate new samples. (correct answer)
  • COptimize for accuracy. Use Synthetic Minority Oversampling Technique (SMOTE) on the less common images to generate new samples.
  • DOptimize for F1 score. Use Synthetic Minority Oversampling Technique (SMOTE) on the less common images to generate new samples.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Optimize for F1 score. Use image augmentation on the less common images to generate new samples.

Topic 1 · Question 217

An ML engineer needs to develop an AI assistant by using Retrieval Augmented Generation (RAG) in Amazon Bedrock. The company stores a collection of PDF text files in an Amazon S3 bucket. The ML engineer must create an Amazon Bedrock knowledge base to process the PDF files and to store the processed files in a vector store. Which solution will meet these requirements?

  • AUse the latest version of Amazon Titan Text Premier to perform document embedding.
  • BUse the latest version of Mistral 7B Instruct to perform instruction tuning.
  • CUse the latest version of Anthropic Claude Sonnet to perform instruction tuning.
  • DUse Cohere Embed Multilingual to perform document embedding. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Cohere Embed Multilingual to perform document embedding.

Topic 1 · Question 218

An ML engineer needs to build a processing pipeline to identify and remove personally identifiable information (PII) from petabytes of unstructured data. The ML engineer will use the processed data to train ML models in Amazon SageMaker AI. Which solution will meet these requirements?

  • AUse the Apache Spark-based serverless engine from AWS Glue interactive sessions. Use the Detect PII transform feature to identify and remove the PII data. (correct answer)
  • BUse AWS Glue Data Wrangler within Amazon SageMaker Canvas to detect and remove the PII.
  • CUse the Amazon SageMaker Clarify API to detect and mask the PII data.
  • DUse the DetectEntities API action in Amazon Comprehend to identify and remove the PII data.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the Apache Spark-based serverless engine from AWS Glue interactive sessions. Use the Detect PII transform feature to identify and remove the PII data.

Explanation

AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 · Question 219

A company develops a recommendation model and hosts the model on an Amazon SageMaker AI endpoint. The model uses the SageMaker AI endpoint to perform near real-time inference to deliver personalized product recommendations to customers based on browsing history, purchase records, and in-app user interactions. After a major marketing campaign, the company observes a sharp drop in the model’s performance. The company needs a solution to proactively monitor, detect, and validate model performance before future marketing campaigns. Which solution will meet these requirements?

  • AUse SageMaker Clarify to analyze changes in feature distribution. Configure SageMaker Model Monitor for near real-time input validation.
  • BUse Amazon CloudWatch dashboards to monitor endpoint metrics. Use SageMaker Model Monitor to track feature attribution.
  • CUse SageMaker Clarify for bias detection. Set up Amazon CloudWatch alarms to monitor model latency.
  • DUse SageMaker Model Monitor to monitor constraints. Use Amazon CloudWatch Logs Insights to analyze error patterns. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use SageMaker Model Monitor to monitor constraints. Use Amazon CloudWatch Logs Insights to analyze error patterns.

Explanation

Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service. Amazon CloudWatch collects metrics, logs and alarms to monitor and react to operational health. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 220

A company is using Amazon SageMaker AI to create a classification model to categorize the company’s sales performance for each month of the previous 20 years on a scale from 1 to 5. The dataset includes fields for month, sales region, regional aggregate sales, and the number of stores in each sales region. The company notices that during two months of every year, the aggregate sales values are unexpectedly high. The company performs one-hot encoding on all non-numerical features in the training and validation datasets. The company uses the training dataset to train the classification model. When the company evaluates the model against the validation dataset, the results are less accurate than expected. The company must improve the model’s accuracy on the validation dataset. Which solution will meet this requirement?

  • ARemove records that include outliers across all features.
  • BUse a stratified split on the month and sales region features.
  • CPerform normalization on the aggregate sales feature.
  • DPerform normalization on the aggregate sales feature for each sales region. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Perform normalization on the aggregate sales feature for each sales region.

Topic 1 · Question 221

A company is creating an ML model to identify defects in a product. The company has gathered a dataset and has stored the dataset in TIFF format in Amazon S3. The dataset contains 200 images in which the most common defects are visible. The dataset also contains 1,800 images in which there is no defect visible. An ML engineer trains the model and notices poor performance in some classes. The ML engineer identifies a class imbalance problem in the dataset. What should the ML engineer do to solves this problem?

  • AUse a few hundred images and Amazon Rekognition Custom Labels to train a new model.
  • BUndersample the 200 images in which the most common defects are visible.
  • COversample the 200 images in which the most common defects are visible. (correct answer)
  • DUse all 2,000 images and Amazon Rekognition Custom Labels to train a new model.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Oversample the 200 images in which the most common defects are visible.

Topic 1 · Question 222

An ML engineer is building an ML model in Amazon SageMaker AI. The ML engineer needs to load historical data directly from Amazon S3, Amazon Athena, and Snowflake into SageMaker AI. Which solution will meet this requirement?

  • AUse AWS Glue DataBrew to import the data into SageMaker AI.
  • BBuild a pipeline in SageMaker Pipelines to process the data. Use AWS DataSync to load the processed data into SageMaker AI.
  • CCreate a feature store in SageMaker Feature Store. Use an Apache Spark connector to Feature Store to access the data.
  • DUse SageMaker Data Wrangler to query and import the data. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use SageMaker Data Wrangler to query and import the data.

Explanation

Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service.

Topic 1 · Question 223 · Select all that apply

A company is developing an application that reads animal descriptions from user prompts and generates images based on the information from the prompts. The application reads a message from an Amazon Simple Queue Service (Amazon SQS) queue. Then the application uses Amazon Titan Image Generator on Amazon Bedrock to generate an image based on the information in the message. Finally, the application removes the message from SQS queue. Which IAM permissions should the company assign to the application’s IAM role? (Choose two.)

  • AAllow the bedrock:InvokeModel action for the Amazon Titan Image Generator resource. (correct answer)
  • BAllow the bedrock:Get* action for the Amazon Titan Image Generator resource.
  • CAllow the sqs:ReceiveMessage action and the sqs:DeleteMessage action for the SQS queue resource. (correct answer)
  • DAllow the sqs:GetQueueAttributes action and the sqs:DeleteMessage action for the SQS queue resource.
  • EAllow the sagemaker:PutRecord* action for the Amazon Titan Image Generator resource.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Allow the bedrock:InvokeModel action for the Amazon Titan Image Generator resource. Option C: Allow the sqs:ReceiveMessage action and the sqs:DeleteMessage action for the SQS queue resource.

Explanation

Amazon SQS is a fully managed message queue that decouples components and absorbs traffic spikes. Amazon Bedrock provides access to foundation models through a managed API.

Topic 1 · Question 224

An ML engineering team is spread across multiple locations. When the lead ML engineer opens an Amazon SageMaker Al notebook, the ML engineer does not see the latest merged notebook made by other team members from a Git repository. The lead ML engineer must see the latest SageMaker AI notebook updates. Which solution will meet this requirement?

  • ARun the !git pull origin master command. (correct answer)
  • BRun the !git commit command.
  • CRun the !git push origin master command.
  • DRun the !git branch command.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Run the !git pull origin master command.

Topic 1 · Question 225

A company is developing an ML model to forecast future values based on time series data. The dataset includes historical measurements collected at regular intervals and categorical features. The model needs to predict future values based on past patterns and trends. Which algorithm and hyperparameters should the company use to develop the model?

  • AUse the Amazon SageMaker AI XGBoost algorithm. Set the scale_pos_weight hyperparameter to adjust for class imbalance.
  • BUse k-means clustering with k to specify the number of clusters.
  • CUse the Amazon SageMaker AI DeepAR algorithm with matching context_length and prediction_length hyperparameters. (correct answer)
  • DUse the Amazon SageMaker AI Random Cut Forest (RCF) algorithm with contamination to set the expected proportion of anomalies.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the Amazon SageMaker AI DeepAR algorithm with matching context_length and prediction_length hyperparameters.

Explanation

Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service.

Topic 1 · Question 226 · Select all that apply

An ML engineer is designing an AI-powered traffic management system to adjust traffic lights during predicted congestion. The system must use near real-time inference to generate predictions to help prevent traffic collisions. The system must use a batch processing pipeline to perform historical analysis of the predictions to continuously refine and improve the model. The historical analysis will take several hours to evaluate how well the predictions correlate with actual outcomes. The system must be able to scale inference endpoints appropriately to meet demand. Which combination of solutions will meet these requirements? (Choose two.)

  • AUse Amazon SageMaker real-time inference endpoints. Configure the endpoints to scale automatically based on a target tracking scaling policy that uses the metric ConcurrentInvocationsPerinstance. (correct answer)
  • BConfigure reserved concurrency for AWS Lambda functions to process streaming data. Use Lambda SnapStart to connect the Lambda functions to Amazon SageMaker real-time endpoints to support near real-time traffic predictions.
  • CConfigure an Amazon SageMaker Processing job for batch analysis of historical prediction data. Use Amazon EventBridge to schedule the job to run daily. Allow several hours for in-depth analysis to refine and improve the traffic management model. (correct answer)
  • DUse an Amazon EC2 Auto Scaling group to host containers to support the batch analysis of historical prediction data. Configure scaling based on Amazon CloudWatch metrics to analyze historical traffic patterns and model performance over multiple hours.
  • EUse an AWS Lambda function to perform the historical analysis. Use Amazon EventBridge to invoke the Lambda function.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Use Amazon SageMaker real-time inference endpoints. Configure the endpoints to scale automatically based on a target tracking scaling policy that uses the metric ConcurrentInvocationsPerinstance. Option C: Configure an Amazon SageMaker Processing job for batch analysis of historical prediction data. Use Amazon EventBridge to schedule the job to run daily. Allow several hours for in-depth analysis to refine and improve t...

Explanation

AWS Batch schedules and runs batch computing jobs at any scale without managing clusters. Amazon EventBridge routes events between services with rules, enabling event-driven, decoupled architectures. Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 227

A company wants to launch a new website feature that predicts home prices based on user-supplied home attributes. The attributes include location, square footage, and number of bedrooms and bathrooms. An ML engineer has trained a regression model by using the Amazon SageMaker AI XGBoost algorithm. The model performs well with training data. However, the model significantly underperforms when it is validated against real-world data. Which solution will improve the model’s validation score with the LEAST implementation effort?

  • ACreate a larger training dataset that includes more real-world data. Retrain the model. (correct answer)
  • BIncrease the value of the num_round hyperparameter.
  • CChange the eval_metric hyperparameter from Root Mean Square Error (RMSE) to Error.
  • DIncrease the value of the lambda hyperparameter.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a larger training dataset that includes more real-world data. Retrain the model.

Topic 1 · Question 228

A company is performing A/B testing on a model that provides product recommendations. The company has deployed two versions of the model and is showing each version of the model to 50% of users randomly. Which metric should the company use to evaluate whether users act on a recommendation?

  • AThe conversion rates between the two versions of the model (correct answer)
  • BThe number of recommendations provided to each user
  • CThe model accuracy on held-out test data
  • DThe latency of model inference
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The conversion rates between the two versions of the model.

Topic 1 · Question 229

A company is using Amazon SageMaker AI to build an ML model to predict customer behavior. The company needs to explain the bias in the model to an auditor. The explanation must focus on demographics data of the customers. Which solution will meet these requirements?

  • AUse SageMaker Clarify to generate a bias report. Send the report to the auditor. (correct answer)
  • BUse AWS Glue DataBrew to create a job to detect drift in the model's data quality. Send the job output to the auditor.
  • CUse Amazon Quick Suite (previously known as Amazon QuickSight) integration with SageMaker AI to generate a bias report from Quick Suite. Send the report to the auditor.
  • DUse Amazon CloudWatch metrics from the SageMaker AI namespace to create a bias dashboard. Share the dashboard with the auditor.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use SageMaker Clarify to generate a bias report. Send the report to the auditor.

Explanation

Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service.

Topic 1 · Question 230

A digital media entertainment company needs real-time video content moderation to ensure compliance during live streaming events. Which solution will meet these requirements with the LEAST operational overhead?

  • AUse Amazon Rekognition and AWS Lambda to extract and analyze the metadata from the videos’ image frames. (correct answer)
  • BUse Amazon Rekognition and a large language model (LLM) hosted on Amazon Bedrock to extract and analyze the metadata from the videos’ image frames.
  • CUse Amazon SageMaker AI to extract and analyze the metadata from the videos’ image frames.
  • DUse Amazon Transcribe and Amazon Comprehend to extract and analyze the metadata from the videos’ image frames.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Amazon Rekognition and AWS Lambda to extract and analyze the metadata from the videos’ image frames.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. Amazon Rekognition adds image and video analysis with pre-trained models.

Showing questions 201220 of 226 · Page 11 of 12