πŸ”

MLS-C01 β€” questions

Page 17 of 19 Β· 369 total questions.

Topic 1 Β· Question 321

A machine learning (ML) engineer uses Bayesian optimization for a hyperpara meter tuning job in Amazon SageMaker. The ML engineer uses precision as the objective metric. The ML engineer wants to use recall as the objective metric. The ML engineer also wants to expand the hyperparameter range for a new hyperparameter tuning job. The new hyperparameter range will include the range of the previously performed tuning job. Which approach will run the new hyperparameter tuning job in the LEAST amount of time?

  • AUse a warm start hyperparameter tuning job. (correct answer)
  • BUse a checkpointing hyperparameter tuning job.
  • CUse the same random seed for the hyperparameter tuning job.
  • DUse multiple jobs in parallel for the hyperparameter tuning job.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use a warm start hyperparameter tuning job.

Topic 1 Β· Question 322

A news company is developing an article search tool for its editors. The search tool should look for the articles that are most relevant and representative for particular words that are queried among a corpus of historical news documents. The editors test the first version of the tool and report that the tool seems to look for word matches in general. The editors have to spend additional time to filter the results to look for the articles where the queried words are most important. A group of data scientists must redesign the tool so that it isolates the most frequently used words in a document. The tool also must capture the relevance and importance of words for each document in the corpus. Which solution meets these requirements?

  • AExtract the topics from each article by using Latent Dirichlet Allocation (LDA) topic modeling. Create a topic table by assigning the sum of the topic counts as a score for each word in the articles. Configure the tool to retrieve the articles where this topic count score is higher for the queried words.
  • BBuild a term frequency for each word in the articles that is weighted with the article's length. Build an inverse document frequency for each word that is weighted with all articles in the corpus. Define a final highlight score as the product of both of these frequencies. Configure the tool to retrieve the articles where this highlight score is higher for the queried words. (correct answer)
  • CDownload a pretrained word-embedding lookup table. Create a titles-embedding table by averaging the title's word embedding for each article in the corpus. Define a highlight score for each word as inversely proportional to the distance between its embedding and the title embedding. Configure the tool to retrieve the articles where this highlight score is higher for the queried words.
  • DBuild a term frequency score table for each word in each article of the corpus. Assign a score of zero to all stop words. For any other words, assign a score as the word’s frequency in the article. Configure the tool to retrieve the articles where this frequency score is higher for the queried words.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Build a term frequency for each word in the articles that is weighted with the article's length. Build an inverse document frequency for each word that is weighted with all articles in the corpus. Define a final highl...

Explanation

Amazon RDS is a managed relational database that handles patching, backups and failover. AWS Config tracks resource configuration changes and evaluates compliance.

Topic 1 Β· Question 323

A growing company has a business-critical key performance indicator (KPI) for the uptime of a machine learning (ML) recommendation system. The company is using Amazon SageMaker hosting services to develop a recommendation model in a single Availability Zone within an AWS Region. A machine learning (ML) specialist must develop a solution to achieve high availability. The solution must have a recovery time objective (RTO) of 5 minutes. Which solution will meet these requirements with the LEAST effort?

  • ADeploy multiple instances for each endpoint in a VPC that spans at least two Regions.
  • BUse the SageMaker auto scaling feature for the hosted recommendation models.
  • CDeploy multiple instances for each production endpoint in a VPC that spans least two subnets that are in a second Availability Zone. (correct answer)
  • DFrequently generate backups of the production recommendation model. Deploy the backups in a second Region.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Deploy multiple instances for each production endpoint in a VPC that spans least two subnets that are in a second Availability Zone.

Topic 1 Β· Question 324

