AWS Certified Machine Learning – Specialty practice questions
243 free questions with answers and explanations.
- 151.A data engineer is designing a data ingestion pipeline for an IoT application that generates millions of small sensor readings per second. These readings need to be processed in near real-time for anomaly detection and then archived to Amazon S3 for long-term analytics. The solution must be highly scalable, fault-tolerant, and cost-effective. Which AWS service combination is best suited for this scenario?Data Engineering
- 152.A research institution is collecting sensor data from remote environmental monitoring stations. The data is small in size (a few kilobytes per reading) but arrives at a very high frequency (thousands of readings per second) from thousands of devices. The institution needs to ingest this data efficiently, store it for long-term analysis, and prepare it for machine learning models that predict environmental changes. Which AWS service is most cost-effective and scalable for collecting and ingesting this high-volume, low-latency data stream?Data Engineering
- 153.A data scientist is preparing a dataset for a machine learning model. They notice that a significant portion of the 'income' feature (approximately 15%) is missing. The distribution of the existing 'income' data is heavily skewed to the right, with a long tail of high values. Simple mean imputation would distort the distribution. Which imputation strategy is most appropriate to maintain the integrity of the data distribution while addressing the missing values?Exploratory Data Analysis
- 154.A financial institution is analyzing credit card transaction data to detect fraudulent activities. They have a dataset with features like transaction amount, time, merchant category, and number of previous transactions. Before building a predictive model, they want to understand the relationships between these features. Specifically, they need to identify if there's a linear relationship between transaction amount and the number of previous transactions, and how strong that relationship is. Which statistical analysis method is most suitable for this purpose?Exploratory Data Analysis
- 155.A machine learning team is preparing a dataset for an image classification task. The dataset consists of millions of high-resolution images stored in Amazon S3. Before training, the images need to be resized, normalized, and augmented (e.g., rotations, flips) to increase the dataset size and improve model robustness. The team needs a cost-effective, scalable, and automated way to perform these transformations. Which AWS service is best suited for orchestrating and executing these image processing tasks?Data Engineering
- 156.A data engineering team is building a data lake for a new machine learning project. They need to ensure that the data stored in Amazon S3 is discoverable, queryable, and has a centralized metadata catalog for various AWS analytics and ML services. This catalog should allow different teams to understand the schema and easily query the data without needing to know its underlying physical location or format. Which AWS service should be used to create and manage this metadata catalog?Data Engineering
- 157.A retail company is analyzing sales data from their e-commerce platform. They want to determine if a recent website redesign (implemented last month) had a significant impact on the average daily sales. They have daily sales data for the month before the redesign and the month after the redesign. The data is known to be approximately normally distributed, and the two months represent independent samples. Which hypothesis test should they use?Exploratory Data Analysis
- 158.A gaming company collects telemetry data from millions of players globally. This data includes player actions, in-game events, and device information, arriving at extremely high velocity and volume. The data needs to be ingested, transformed, and made available for real-time analytics and machine learning model training to detect anomalies and personalize player experiences. The solution must handle petabytes of data, offer high availability, and be able to scale dynamically. Which AWS service is best suited for the initial ingestion and buffering of this high-velocity streaming data?Data Engineering
- 159.A machine learning team is working with a dataset that contains various categorical features, some with high cardinality (e.g., product IDs, user IDs). They observe that one-hot encoding these features leads to an extremely sparse dataset with a very high number of dimensions, negatively impacting model training time and memory usage. They want to reduce the dimensionality while still capturing useful information from these categorical features. Which feature engineering technique should they employ?Data Engineering
- 160.A data scientist is performing exploratory data analysis on a dataset containing customer transaction records. They observe that the 'TransactionAmount' column has a large number of missing values (approximately 30%). After inspecting the data, they find no discernible pattern or reason for these missing values; they appear to be randomly distributed. Which imputation strategy would be most suitable to handle these missing values while minimizing bias and preserving the variability of the original data?Exploratory Data Analysis
- 161.A data engineering team is setting up a new data governance framework for their machine learning platform. A critical requirement is to ensure that all data access requests to sensitive datasets in Amazon S3 are subject to approval workflows, and that data usage adheres to strict compliance policies. Furthermore, they need to track who accessed what data, when, and for what purpose, across different analytics and ML services. Which AWS service combination provides the necessary capabilities for granular access control, approval workflows, and comprehensive auditing?Data Engineering
- 162.A data engineering team is building a serverless data lake. They ingest data from various sources into Amazon S3. To enable efficient querying by services like Amazon Athena and Amazon Redshift Spectrum, they need a centralized metadata repository that automatically discovers schema and partitions. They also require the ability to define and enforce fine-grained access control on tables and columns without managing separate databases. Which AWS service is purpose-built to meet these requirements?Data Engineering
- 163.A financial institution is building a fraud detection system. They collect transaction data from various sources, including real-time payment gateways and batch processing systems. Due to regulatory compliance and the sensitive nature of financial data, all data must be encrypted both in transit and at rest, and access must be strictly controlled. Which AWS data storage solution is most suitable for storing this highly sensitive, transactional data, ensuring both security and scalability for ML model training?Data Engineering
- 164.A data scientist is performing exploratory data analysis (EDA) on a large dataset stored in Amazon S3. The dataset is partitioned by 'year' and 'month'. During EDA, the data scientist frequently needs to query specific columns for a range of months across multiple years. However, some queries are taking a very long time and incurring high costs due to full-file scans. What data partitioning and file format strategy would optimize query performance and reduce costs for this access pattern?Data Engineering
- 165.A data science team is developing a machine learning model to predict the likelihood of a rare medical condition. The dataset is extremely small due to the rarity of the condition, and the team needs to ensure the model generalizes well to unseen patient data. They are considering different model architectures. Which approach is generally best suited for this scenario?Modeling
- 166.A machine learning engineer is developing a real-time anomaly detection system for network security. The system must process millions of events per second with very low latency. The initial model, a complex deep neural network, achieves high accuracy but is too slow for real-time inference. Which model optimization technique should be prioritized to reduce inference latency while maintaining acceptable accuracy?Modeling
- 167.A machine learning engineer is deploying a model to production that predicts customer sentiment from text reviews. The model is highly accurate but occasionally produces illogical or contradictory predictions for specific, nuanced reviews, making business users distrust the model. The engineer needs a method to explain individual predictions in an interpretable way, even for complex black-box models, to build trust and debug these edge cases. Which interpretability technique is best suited for providing local, model-agnostic explanations?Modeling
- 168.A machine learning engineer is training a deep neural network for a computer vision task. During training, the model's performance on the validation set initially improves but then starts to degrade, while the training set performance continues to improve. This suggests the model is overfitting. Which technique would be most effective in mitigating this issue without significantly increasing the model's complexity?Modeling
- 169.A financial institution is developing a machine learning model to predict stock market volatility. The historical volatility data is observed to be highly skewed, with a long tail towards higher volatility values. The data scientist understands that many classic machine learning algorithms perform best when input features are normally distributed. Which data transformation technique should be applied to the volatility feature to make it more amenable to these algorithms?Modeling
- 170.A research team is training a deep neural network for medical image segmentation. They observe that the model performs exceptionally well on the training data, achieving very high Dice coefficients, but its performance drops significantly on unseen validation data. This indicates a strong sign of overfitting. To mitigate this, they decide to introduce a regularization technique that randomly sets a fraction of input units to zero at each update during training. Which regularization technique are they implementing?Modeling
- 171.A data science team is developing a machine learning model to predict customer lifetime value (CLV). They have trained several models (e.g., Linear Regression, Gradient Boosting, Neural Network) and now need to combine their predictions to achieve better overall performance and robustness. They want a method that can learn the optimal way to combine these individual model predictions, rather than simply averaging them. Which ensemble technique is most appropriate for this goal?Modeling
- 172.A machine learning engineer is developing a real-time recommendation system. The initial model, trained on historical user data, performs well offline but shows degraded performance and slow response times when deployed in production. The engineer suspects the model is too complex for the inference environment. Which model optimization technique is most appropriate to address both performance and latency issues while maintaining reasonable accuracy?Modeling
- 173.A data scientist is developing a predictive model for customer churn. The business stakeholders emphasize the importance of understanding *why* a customer is predicted to churn, not just the prediction itself, to enable targeted intervention strategies. The model currently achieves high accuracy, but it's a complex ensemble model (e.g., Gradient Boosting) that is difficult to interpret. Which interpretability technique is most suitable for explaining individual predictions of this complex model to business users?Modeling
- 174.A retail company is building a recommendation system. They have a dataset of customer purchases and product interactions. The data science team trains a collaborative filtering model and evaluates its performance. They notice that the model consistently recommends popular items, even to users with distinct tastes, and struggles to recommend niche products. This indicates a potential 'popularity bias' in the recommendations. Which model evaluation metric or technique is most suitable for detecting and quantifying this specific type of bias?Modeling
- 175.A data science team is developing a machine learning model to predict customer sentiment from text reviews. The model frequently misclassifies reviews containing sarcasm or subtle humor, leading to inaccurate sentiment scores. The team suspects that their current word embedding model, trained on a general corpus, does not adequately capture the nuanced contextual meanings specific to customer reviews. Which approach should the team prioritize to improve the model's understanding of these specific linguistic patterns?Modeling
- 176.A machine learning engineer is training a neural network for a multi-class image classification task. The model is prone to making overconfident predictions, assigning very high probabilities to incorrect classes, especially when the input is ambiguous. This behavior makes the model unreliable for critical applications. To encourage the model to produce more calibrated and less overconfident probability estimates, which technique should the engineer apply during training?Modeling
- 177.A financial institution is developing a machine learning model to detect fraudulent transactions. The dataset is highly imbalanced, with fraudulent transactions accounting for less than 0.1% of the total. The primary goal is to minimize false negatives (missing actual fraud) to avoid significant financial losses. Which algorithm is generally preferred for its ability to handle imbalanced datasets and provide interpretable results, and why?Modeling
- 178.A data scientist is training an image classification model for a highly sensitive application where misclassifications could have severe consequences. The model achieves high accuracy but is brittle; small, imperceptible changes to input images can cause it to misclassify with high confidence. The team wants to test the model's resilience to these subtle changes across various environmental conditions, such as different lighting, rotations, and noise levels. Which type of testing is most appropriate for this scenario?Modeling
- 179.A pharmaceutical company is developing a machine learning model to predict the efficacy of new drug compounds. They have a limited dataset of successfully tested compounds. Due to the high cost and time involved in synthesizing and testing new compounds, they need a model that performs well with small datasets and is less prone to overfitting than complex models like deep neural networks. Which type of model is generally preferred for its simplicity and robustness on small datasets?Modeling
- 180.A machine learning engineer is developing a model to predict the probability of equipment failure in a factory. The dataset is highly imbalanced, with very few instances of actual failures compared to normal operation. The initial model, a Logistic Regression, achieves a high accuracy of 99.5% but completely fails to predict any failures, resulting in zero recall for the positive class. Which evaluation metric should the engineer prioritize to get a more meaningful assessment of the model's ability to detect failures?Modeling
- 181.A retail company is developing a recommendation system for clothing. They notice that the system predominantly recommends popular items, even to users who have previously shown interest in niche or less common apparel. This leads to a lack of diversity in recommendations and dissatisfaction among users with specific tastes. Which type of bias is the recommendation system exhibiting?Modeling
- 182.A machine learning engineer is training a deep neural network for a multi-class image classification task. During training, the model achieves very high accuracy on the training set but significantly lower accuracy on the validation set, indicating overfitting. The engineer wants to reduce overfitting by randomly dropping out units during training. What is the primary benefit of this technique?Modeling
- 183.A company is developing a machine learning model to detect anomalies in sensor data from critical industrial equipment. False negatives (failing to detect an actual anomaly) are extremely costly, potentially leading to equipment failure. However, a high rate of false positives (triggering alerts for normal operation) is also undesirable as it leads to alert fatigue and unnecessary maintenance. Which model evaluation metric should the team primarily focus on optimizing while also keeping an eye on the secondary metric?Modeling
- 184.A data science team is developing a machine learning model to predict customer churn. They observe that the dataset is highly imbalanced, with a very small percentage of customers actually churning. The business objective is to identify as many churning customers as possible to intervene proactively, even if it means some false positives. Which evaluation metric should the team prioritize to align with this objective?Modeling
- 185.A retail company is developing a machine learning model to forecast product demand. The data scientist observes that the model performs well on recent data but struggles to predict demand accurately during holiday seasons or major promotional events, which are characterized by sudden, significant spikes in sales. The current model architecture is a simple Recurrent Neural Network (RNN). Which modification to the model training, specifically regarding the algorithm or architecture, is most likely to improve its ability to capture these sporadic, high-impact events?Modeling
- 186.A financial institution is developing a machine learning model to predict stock price movements. They have historical data spanning several years, including daily opening, closing, high, and low prices, as well as trading volume. The data exhibits strong temporal dependencies, where past prices significantly influence future prices. Which type of model architecture is best suited for capturing these sequential patterns for time series forecasting?Modeling
- 187.A financial institution is developing a machine learning model to predict loan default. The dataset is highly imbalanced, with only 2% of loans resulting in default. The team initially trained a model that achieved 98% accuracy. However, upon closer inspection, they found that the model simply predicts 'no default' for all cases. The business stakeholders are most concerned about identifying as many actual defaulting loans as possible to intervene early. Which evaluation metric should the team prioritize to address the stakeholders' primary concern?Modeling
- 188.A machine learning engineer is building a recommendation system for a new e-commerce platform. The platform has just launched, and there is very little user interaction data available. As a result, the recommendation system struggles to provide relevant suggestions for new users and newly added products. This phenomenon is commonly known as the 'cold-start problem'. Which recommendation system strategy is best suited to address this issue by leveraging item attributes or content information?Modeling
- 189.A data science team is developing a machine learning model to classify customer reviews as positive, negative, or neutral. They are using a large pre-trained language model and fine-tuning it on their specific review dataset. During evaluation, they observe that the model performs exceptionally well on common review phrases but struggles with less frequent, domain-specific terminology, leading to lower-than-expected accuracy for certain review categories. Which of the following techniques would be most effective in addressing this issue without significantly increasing model complexity or training time?Modeling
- 190.A machine learning engineer is training a deep learning model for image classification. During training, the model's accuracy on the training set steadily increases, reaching nearly 100%, but its accuracy on a separate validation set plateaus and then starts to decrease. The engineer suspects overfitting. Which of the following techniques would be most effective in mitigating this issue?Modeling
- 191.A data scientist is training a recommendation system for an e-commerce platform. The system uses collaborative filtering and has been deployed. However, the team observes that newly added items (cold-start items) rarely get recommended, and new users (cold-start users) receive generic or irrelevant recommendations. Which approach would best address this 'cold-start' problem?Modeling
- 192.A healthcare startup is developing a machine learning model to diagnose a rare disease from patient medical records. The dataset is extremely small, with only 100 positive cases and 1000 negative cases. Due to the rarity of the disease and the high cost of data collection, acquiring more data is not feasible. The team initially tried a complex deep learning model, but it showed severe overfitting. Which modeling approach is generally most suitable for such a scenario (very small dataset, limited positive samples, high cost of data acquisition)?Modeling
- 193.A machine learning team is developing a model to predict house prices. They have collected a dataset with various features like square footage, number of bedrooms, location, and year built. After initial training, they find that the model consistently underpredicts high-value houses and overpredicts low-value houses. This indicates a potential issue with the model's ability to capture the non-linear relationship between features and target variable, especially at the extremes. Which model training approach is most likely to resolve this issue?Modeling
- 194.A data scientist is working on a binary classification problem to predict customer churn. They have trained several models and observed the following performance metrics on a held-out test set: Model A: Accuracy = 0.92, Precision = 0.85, Recall = 0.70, F1-score = 0.77 Model B: Accuracy = 0.88, Precision = 0.90, Recall = 0.65, F1-score = 0.76 Model C: Accuracy = 0.90, Precision = 0.80, Recall = 0.82, F1-score = 0.81 Model D: Accuracy = 0.93, Precision = 0.75, Recall = 0.90, F1-score = 0.82 The business team emphasizes that identifying as many churning customers as possible is critical, even if it means a higher rate of incorrectly flagging non-churning customers. Which model should the data scientist recommend?Modeling
- 195.A data scientist is evaluating a binary classification model for predicting a rare disease. The model's performance is assessed using various metrics. The business requirement prioritizes minimizing false negatives, as missing a positive case (disease present) is considered far more costly than a false positive (healthy person incorrectly diagnosed with the disease). Which metric should the data scientist focus on optimizing?Modeling
- 196.A research team is training a deep neural network for medical image classification. They observe that the model achieves very high accuracy on the training data but performs poorly on new, unseen data, indicating overfitting. The team has already tried increasing the dataset size and adding dropout layers. To further mitigate overfitting and improve generalization without significantly increasing training time, which hyperparameter adjustment for the Adam optimizer should they consider, and why?Modeling
- 197.A retail company is developing a recommendation system for clothing based on customer purchase history and browsing behavior. They observe that the system frequently recommends popular, generic items and struggles to surface diverse or niche products, even for customers with eclectic tastes. This leads to a lack of personalization and potential 'filter bubbles'. Which type of bias is the system exhibiting, and what is the primary cause?Modeling
- 198.A medical research company is developing an AI model to diagnose a rare disease from medical images. The dataset is extremely small, containing only a few hundred labeled images, and acquiring more labeled data is prohibitively expensive. The team has access to a much larger dataset of unlabeled medical images and a pre-trained deep learning model on a vast, general image dataset (ImageNet). Which training strategy would be most effective for achieving high accuracy on the rare disease diagnosis task?Modeling
- 199.A data scientist is training a deep learning model for medical diagnosis. The model achieves high accuracy on the training set, but its performance on the validation set is significantly lower, indicating overfitting. To address this, the data scientist decides to add a penalty term to the loss function that is proportional to the sum of the absolute values of the model's weights. Which regularization technique is being applied?Modeling
- 200.A pharmaceutical company is developing a machine learning model to predict the efficacy of new drug compounds based on their chemical structures. They have a limited dataset of successfully tested compounds (around 500 samples), and each sample has a large number of molecular features (over 10,000). The current deep learning model is showing signs of overfitting, with high accuracy on the training set but poor performance on unseen validation data. Which of the following approaches is most appropriate to mitigate overfitting in this scenario?Modeling