πŸ”

MLS-C01 β€” questions

Page 3 of 19 Β· 369 total questions.

Topic 1 Β· Question 41

A Machine Learning Specialist is building a prediction model for a large number of features using linear models, such as linear regression and logistic regression. During exploratory data analysis, the Specialist observes that many features are highly correlated with each other. This may make the model unstable. What should be done to reduce the impact of having such a large number of features?

  • APerform one-hot encoding on highly correlated features.
  • BUse matrix multiplication on highly correlated features.
  • CCreate a new feature space using principal component analysis (PCA) (correct answer)
  • DApply the Pearson correlation coefficient.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a new feature space using principal component analysis (PCA).

Topic 1 Β· Question 42

A Machine Learning Specialist is implementing a full Bayesian network on a dataset that describes public transit in New York City. One of the random variables is discrete, and represents the number of minutes New Yorkers wait for a bus given that the buses cycle every 10 minutes, with a mean of 3 minutes. Which prior probability distribution should the ML Specialist use for this variable?

  • APoisson distribution (correct answer)
  • BUniform distribution
  • CNormal distribution
  • DBinomial distribution
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Poisson distribution.

Topic 1 Β· Question 43

A Data Science team within a large company uses Amazon SageMaker notebooks to access data stored in Amazon S3 buckets. The IT Security team is concerned that internet-enabled notebook instances create a security vulnerability where malicious code running on the instances could compromise data privacy. The company mandates that all instances stay within a secured VPC with no internet access, and data communication traffic must stay within the AWS network. How should the Data Science team configure the notebook instance placement to meet these requirements?

  • AAssociate the Amazon SageMaker notebook with a private subnet in a VPC. Place the Amazon SageMaker endpoint and S3 buckets within the same VPC.
  • BAssociate the Amazon SageMaker notebook with a private subnet in a VPC. Use IAM policies to grant access to Amazon S3 and Amazon SageMaker.
  • CAssociate the Amazon SageMaker notebook with a private subnet in a VPC. Ensure the VPC has S3 VPC endpoints and Amazon SageMaker VPC endpoints attached to it. (correct answer)
  • DAssociate the Amazon SageMaker notebook with a private subnet in a VPC. Ensure the VPC has a NAT gateway and an associated security group allowing only outbound connections to Amazon S3 and Amazon SageMaker.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Associate the Amazon SageMaker notebook with a private subnet in a VPC. Ensure the VPC has S3 VPC endpoints and Amazon SageMaker VPC endpoints attached to it.

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. A VPC endpoint provides private connectivity to AWS services without traversing the public internet. Amazon SageMaker builds, trains and deploys machine learning models in a fully managed service.

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

A Machine Learning Specialist has created a deep learning neural network model that performs well on the training data but performs poorly on the test data. Which of the following methods should the Specialist consider using to correct this? (Choose three.)

  • ADecrease regularization.
  • BIncrease regularization. (correct answer)
  • CIncrease dropout. (correct answer)
  • DDecrease dropout.
  • EIncrease feature combinations.
  • FDecrease feature combinations. (correct answer)
Reveal answer & explanation
Correct answer: B, C, F

The correct answer is B, C, F. Option B: Increase regularization. Option C: Increase dropout. Option F: Decrease feature combinations.

Topic 1 Β· Question 45

A Data Scientist needs to create a serverless ingestion and analytics solution for high-velocity, real-time streaming data. The ingestion process must buffer and convert incoming records from JSON to a query-optimized, columnar format without data loss. The output datastore must be highly available, and Analysts must be able to run SQL queries against the data and connect to existing business intelligence dashboards. Which solution should the Data Scientist build to satisfy the requirements?

  • ACreate a schema in the AWS Glue Data Catalog of the incoming data format. Use an Amazon Kinesis Data Firehose delivery stream to stream the data and transform the data to Apache Parquet or ORC format using the AWS Glue Data Catalog before delivering to Amazon S3. Have the Analysts query the data directly from Amazon S3 using Amazon Athena, and connect to BI tools using the Athena Java Database Connectivity (JDBC) connector. (correct answer)
  • BWrite each JSON record to a staging location in Amazon S3. Use the S3 Put event to trigger an AWS Lambda function that transforms the data into Apache Parquet or ORC format and writes the data to a processed data location in Amazon S3. Have the Analysts query the data directly from Amazon S3 using Amazon Athena, and connect to BI tools using the Athena Java Database Connectivity (JDBC) connector.
  • CWrite each JSON record to a staging location in Amazon S3. Use the S3 Put event to trigger an AWS Lambda function that transforms the data into Apache Parquet or ORC format and inserts it into an Amazon RDS PostgreSQL database. Have the Analysts query and run dashboards from the RDS database.
  • DUse Amazon Kinesis Data Analytics to ingest the streaming data and perform real-time SQL queries to convert the records to Apache Parquet before delivering to Amazon S3. Have the Analysts query the data directly from Amazon S3 using Amazon Athena and connect to BI tools using the Athena Java Database Connectivity (JDBC) connector.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a schema in the AWS Glue Data Catalog of the incoming data format. Use an Amazon Kinesis Data Firehose delivery stream to stream the data and transform the data to Apache Parquet or ORC format using the AWS Glu...

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. Kinesis Data Firehose delivers streaming data to destinations like S3/Redshift with no servers to manage. Amazon Kinesis ingests and processes real-time streaming data at scale. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 46

