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 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
- 155.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
- 156.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
- 157.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
- 158.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
- 159.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
- 160.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
- 161.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
- 162.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
- 163.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
- 164.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
- 165.A data science team is developing a recommendation engine using a matrix factorization model. They are concerned about potential 'cold start' issues for new users and items, where the model has insufficient data to make accurate recommendations. To address this, they decide to incorporate auxiliary information into the model training process. Which approach would be most effective for model training to mitigate cold start problems while maintaining model performance for existing users/items?Modeling
- 166.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
- 167.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
- 168.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
- 169.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
- 170.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
- 171.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
- 172.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
- 173.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
- 174.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
- 175.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
- 176.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
- 177.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
- 178.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
- 179.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
- 180.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
- 181.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
- 182.A data science team is developing a fraud detection model. The dataset is severely imbalanced, with fraudulent transactions representing less than 0.1% of the total. The initial model, trained on the raw dataset, shows high accuracy but very low recall for fraudulent transactions. To improve the model's ability to detect fraud, the team decides to synthetically generate new samples for the minority class (fraudulent transactions) to balance the dataset. Which technique is commonly used for this purpose?Modeling
- 183.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
- 184.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
- 185.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
- 186.A data scientist is developing a machine learning model to predict customer churn. The dataset contains various customer attributes, including demographics, service usage, and historical interactions. During exploratory data analysis, the data scientist discovers that several numerical features have a non-linear relationship with the target variable and are heavily skewed. The chosen model, a linear regression, is underperforming. Which data transformation technique would be most beneficial for improving the linear regression model's performance in this scenario?Modeling
- 187.A machine learning engineer is training a deep neural network for a multi-class image classification task with 100 classes. During training, they notice that the model's confidence scores for correct predictions are often very high (close to 1), but the model sometimes makes confident wrong predictions. This behavior indicates that the model is overconfident and poorly calibrated. Which technique can directly address this issue by encouraging the model to produce more realistic probability estimates?Modeling
- 188.A machine learning engineer is developing a real-time anomaly detection system for network traffic. The system needs to classify network packets as 'normal' or 'anomalous' with extremely low latency. The initial model, a complex deep neural network, achieves high accuracy but is too slow for real-time inference on edge devices. The engineer needs to significantly reduce the model's size and inference time while maintaining acceptable performance. Which model optimization technique is most suitable for this requirement?Modeling
- 189.A data science team is developing a machine learning model to predict customer lifetime value (CLV). They have collected historical data including customer demographics, purchase history, and engagement metrics. The initial model, a linear regression, shows a high bias, consistently underestimating the CLV for high-value customers and overestimating for low-value customers. Which of the following strategies is most likely to address this high bias and improve model accuracy?Modeling
- 190.A research team is developing a machine learning model to predict the progression of a rare disease. They have a very small dataset of patient records, which includes various clinical measurements and the disease progression outcome. Due to the rarity of the disease, collecting more data is extremely difficult. The team's initial attempts with complex models show high variance and poor generalization. Which modeling strategy is most appropriate for this scenario?Modeling
- 191.A manufacturing company is using a machine learning model to predict equipment failure based on sensor data. The cost of a false negative (predicting no failure when one occurs, leading to production downtime) is significantly higher than the cost of a false positive (predicting failure when none occurs, leading to unnecessary inspection). The current model has an F1-score of 0.85. To optimize for the company's specific cost structure, which evaluation metric should the data scientist prioritize and aim to maximize?Modeling
- 192.A data scientist is training a neural network for a critical application where model interpretability and the ability to explain individual predictions are paramount. The model achieves high accuracy, but stakeholders require clear, human-understandable justifications for why a particular prediction was made. Which post-training model evaluation and optimization technique is best suited to provide these localized explanations?Modeling
- 193.A team is developing a credit risk assessment model. They train a neural network and observe that the model performs extremely well on the training data but poorly on unseen data. Further investigation reveals that the model's predictions are highly sensitive to small, irrelevant perturbations in the input features, leading to inconsistent and unreliable classifications. This behavior is indicative of a lack of robustness and generalization. Which model validation technique is specifically designed to uncover such sensitivity to input variations and assess the model's robustness?Modeling
- 194.A retail company is developing a recommendation system. They notice that the system predominantly recommends popular items, even to users with niche interests, leading to poor user engagement for a significant portion of their catalog. This issue persists despite using a collaborative filtering approach. Which type of bias is the system exhibiting, and what is a common strategy to mitigate it?Modeling
- 195.A financial institution is developing a machine learning model to predict stock market volatility. They have collected a large dataset of historical stock prices, trading volumes, and macroeconomic indicators. The data exhibits strong temporal dependencies, with current values heavily influenced by past values. The team is exploring various model architectures. Which type of neural network is inherently designed to handle sequential data and capture long-range dependencies effectively?Modeling
- 196.A retail company is developing a machine learning model to predict individual customer lifetime value (CLV). The business goal is to identify high-value customers for targeted marketing campaigns early in their lifecycle. The data scientists have trained several regression models. During model evaluation, they observe that one model, while having a slightly higher Mean Squared Error (MSE), consistently predicts the rank order of customer values more accurately than other models. Which evaluation metric is most relevant for identifying high-value customers for targeted campaigns, given the observed model behavior?Modeling
- 197.A healthcare provider is developing a machine learning model to diagnose a specific medical condition from patient data. The dataset is highly imbalanced, with only 1% of patients having the condition. The goal is to ensure that the model is fair across different demographic groups (e.g., age, gender, ethnicity) and does not disproportionately misdiagnose any particular group. Which fairness metric is most appropriate for assessing the model's performance in this high-stakes, imbalanced scenario, focusing on equalizing true positive rates across groups?Modeling
- 198.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
- 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 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