A global company receives and processes hundreds of documents daily. The documents are in printed .pdf format or .jpg format. A machine learning (ML) specialist wants to build an automated document processing workflow to extract text from specific fields from the documents and to classify the documents. The ML specialist wants a solution that requires low maintenance. Which solution will meet these requirements with the LEAST operational effort?

  • AUse a PaddleOCR model in Amazon SageMaker to detect and extract the required text and fields. Use a SageMaker text classification model to classify the document.
  • BUse a PaddleOCR model in Amazon SageMaker to detect and extract the required text and fields. Use Amazon Comprehend to classify the document.
  • CUse Amazon Textract to detect and extract the required text and fields. Use Amazon Rekognition to classify the document.
  • DUse Amazon Textract to detect and extract the required text and fields. Use Amazon Comprehend to classify the document. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Amazon Textract to detect and extract the required text and fields. Use Amazon Comprehend to classify the document.

Explanation

Amazon Comprehend extracts insights and entities from text using NLP. Amazon Textract extracts text and data from scanned documents.

Topic 1 Β· Question 325 Β· Select all that apply

A company wants to detect credit card fraud. The company has observed that an average of 2% of credit card transactions are fraudulent. A data scientist trains a classifier on a year's worth of credit card transaction data. The classifier needs to identify the fraudulent transactions. The company wants to accurately capture as many fraudulent transactions as possible. Which metrics should the data scientist use to optimize the classifier? (Choose two.)

  • ASpecificity
  • BFalse positive rate
  • CAccuracy
  • DF1 score (correct answer)
  • ETrue positive rate (correct answer)
Reveal answer & explanation
Correct answer: D, E

The correct answer is D, E. Option D: F1 score Option E: True positive rate.

Topic 1 Β· Question 326

A data scientist is designing a repository that will contain many images of vehicles. The repository must scale automatically in size to store new images every day. The repository must support versioning of the images. The data scientist must implement a solution that maintains multiple immediately accessible copies of the data in different AWS Regions. Which solution will meet these requirements?

  • AAmazon S3 with S3 Cross-Region Replication (CRR) (correct answer)
  • BAmazon Elastic Block Store (Amazon EBS) with snapshots that are shared in a secondary Region
  • CAmazon Elastic File System (Amazon EFS) Standard storage that is configured with Regional availability
  • DAWS Storage Gateway Volume Gateway
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Amazon S3 with S3 Cross-Region Replication (CRR)

Explanation

S3 Cross-Region Replication asynchronously copies objects to another Region for compliance or latency. Amazon S3 provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 327

An ecommerce company wants to update a production real-time machine learning (ML) recommendation engine API that uses Amazon SageMaker. The company wants to release a new model but does not want to make changes to applications that rely on the API. The company also wants to evaluate the performance of the new model in production traffic before the company fully rolls out the new model to all users. Which solution will meet these requirements with the LEAST operational overhead?

  • ACreate a new SageMaker endpoint for the new model. Configure an Application Load Balancer (ALB) to distribute traffic between the old model and the new model.
  • BModify the existing endpoint to use SageMaker production variants to distribute traffic between the old model and the new model. (correct answer)
  • CModify the existing endpoint to use SageMaker batch transform to distribute traffic between the old model and the new model.
  • DCreate a new SageMaker endpoint for the new model. Configure a Network Load Balancer (NLB) to distribute traffic between the old model and the new model.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Modify the existing endpoint to use SageMaker production variants to distribute traffic between the old model and the new model.

Explanation

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

Topic 1 Β· Question 328

A machine learning (ML) specialist at a manufacturing company uses Amazon SageMaker DeepAR to forecast input materials and energy requirements for the company. Most of the data in the training dataset is missing values for the target variable. The company stores the training dataset as JSON files. The ML specialist develop a solution by using Amazon SageMaker DeepAR to account for the missing values in the training dataset. Which approach will meet these requirements with the LEAST development effort?

  • AImpute the missing values by using the linear regression method. Use the entire dataset and the imputed values to train the DeepAR model.
  • BReplace the missing values with not a number (NaN). Use the entire dataset and the encoded missing values to train the DeepAR model. (correct answer)
  • CImpute the missing values by using a forward fill. Use the entire dataset and the imputed values to train the DeepAR model.
  • DImpute the missing values by using the mean value. Use the entire dataset and the imputed values to train the DeepAR model.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Replace the missing values with not a number (NaN). Use the entire dataset and the encoded missing values to train the DeepAR model. This option needs the least custom development effort.

