Amazon Web ServicesExpert levelMLS-C01Page 2 of 4

MLS-C01 exam dumps: questions 101 to 200 of 388

Page 2 of the free MLS-C01 question bank for the AWS Certified Machine Learning - Specialty exam. Questions 101 to 200 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated December 2024

Free MLS-C01 practice questions

Questions 101 to 105 of 388

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

MLS-C01 Question 101

Single answer

A data scientist is building a machine learning model to predict customer churn for a subscription-based service. The dataset includes a 'Join_Date' column, which represents the date a customer joined the service. However, the 'Join_Date' column is in its raw date format. What is the most appropriate feature engineering technique to apply to this column to improve model performance?

  1. A

    Convert the 'Join_Date' into a numerical feature representing the number of days since the customer joined.

  2. B

    One-hot encode the 'Join_Date' column to represent each unique date as a separate feature.

  3. C

    Apply tokenization to the 'Join_Date' column to split it into individual components (year, month, day).

  4. D

    Remove the 'Join_Date' column as it is not directly useful for prediction.

Show answer and explanation

Correct answer: A

Explanation

To effectively use the 'Join_Date' column, it should be transformed into a numerical feature that reflects the temporal relationship between the customer joining and their churn behavior. This transformation ensures that the data is both meaningful and usable by the machine learning model, while avoiding issues like sparsity or loss of information.

  • A. Correct.

    Converting the 'Join_Date' into a numerical feature representing the number of days since the customer joined is appropriate because it captures a meaningful temporal relationship between the join date and customer churn, which can improve the model's predictive power.

  • B. Incorrect.

    One-hot encoding the 'Join_Date' column would result in too many features if the dataset spans many unique dates, making it impractical and leading to a sparsity issue.

  • C. Incorrect.

    Applying tokenization to the 'Join_Date' column is not suitable as it is generally used for text data and does not capture the temporal relationship inherent in a date.

  • D. Incorrect.

    Removing the 'Join_Date' column discards potentially valuable information that could help the model understand temporal patterns related to customer churn.

MLS-C01 Question 102

Select 3

You are building a machine learning model to predict house prices. Your dataset includes a 'Year Built' feature, which represents the year a house was constructed, and a 'Neighborhood' feature, which is a categorical variable. To improve the model's performance, you decide to apply feature engineering techniques. Which of the following steps would be appropriate for feature engineering in this scenario?

  1. A

    Create a new feature representing the house's age by subtracting 'Year Built' from the current year.

  2. B

    Apply one-hot encoding to the 'Neighborhood' feature to convert it into numerical values.

  3. C

    Remove the 'Year Built' feature entirely to avoid overfitting the model.

  4. D

    Group 'Neighborhood' categories into fewer bins based on median house prices.

  5. E

    Apply Principal Component Analysis (PCA) to the 'Year Built' feature to reduce dimensionality.

Show answer and explanation

Correct answers: A, B, D

Explanation

Feature engineering is a critical step in preparing data for machine learning models. In this scenario, creating a new feature for the house's age, applying one-hot encoding to categorical variables, and grouping categories into fewer bins based on domain knowledge are effective strategies. These techniques help make the dataset more informative and suitable for the model while reducing complexity where necessary.

  • A. Correct.

    Creating a new feature for the house's age is a common practice in feature engineering, as it provides a more meaningful representation of the 'Year Built' feature for the model.

  • B. Correct.

    Applying one-hot encoding to the 'Neighborhood' feature is appropriate because it is a categorical variable. One-hot encoding converts categories into numerical values, which are suitable for machine learning algorithms.

  • C. Incorrect.

    Removing the 'Year Built' feature entirely is not justified unless there is evidence that it contributes no meaningful information or causes overfitting. In this case, it can be transformed into a more useful feature (e.g., house age).

  • D. Correct.

    Grouping 'Neighborhood' categories based on median house prices can reduce the cardinality of the feature and capture useful information, which improves model performance.

  • E. Incorrect.

    Applying PCA to the 'Year Built' feature is not appropriate because PCA is used for dimensionality reduction on high-dimensional numerical datasets, not individual features like 'Year Built'.