An online reseller has a large, multi-column dataset with one column missing 30% of its data. A Machine Learning Specialist believes that certain columns in the dataset could be used to reconstruct the missing data. Which reconstruction approach should the Specialist use to preserve the integrity of the dataset?

  • AListwise deletion
  • BLast observation carried forward
  • CMultiple imputation (correct answer)
  • DMean substitution
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Multiple imputation.

Topic 1 Β· Question 47

A company is setting up an Amazon SageMaker environment. The corporate data security policy does not allow communication over the internet. How can the company enable the Amazon SageMaker service without enabling direct internet access to Amazon SageMaker notebook instances?

  • ACreate a NAT gateway within the corporate VPC.
  • BRoute Amazon SageMaker traffic through an on-premises network.
  • CCreate Amazon SageMaker VPC interface endpoints within the corporate VPC. (correct answer)
  • DCreate VPC peering with Amazon VPC hosting Amazon SageMaker.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create Amazon SageMaker VPC interface endpoints within the corporate VPC.

Explanation

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

Topic 1 Β· Question 48

A Machine Learning Specialist is training a model to identify the make and model of vehicles in images. The Specialist wants to use transfer learning and an existing model trained on images of general objects. The Specialist collated a large custom dataset of pictures containing different vehicle makes and models. What should the Specialist do to initialize the model to re-train it with the custom data?

  • AInitialize the model with random weights in all layers including the last fully connected layer.
  • BInitialize the model with pre-trained weights in all layers and replace the last fully connected layer. (correct answer)
  • CInitialize the model with random weights in all layers and replace the last fully connected layer.
  • DInitialize the model with pre-trained weights in all layers including the last fully connected layer.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Initialize the model with pre-trained weights in all layers and replace the last fully connected layer.

Topic 1 Β· Question 49

An office security agency conducted a successful pilot using 100 cameras installed at key locations within the main office. Images from the cameras were uploaded to Amazon S3 and tagged using Amazon Rekognition, and the results were stored in Amazon ES. The agency is now looking to expand the pilot into a full production system using thousands of video cameras in its office locations globally. The goal is to identify activities performed by non-employees in real time Which solution should the agency consider?

  • AUse a proxy server at each local office and for each camera, and stream the RTSP feed to a unique Amazon Kinesis Video Streams video stream. On each stream, use Amazon Rekognition Video and create a stream processor to detect faces from a collection of known employees, and alert when non-employees are detected. (correct answer)
  • BUse a proxy server at each local office and for each camera, and stream the RTSP feed to a unique Amazon Kinesis Video Streams video stream. On each stream, use Amazon Rekognition Image to detect faces from a collection of known employees and alert when non-employees are detected.
  • CInstall AWS DeepLens cameras and use the DeepLens_Kinesis_Video module to stream video to Amazon Kinesis Video Streams for each camera. On each stream, use Amazon Rekognition Video and create a stream processor to detect faces from a collection on each stream, and alert when non-employees are detected.
  • DInstall AWS DeepLens cameras and use the DeepLens_Kinesis_Video module to stream video to Amazon Kinesis Video Streams for each camera. On each stream, run an AWS Lambda function to capture image fragments and then call Amazon Rekognition Image to detect faces from a collection of known employees, and alert when non-employees are detected.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use a proxy server at each local office and for each camera, and stream the RTSP feed to a unique Amazon Kinesis Video Streams video stream. On each stream, use Amazon Rekognition Video and create a stream processor t...

Explanation

Amazon Kinesis ingests and processes real-time streaming data at scale. Amazon Rekognition adds image and video analysis with pre-trained models. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 50