Topic 1 Β· Question 329

A law firm handles thousands of contracts every day. Every contract must be signed. Currently, a lawyer manually checks all contracts for signatures. The law firm is developing a machine learning (ML) solution to automate signature detection for each contract. The ML solution must also provide a confidence score for each contract page. Which Amazon Textract API action can the law firm use to generate a confidence score for each page of each contract?

  • AUse the AnalyzeDocument API action. Set the FeatureTypes parameter to SIGNATURES. Return the confidence scores for each page. (correct answer)
  • BUse the Prediction API call on the documents. Return the signatures and confidence scores for each page.
  • CUse the StartDocumentAnalysis API action to detect the signatures. Return the confidence scores for each page.
  • DUse the GetDocumentAnalysis API action to detect the signatures. Return the confidence scores for each page.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the AnalyzeDocument API action. Set the FeatureTypes parameter to SIGNATURES. Return the confidence scores for each page.

Topic 1 Β· Question 330 Β· Select all that apply

A company that operates oil platforms uses drones to photograph locations on oil platforms that are difficult for humans to access to search for corrosion. Experienced engineers review the photos to determine the severity of corrosion. There can be several corroded areas in a single photo. The engineers determine whether the identified corrosion needs to be fixed immediately, scheduled for future maintenance, or requires no action. The corrosion appears in an average of 0.1% of all photos. A data science team needs to create a solution that automates the process of reviewing the photos and classifying the need for maintenance. Which combination of steps will meet these requirements? (Choose three.)

  • AUse an object detection algorithm to train a model to identify corrosion areas of a photo. (correct answer)
  • BUse Amazon Rekognition with label detection on the photos.
  • CUse a k-means clustering algorithm to train a model to classify the severity of corrosion in a photo.
  • DUse an XGBoost algorithm to train a model to classify the severity of corrosion in a photo. (correct answer)
  • EPerform image augmentation on photos that contain corrosion. (correct answer)
  • FPerform image augmentation on photos that do not contain corrosion.
Reveal answer & explanation
Correct answer: A, D, E

The correct answer is A, D, E. Option A: Use an object detection algorithm to train a model to identify corrosion areas of a photo. Option D: Use an XGBoost algorithm to train a model to classify the severity of corrosion in a photo. Option E: Perform image augmentation on photos that contain corrosion.

Topic 1 Β· Question 331

A company maintains a 2 TB dataset that contains information about customer behaviors. The company stores the dataset in Amazon S3. The company stores a trained model container in Amazon Elastic Container Registry (Amazon ECR). A machine learning (ML) specialist needs to score a batch model for the dataset to predict customer behavior. The ML specialist must select a scalable approach to score the model. Which solution will meet these requirements MOST cost-effectively?

  • AScore the model by using AWS Batch managed Amazon EC2 Reserved Instances. Create an Amazon EC2 instance store volume and mount it to the Reserved Instances.
  • BScore the model by using AWS Batch managed Amazon EC2 Spot Instances. Create an Amazon FSx for Lustre volume and mount it to the Spot Instances. (correct answer)
  • CScore the model by using an Amazon SageMaker notebook on Amazon EC2 Reserved Instances. Create an Amazon EBS volume and mount it to the Reserved Instances.
  • DScore the model by using Amazon SageMaker notebook on Amazon EC2 Spot Instances. Create an Amazon Elastic File System (Amazon EFS) file system and mount it to the Spot Instances.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Score the model by using AWS Batch managed Amazon EC2 Spot Instances. Create an Amazon FSx for Lustre volume and mount it to the Spot Instances.

Explanation

EC2 Spot Instances use spare capacity at a large discount, ideal for fault-tolerant or flexible workloads. Spot Instances use spare capacity at a large discount, ideal for fault-tolerant or interruptible workloads. Amazon EC2 provides resizable virtual servers when you need full control of the operating system. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 332