MLS-C01 Question 103

Select 4

You are tasked with building a machine learning model to predict customer churn for a subscription-based business. The dataset includes categorical features such as 'Subscription Plan' (Basic, Standard, Premium), numerical features such as 'Monthly Usage Hours', and outliers in the 'Lifetime Value' column. Additionally, the dataset contains high-dimensional features like 'Customer Activity Logs' with 500 columns. Which actions should you take to prepare the dataset effectively for the model?

  1. A

    Apply one-hot encoding to the 'Subscription Plan' feature.

  2. B

    Use binning to group customers in 'Lifetime Value' into ranges such as Low, Medium, and High.

  3. C

    Remove the 'Customer Activity Logs' feature entirely to reduce dimensionality.

  4. D

    Apply Principal Component Analysis (PCA) to the 'Customer Activity Logs' feature to reduce dimensionality.

  5. E

    Scale the 'Monthly Usage Hours' feature using standardization or normalization.

Show answer and explanation

Correct answers: A, B, D, E

Explanation

This question tests your ability to analyze and evaluate feature engineering concepts. Preparing the dataset involves encoding categorical variables, handling outliers, reducing the dimensionality of high-dimensional features, and scaling numerical features. These steps ensure the data is in a format suitable for machine learning algorithms while preserving important information for the model to learn effectively.

  • A. Correct.

    One-hot encoding is appropriate for categorical features like 'Subscription Plan', as it allows the model to handle these non-numeric values effectively.

  • B. Correct.

    Binning can help reduce the impact of outliers in the 'Lifetime Value' feature by grouping data into more interpretable ranges, which can improve model performance.

  • C. Incorrect.

    Removing the 'Customer Activity Logs' feature entirely may lead to a loss of valuable information. Dimensionality reduction techniques like PCA are better suited for high-dimensional features.

  • D. Correct.

    Principal Component Analysis (PCA) is an effective technique to reduce the dimensionality of the 'Customer Activity Logs' feature while retaining important information.

  • E. Correct.

    Scaling numerical features such as 'Monthly Usage Hours' ensures that the model treats them appropriately, especially for algorithms sensitive to feature scaling like gradient descent.

MLS-C01 Question 104

Select 3

You are building a machine learning model to predict customer churn for an e-commerce platform. The dataset contains a categorical feature called 'Subscription_Type' with values such as 'Free', 'Basic', 'Premium', and 'Enterprise'. Additionally, there is a continuous feature called 'Account_Age' (in days). During exploratory data analysis, you notice extreme outliers in the 'Account_Age' feature. Which of the following steps should you take to appropriately prepare these features for the model?

  1. A

    Apply one-hot encoding to the 'Subscription_Type' feature.

  2. B

    Perform binning on the 'Account_Age' feature to group values into intervals.

  3. C

    Ignore the outliers in the 'Account_Age' feature as machine learning algorithms can handle them automatically.

  4. D

    Replace the outliers in 'Account_Age' with the median value of the feature.

  5. E

    Convert the 'Subscription_Type' feature into numerical labels using label encoding.

Show answer and explanation

Correct answers: A, B, D

Explanation

Feature engineering is a critical step in preparing data for machine learning models. For the categorical feature 'Subscription_Type', one-hot encoding is the most appropriate method to avoid introducing false ordinal relationships. For the continuous feature 'Account_Age', extreme outliers should be addressed to prevent them from negatively impacting the model's performance. Techniques like replacing outliers with the median value or binning the feature into intervals are effective strategies to handle such scenarios. Ignoring outliers or using inappropriate encoding methods can lead to suboptimal model performance.

  • A. Correct.

    Correct. One-hot encoding is an appropriate method for handling a categorical feature like 'Subscription_Type' to ensure it is represented numerically without introducing ordinal relationships.

  • B. Correct.

    Correct. Binning can help reduce the impact of extreme outliers by grouping continuous values into discrete intervals, which might be beneficial for certain algorithms or business interpretations.

  • C. Incorrect.

    Incorrect. Ignoring outliers is not recommended as they can negatively impact the performance of machine learning models, especially algorithms sensitive to extreme values.

  • D. Correct.

    Correct. Replacing outliers with the median value is a common technique to mitigate the impact of extreme values without losing too much information.

  • E. Incorrect.

    Incorrect. Label encoding is not suitable in this case as it introduces ordinal relationships between categorical values (e.g., 'Free' < 'Basic' < 'Premium'), which do not exist naturally in 'Subscription_Type'.