A Marketing Manager at a pet insurance company plans to launch a targeted marketing campaign on social media to acquire new customers. Currently, the company has the following data in Amazon Aurora: β€’ Profiles for all past and existing customers β€’ Profiles for all past and existing insured pets β€’ Policy-level information β€’ Premiums received β€’ Claims paid What steps should be taken to implement a machine learning model to identify potential new customers on social media?

  • AUse regression on customer profile data to understand key characteristics of consumer segments. Find similar profiles on social media
  • BUse clustering on customer profile data to understand key characteristics of consumer segments. Find similar profiles on social media (correct answer)
  • CUse a recommendation engine on customer profile data to understand key characteristics of consumer segments. Find similar profiles on social media.
  • DUse a decision tree classifier engine on customer profile data to understand key characteristics of consumer segments. Find similar profiles on social media.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use clustering on customer profile data to understand key characteristics of consumer segments. Find similar profiles on social media.

Topic 1 Β· Question 51

A manufacturing company has a large set of labeled historical sales data. The manufacturer would like to predict how many units of a particular part should be produced each quarter. Which machine learning approach should be used to solve this problem?

  • ALogistic regression
  • BRandom Cut Forest (RCF)
  • CPrincipal component analysis (PCA)
  • DLinear regression (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Linear regression.

Topic 1 Β· Question 52

A financial services company is building a robust serverless data lake on Amazon S3. The data lake should be flexible and meet the following requirements: β€’ Support querying old and new data on Amazon S3 through Amazon Athena and Amazon Redshift Spectrum. β€’ Support event-driven ETL pipelines β€’ Provide a quick and easy way to understand metadata Which approach meets these requirements?

  • AUse an AWS Glue crawler to crawl S3 data, an AWS Lambda function to trigger an AWS Glue ETL job, and an AWS Glue Data catalog to search and discover metadata. (correct answer)
  • BUse an AWS Glue crawler to crawl S3 data, an AWS Lambda function to trigger an AWS Batch job, and an external Apache Hive metastore to search and discover metadata.
  • CUse an AWS Glue crawler to crawl S3 data, an Amazon CloudWatch alarm to trigger an AWS Batch job, and an AWS Glue Data Catalog to search and discover metadata.
  • DUse an AWS Glue crawler to crawl S3 data, an Amazon CloudWatch alarm to trigger an AWS Glue ETL job, and an external Apache Hive metastore to search and discover metadata.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use an AWS Glue crawler to crawl S3 data, an AWS Lambda function to trigger an AWS Glue ETL job, and an AWS Glue Data catalog to search and discover metadata.

Explanation

AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead. Amazon S3 provides durable, scalable object storage that is fully managed. AWS Glue is a serverless ETL and data-catalog service that prepares and integrates data.

Topic 1 Β· Question 53

A company's Machine Learning Specialist needs to improve the training speed of a time-series forecasting model using TensorFlow. The training is currently implemented on a single-GPU machine and takes approximately 23 hours to complete. The training needs to be run daily. The model accuracy is acceptable, but the company anticipates a continuous increase in the size of the training data and a need to update the model on an hourly, rather than a daily, basis. The company also wants to minimize coding effort and infrastructure changes. What should the Machine Learning Specialist do to the training solution to allow it to scale for future demand?

  • ADo not change the TensorFlow code. Change the machine to one with a more powerful GPU to speed up the training.
  • BChange the TensorFlow code to implement a Horovod distributed framework supported by Amazon SageMaker. Parallelize the training to as many machines as needed to achieve the business goals. (correct answer)
  • CSwitch to using a built-in AWS SageMaker DeepAR model. Parallelize the training to as many machines as needed to achieve the business goals.
  • DMove the training to Amazon EMR and distribute the workload to as many machines as needed to achieve the business goals.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Change the TensorFlow code to implement a Horovod distributed framework supported by Amazon SageMaker. Parallelize the training to as many machines as needed to achieve the business goals.

Explanation

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

Topic 1 Β· Question 54

Which of the following metrics should a Machine Learning Specialist generally use to compare/evaluate machine learning classification models against each other?

  • ARecall
  • BMisclassification rate
  • CMean absolute percentage error (MAPE)
  • DArea Under the ROC Curve (AUC) (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Area Under the ROC Curve (AUC).

Topic 1 Β· Question 55

A company is running a machine learning prediction service that generates 100 TB of predictions every day. A Machine Learning Specialist must generate a visualization of the daily precision-recall curve from the predictions, and forward a read-only version to the Business team. Which solution requires the LEAST coding effort?

  • ARun a daily Amazon EMR workflow to generate precision-recall data, and save the results in Amazon S3. Give the Business team read-only access to S3.
  • BGenerate daily precision-recall data in Amazon QuickSight, and publish the results in a dashboard shared with the Business team.
  • CRun a daily Amazon EMR workflow to generate precision-recall data, and save the results in Amazon S3. Visualize the arrays in Amazon QuickSight, and publish them in a dashboard shared with the Business team. (correct answer)
  • DGenerate daily precision-recall data in Amazon ES, and publish the results in a dashboard shared with the Business team.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Run a daily Amazon EMR workflow to generate precision-recall data, and save the results in Amazon S3. Visualize the arrays in Amazon QuickSight, and publish them in a dashboard shared with the Business team.

Explanation

Amazon S3 provides durable, scalable object storage that is fully managed. Amazon EMR runs big-data frameworks like Spark and Hadoop on managed clusters. Amazon QuickSight is a serverless business-intelligence and dashboard service.

Topic 1 Β· Question 56

A Machine Learning Specialist is preparing data for training on Amazon SageMaker. The Specialist is using one of the SageMaker built-in algorithms for the training. The dataset is stored in .CSV format and is transformed into a numpy.array, which appears to be negatively affecting the speed of the training. What should the Specialist do to optimize the data for training on SageMaker?

  • AUse the SageMaker batch transform feature to transform the training data into a DataFrame.
  • BUse AWS Glue to compress the data into the Apache Parquet format.
  • CTransform the dataset into the RecordIO protobuf format. (correct answer)
  • DUse the SageMaker hyperparameter optimization feature to automatically optimize the data.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Transform the dataset into the RecordIO protobuf format.

Topic 1 Β· Question 57

A Machine Learning Specialist is required to build a supervised image-recognition model to identify a cat. The ML Specialist performs some tests and records the following results for a neural network-based image classifier: Total number of images available = 1,000 Test set images = 100 (constant test set) The ML Specialist notices that, in over 75% of the misclassified images, the cats were held upside down by their owners. Which techniques can be used by the ML Specialist to improve this specific test error?

  • AIncrease the training data by adding variation in rotation for training images. (correct answer)
  • BIncrease the number of epochs for model training
  • CIncrease the number of layers for the neural network.
  • DIncrease the dropout rate for the second-to-last layer.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Increase the training data by adding variation in rotation for training images.

Topic 1 Β· Question 58

A Machine Learning Specialist needs to be able to ingest streaming data and store it in Apache Parquet files for exploration and analysis. Which of the following services would both ingest and store this data in the correct format?

  • AAWS DMS
  • BAmazon Kinesis Data Streams
  • CAmazon Kinesis Data Firehose (correct answer)
  • DAmazon Kinesis Data Analytics
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Amazon Kinesis Data Firehose

Explanation

Kinesis Data Firehose delivers streaming data to destinations like S3/Redshift with no servers to manage. Amazon Kinesis ingests and processes real-time streaming data at scale. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 59

A data scientist has explored and sanitized a dataset in preparation for the modeling phase of a supervised learning task. The statistical dispersion can vary widely between features, sometimes by several orders of magnitude. Before moving on to the modeling phase, the data scientist wants to ensure that the prediction performance on the production data is as accurate as possible. Which sequence of steps should the data scientist take to meet these requirements?

  • AApply random sampling to the dataset. Then split the dataset into training, validation, and test sets.
  • BSplit the dataset into training, validation, and test sets. Then rescale the training set and apply the same scaling to the validation and test sets. (correct answer)
  • CRescale the dataset. Then split the dataset into training, validation, and test sets.
  • DSplit the dataset into training, validation, and test sets. Then rescale the training set, the validation set, and the test set independently.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Split the dataset into training, validation, and test sets. Then rescale the training set and apply the same scaling to the validation and test sets.

Topic 1 Β· Question 60

A Machine Learning Specialist is assigned a TensorFlow project using Amazon SageMaker for training, and needs to continue working for an extended period with no Wi-Fi access. Which approach should the Specialist use to continue working?

  • AInstall Python 3 and boto3 on their laptop and continue the code development using that environment.
  • BDownload the TensorFlow Docker container used in Amazon SageMaker from GitHub to their local environment, and use the Amazon SageMaker Python SDK to test the code. (correct answer)
  • CDownload TensorFlow from tensorflow.org to emulate the TensorFlow kernel in the SageMaker environment.
  • DDownload the SageMaker notebook to their local environment, then install Jupyter Notebooks on their laptop and continue the development in a local notebook.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Download the TensorFlow Docker container used in Amazon SageMaker from GitHub to their local environment, and use the Amazon SageMaker Python SDK to test the code.

Explanation

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

Showing questions 41–60 of 369 Β· Page 3 of 19