A data scientist is implementing a deep learning neural network model for an object detection task on images. The data scientist wants to experiment with a large number of parallel hyperparameter tuning jobs to find hyperparameters that optimize compute time. The data scientist must ensure that jobs that underperform are stopped. The data scientist must allocate computational resources to well-performing hyperparameter configurations. The data scientist is using the hyperparameter tuning job to tune the stochastic gradient descent (SGD) learning rate, momentum, epoch, and mini-batch size. Which technique will meet these requirements with LEAST computational time?

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

The correct answer is D. Option D: Hyperband.

Topic 1 Β· Question 333

An agriculture company wants to improve crop yield forecasting for the upcoming season by using crop yields from the last three seasons. The company wants to compare the performance of its new scikit-learn model to the benchmark. A data scientist needs to package the code into a container that computes both the new model forecast and the benchmark. The data scientist wants AWS to be responsible for the operational maintenance of the container. Which solution will meet these requirements?

  • APackage the code as the training script for an Amazon SageMaker scikit-learn container.
  • BPackage the code into a custom-built container. Push the container to Amazon Elastic Container Registry (Amazon ECR).
  • CPackage the code into a custom-built container. Push the container to AWS Fargate.
  • DPackage the code by extending an Amazon SageMaker scikit-learn container. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Package the code by extending an Amazon SageMaker scikit-learn container.

Explanation

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

Topic 1 Β· Question 334

A cybersecurity company is collecting on-premises server logs, mobile app logs, and IoT sensor data. The company backs up the ingested data in an Amazon S3 bucket and sends the ingested data to Amazon OpenSearch Service for further analysis. Currently, the company has a custom ingestion pipeline that is running on Amazon EC2 instances. The company needs to implement a new serverless ingestion pipeline that can automatically scale to handle sudden changes in the data flow. Which solution will meet these requirements MOST cost-effectively?

  • ACreate two Amazon Data Firehose delivery streams to send data to the S3 bucket and OpenSearch Service. Configure the data sources to send data to the delivery streams.
  • BCreate one Amazon Kinesis data stream. Create two Amazon Data Firehose delivery streams to send data to the S3 bucket and OpenSearch Service. Connect the delivery streams to the data stream. Configure the data sources to send data to the data stream.
  • CCreate one Amazon Data Firehose delivery stream to send data to OpenSearch Service. Configure the delivery stream to back up the raw data to the S3 bucket. Configure the data sources to send data to the delivery stream. (correct answer)
  • DCreate one Amazon Kinesis data stream. Create one Amazon Data Firehose delivery stream to send data to OpenSearch Service. Configure the delivery stream to back up the data to the S3 bucket. Connect the delivery stream to the data stream. Configure the data sources to send data to the data stream.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create one Amazon Data Firehose delivery stream to send data to OpenSearch Service. Configure the delivery stream to back up the raw data to the S3 bucket. Configure the data sources to send data to the delivery stream.

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. Amazon OpenSearch Service provides managed search and log analytics. AWS Config tracks resource configuration changes and evaluates compliance. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 335

A bank has collected customer data for 10 years in CSV format. The bank stores the data in an on-premises server. A data science team wants to use Amazon SageMaker to build and train a machine learning (ML) model to predict churn probability. The team will use the historical data. The data scientists want to perform data transformations quickly and to generate data insights before the team builds a model for production. Which solution will meet these requirements with the LEAST development effort?

  • AUpload the data into the SageMaker Data Wrangler console directly. Perform data transformations and generate insights within Data Wrangler.
  • BUpload the data into an Amazon S3 bucket. Allow SageMaker to access the data that is in the bucket. Import the data from the S3 bucket into SageMaker Data Wrangler. Perform data transformations and generate insights within Data Wrangler. (correct answer)
  • CUpload the data into the SageMaker Data Wrangler console directly. Allow SageMaker and Amazon QuickSight to access the data that is in an Amazon S3 bucket. Perform data transformations in Data Wrangler and save the transformed data into a second S3 bucket. Use QuickSight to generate data insights.
  • DUpload the data into an Amazon S3 bucket. Allow SageMaker to access the data that is in the bucket. Import the data from the bucket into SageMaker Data Wrangler. Perform data transformations in Data Wrangler. Save the data into a second S3 bucket. Use a SageMaker Studio notebook to generate data insights.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Upload the data into an Amazon S3 bucket. Allow SageMaker to access the data that is in the bucket. Import the data from the S3 bucket into SageMaker Data Wrangler. Perform data transformations and generate insights w...

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service. This option needs the least custom development effort.