MLS-C01 Question 105

Select 4

You are working on a machine learning project to predict customer churn for a subscription-based service. The dataset contains customer demographics, subscription details, and service usage history. After initial exploration, you notice that the dataset has missing values, categorical variables, and some numerical features with skewed distributions. Which of the following actions should you perform to properly analyze and visualize the data for machine learning?

  1. A

    Impute missing values using mean, median, or mode based on feature type and distribution.

  2. B

    Use a boxplot to identify outliers in numerical features and handle them.

  3. C

    One-hot encode categorical variables to prepare them for analysis and visualization.

  4. D

    Log-transform skewed numerical features to normalize their distributions.

  5. E

    Directly train a machine learning model on the raw dataset without any preprocessing.

Show answer and explanation

Correct answers: A, B, C, D

Explanation

Properly analyzing and visualizing data for machine learning involves handling missing values, identifying and addressing outliers, transforming skewed data, and encoding categorical variables. These steps ensure the dataset is clean and prepared for meaningful insights and model training. Skipping preprocessing can lead to poor model performance and misleading visualizations.

  • A. Correct.

    Imputing missing values is essential for ensuring that your dataset is complete for analysis and visualization. Choosing the appropriate imputation method (mean, median, or mode) depends on the feature type and its distribution.

  • B. Correct.

    Using boxplots to identify outliers is a common exploratory data analysis (EDA) technique. Handling outliers can improve the quality of analysis and model performance.

  • C. Correct.

    One-hot encoding is necessary to convert categorical variables into a numerical format, which is required for visualizations and machine learning algorithms.

  • D. Correct.

    Log-transforming skewed numerical features helps normalize their distributions, improving interpretability in visualizations and reducing potential bias in modeling.

  • E. Incorrect.

    Directly training a machine learning model on raw data without preprocessing is not recommended, as raw datasets often contain missing values, categorical variables, and other issues that hinder model performance.

Timed practice exam

Take a MLS-C01 practice test under exam conditions

65 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