Topic 1 Β· Question 336

A media company wants to deploy a machine learning (ML) model that uses Amazon SageMaker to recommend new articles to the company’s readers. The company's readers are primarily located in a single city. The company notices that the heaviest reader traffic predictably occurs early in the morning, after lunch, and again after work hours. There is very little traffic at other times of day. The media company needs to minimize the time required to deliver recommendations to its readers. The expected amount of data that the API call will return for inference is less than 4 MB. Which solution will meet these requirements in the MOST cost-effective way?

  • AReal-time inference with auto scaling
  • BServerless inference with provisioned concurrency (correct answer)
  • CAsynchronous inference
  • DA batch transform task
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Serverless inference with provisioned concurrency This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 337

A machine learning (ML) engineer is using Amazon SageMaker automatic model tuning (AMT) to optimize a model's hyperparameters. The ML engineer notices that the tuning jobs take a long time to run. The tuning jobs continue even when the jobs are not significantly improving against the objective metric. The ML engineer needs the training jobs to optimize the hyperparameters more quickly. How should the ML engineer configure the SageMaker AMT data types to meet these requirements?

  • ASet Strategy to the Bayesian value.
  • BSet RetryStrategy to a value of 1.
  • CSet ParameterRanges to the narrow range Inferred from previous hyperparameter jobs.
  • DSet TrainingJobEarlyStoppingType to the AUTO value. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Set TrainingJobEarlyStoppingType to the AUTO value.

Topic 1 Β· Question 338

A global bank requires a solution to predict whether customers will leave the bank and choose another bank. The bank is using a dataset to train a model to predict customer loss. The training dataset has 1,000 rows. The training dataset includes 100 instances of customers who left the bank. A machine learning (ML) specialist is using Amazon SageMaker Data Wrangler to train a churn prediction model by using a SageMaker training job. After training, the ML specialist notices that the model returns only false results. The ML specialist must correct the model so that it returns more accurate predictions. Which solution will meet these requirements?

  • AApply anomaly detection to remove outliers from the training dataset before training.
  • BApply Synthetic Minority Oversampling Technique (SMOTE) to the training dataset before training. (correct answer)
  • CApply normalization to the features of the training dataset before training.
  • DApply undersampling to the training dataset before training.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Apply Synthetic Minority Oversampling Technique (SMOTE) to the training dataset before training.

Topic 1 Β· Question 339

A banking company provides financial products to customers around the world. A machine learning (ML) specialist collected transaction data from internal customers. The ML specialist split the dataset into training, testing, and validation datasets. The ML specialist analyzed the training dataset by using Amazon SageMaker Clarify. The analysis found that the training dataset contained fewer examples of customers in the 40 to 55 year-old age group compared to the other age groups. Which type of pretraining bias did the ML specialist observe in the training dataset?

  • ADifference in proportions of labels (DPL)
  • BClass imbalance (CI) (correct answer)
  • CConditional demographic disparity (CDD)
  • DKolmogorov-Smirnov (KS)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Class imbalance (CI).

Topic 1 Β· Question 340

A tourism company uses a machine learning (ML) model to make recommendations to customers. The company uses an Amazon SageMaker environment and set hyperparameter tuning completion criteria to MaxNumberOfTrainingJobs. An ML specialist wants to change the hyperparameter tuning completion criteria. The ML specialist wants to stop tuning immediately after an internal algorithm determines that tuning job is unlikely to improve more than 1% over the objective metric from the best training job. Which completion criteria will meet this requirement?

  • AMaxRuntimeInSeconds
  • BTargetObjectiveMetricValue
  • CCompleteOnConvergence (correct answer)
  • DMaxNumberOfTrainingJobsNotImproving
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: CompleteOnConvergence.

Showing questions 321–340 of 369 Β· Page 17 of 19