MLS-C01 practice questions 101 to 200 of 388

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 4 pages of up to 100 questions.

  1. 101.A data scientist is building a machine learning model to predict customer churn for a subscription-based...
  2. 102.You are building a machine learning model to predict house prices. Your dataset includes a 'Year Built'...
  3. 103.You are tasked with building a machine learning model to predict customer churn for a subscription-based...
  4. 104.You are building a machine learning model to predict customer churn for an e-commerce platform. The dataset...
  5. 105.You are working on a machine learning project to predict customer churn for a subscription-based service. The...
  6. 106.You are working on an ML project for a retail company, and you have a large dataset containing customer...
  7. 107.A data science team is tasked with building a machine learning model to predict customer churn. Before...
  8. 108.You are working on a machine learning project to predict customer churn for a subscription-based service....
  9. 109.You are a data scientist working on a machine learning project to predict customer churn. You have stored...
  10. 110.You are a data scientist at an e-commerce company using Amazon SageMaker to analyze customer purchasing...
  11. 111.You are working as a Machine Learning Specialist for an e-commerce company. You have created an Amazon...
  12. 112.You are a data scientist developing an ML model to predict customer churn using Amazon SageMaker. You have...
  13. 113.You are analyzing a dataset of customer transactions to determine which features are most predictive of the...
  14. 114.You are working as a data scientist for an e-commerce company that wants to improve its recommendation...
  15. 115.You are building a machine learning model to predict customer churn for an e-commerce platform. During...
  16. 116.You are building a predictive model to forecast housing prices using a dataset that includes features such as...
  17. 117.You are working on a project to segment customer data into distinct groups based on purchasing behavior....
  18. 118.You are tasked with performing a cluster analysis on a dataset containing customer purchase behaviors. Before...
  19. 119.You are tasked with performing a cluster analysis on customer transaction data to identify distinct groups of...
  20. 120.You are working as a data scientist for a healthcare company and need to group patients into clusters based...
  21. 121.You are building a machine learning model to predict customer churn for an e-commerce platform. After...
  22. 122.A data scientist is building a machine learning model to predict customer churn for an e-commerce platform....
  23. 123.You are building a machine learning model to predict customer churn for a subscription-based service. After...
  24. 124.You are building a machine learning model to predict customer churn for a subscription service. The dataset...
  25. 125.A retail company wants to reduce the number of customer churns by identifying customers who are likely to...
  26. 126.A retail company wants to improve its customer retention by identifying customers who are likely to stop...
  27. 127.A retail company wants to improve its online sales by providing personalized product recommendations to users...
  28. 128.A company operates an e-commerce platform and wants to reduce customer churn by identifying users who are...
  29. 129.A retail company wants to improve its customer experience by predicting which customers are likely to stop...
  30. 130.A retail company wants to optimize its supply chain to reduce delivery times and minimize costs. Their...
  31. 131.A retail company wants to recommend products to its customers on their e-commerce platform, based on their...
  32. 132.A retail company wants to improve its product recommendation system. Currently, they use a simple rule-based...
  33. 133.A data scientist at a retail company is tasked with building a machine learning model to segment customers...
  34. 134.A data scientist at an e-commerce company wants to segment customers into groups based on their purchasing...
  35. 135.A data scientist is tasked with analyzing a dataset containing customer transaction records to identify...
  36. 136.A data science team at an e-commerce company wants to classify customer reviews into 'positive' and...
  37. 137.A retail company wants to analyze customer purchasing behavior to improve their product recommendations. They...
  38. 138.A financial institution wants to predict potential loan defaults based on customer data, such as income,...
  39. 139.A retail company wants to predict the total sales for the next quarter based on historical sales data. Which...
  40. 140.A retail company wants to build a machine learning solution to predict the future sales of their products...
  41. 141.A financial services company wants to predict whether a transaction is fraudulent or not. The dataset...
  42. 142.A company wants to develop a machine learning model to predict whether customers will churn (cancel their...
  43. 143.A healthcare organization wants to predict whether a patient is at risk of developing diabetes based on...
  44. 144.A retail company wants to forecast the number of items it needs to stock in its warehouses for the next...
  45. 145.You are tasked with building a machine learning model to classify customer complaints into multiple...
  46. 146.A retail company wants to predict whether a customer will make a purchase (binary classification) based on...
  47. 147.A data science team at your organization has built a binary classification model to predict whether a...
  48. 148.You are building a recommendation system for an e-commerce platform. The goal is to predict whether a user...
  49. 149.You are a Machine Learning Specialist working for a healthcare company. Your team has developed a black-box...
  50. 150.A data scientist at your company has trained a machine learning model using Amazon SageMaker. During a...
  51. 151.A data scientist at a retail company has built a machine learning model to predict customer churn using...
  52. 152.A data scientist is tasked with building a machine learning model to predict customer churn for a...
  53. 153.You are training a machine learning model to classify images of animals using SageMaker. The dataset contains...
  54. 154.You are training a binary classification model using Amazon SageMaker. During training, you notice that the...
  55. 155.You are training a machine learning model on Amazon SageMaker to predict product demand for a retail store....
  56. 156.You are training a machine learning model using Amazon SageMaker, and the dataset is extremely large, causing...
  57. 157.You are training a machine learning model using Amazon SageMaker and need to evaluate its generalization...
  58. 158.You are building a machine learning model on AWS SageMaker to predict customer churn. Your dataset contains 1...
  59. 159.You are building a machine learning model on AWS SageMaker using a highly imbalanced dataset. You need to...
  60. 160.You are building a machine learning model using Amazon SageMaker. You have a dataset with 200,000 records,...
  61. 161.You are training a machine learning model on AWS SageMaker using a custom training script. During training,...
  62. 162.You are training a deep learning model on AWS SageMaker, and you observe that the training loss decreases...
  63. 163.A data scientist is training a deep learning model on Amazon SageMaker. During training, they observe that...
  64. 164.You are training a deep learning model using batch gradient descent on AWS SageMaker. During training, you...
  65. 165.You are training a deep learning model using a large image dataset with millions of high-resolution images....
  66. 166.You are building a machine learning model for image classification using a convolutional neural network (CNN)...
  67. 167.You are tasked with training a deep learning model for image classification on a dataset containing millions...
  68. 168.You are training a deep learning model for image classification on a dataset containing millions of...
  69. 169.You are building a machine learning pipeline to process a large dataset containing terabytes of...
  70. 170.A data engineering team at a financial services company is building a recommendation engine that processes...
  71. 171.You are a data scientist working at a company that processes large-scale clickstream data. The team wants to...
  72. 172.You are tasked with building a machine learning pipeline to preprocess and analyze a large dataset consisting...
  73. 173.A retail company uses an Amazon SageMaker endpoint to serve a machine learning model for demand forecasting....
  74. 174.You are managing a machine learning model deployed on Amazon SageMaker that predicts customer churn. Over the...
  75. 175.You have trained a machine learning model in Amazon SageMaker to predict customer churn. Over time, the...
  76. 176.An e-commerce company has deployed a machine learning model to recommend products to users. Over time, the...
  77. 177.You are working for a ride-sharing company that wants to improve its ETA (Estimated Time of Arrival)...
  78. 178.A retail company wants to predict customer churn based on historical transaction data. The machine learning...
  79. 179.You are building a machine learning solution for a retail company to provide product recommendations to...
  80. 180.A retail company wants to implement a machine learning system to recommend products to customers. The...
  81. 181.A data scientist is training a machine learning model using Amazon SageMaker. The model's performance is...
  82. 182.You are training a machine learning model using Amazon SageMaker. The model's performance is highly sensitive...
  83. 183.You are building a machine learning model using Amazon SageMaker and need to optimize the hyperparameters to...
  84. 184.You are building a machine learning model using Amazon SageMaker and want to improve its performance by...
  85. 185.You are training a machine learning model to predict house prices using a dataset with several features,...
  86. 186.You are working on a regression problem and your model is overfitting the training data. To address this, you...
  87. 187.You are developing a machine learning model using Amazon SageMaker, and you notice that your model is...
  88. 188.You are training a deep learning model on AWS SageMaker for image classification. During training, you notice...
  89. 189.You are training a deep learning model using Amazon SageMaker. During training, you observe that the model is...
  90. 190.You are training a deep learning model on AWS SageMaker to classify images, but the model is overfitting the...
  91. 191.You are training a deep learning model using TensorFlow on Amazon SageMaker for a binary classification task....
  92. 192.You are training a machine learning model on AWS SageMaker to predict customer churn. The dataset has a large...
  93. 193.You are training a linear regression model in Amazon SageMaker. During experimentation, you notice that the...
  94. 194.You are training a machine learning model using Amazon SageMaker, and you want to prevent overfitting by...
  95. 195.You are training a machine learning model using Amazon SageMaker. The dataset has a large number of features,...
  96. 196.You are training a machine learning model using Amazon SageMaker and want to ensure that the model...
  97. 197.You are building a machine learning model for a binary classification problem using Amazon SageMaker. To...
  98. 198.You are building a machine learning model using Amazon SageMaker. To evaluate the model's performance, you...
  99. 199.You are building a machine learning model to predict customer churn using an imbalanced dataset. To evaluate...
  100. 200.You are building an image classification model using Amazon SageMaker and want to use a pre-trained ResNet...