



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































I. Data Preparation for Machine Learning (28%) II. ML Model Development (26%) III. Deployment and Orchestration of ML Workflows (22%) IV. ML Solution Monitoring, Maintenance, and Security (24%)
This comprehensive practice examination targets the AWS Certified Machine Learning
Engineer – Associate (MLA-C01) and emphasizes production-oriented machine learning engineering on AWS. The current MLA-C01 blueprint covers data preparation, model development, deployment and workflow orchestration, and monitoring, maintenance, and security. AWS currently lists four scored domains weighted 28%, 26%, 22%, and 24%, respectively. The questions below emphasize applied SageMaker knowledge, data
engineering, model evaluation, deployment strategies, CI/CD, observability, security, troubleshooting, and operational decision-making.
Note: AWS has announced that MLA-C01 is being replaced by MLA-C02, with English
registration for the updated version opening September 1, 2026, and the final English MLA-C01 exam date being September 28, 2026. The questions below therefore
target MLA-C01 , as specifically requested.
A machine learning engineer receives 18 TB of historical customer transaction data stored as CSV files in Amazon S3. The files contain inconsistent schemas, duplicate records, missing values, and several columns containing personally identifiable information. The team wants to build a repeatable preparation workflow that can process new daily partitions without rewriting the entire historical dataset.
Which approach BEST satisfies the requirements?
A. Load all files into a SageMaker notebook, clean them manually, and overwrite the original S3 objects B. Use AWS Glue Data Catalog and ETL jobs to discover, transform, validate, and write partitioned datasets to S3 while retaining the raw data C. Store all CSV files in Amazon DynamoDB and perform transformations during model
training D. Use Amazon SageMaker inference endpoints to preprocess the files before training
🔴 Correct Answer: B. Use AWS Glue Data Catalog and ETL jobs to discover, transform, validate, and write partitioned datasets to S3 while retaining the raw data.
🔵 Explanation: AWS Glue provides scalable data discovery and ETL capabilities, while retaining immutable raw data enables reproducibility and reprocessing. Partitioned curated datasets allow incremental processing rather than repeatedly scanning the entire historical dataset.
A binary classification model predicts whether an online transaction is fraudulent. Only 0.2% of transactions are fraudulent. A data scientist randomly oversamples the minority class before splitting the data into training and validation sets. The resulting validation AUC is substantially higher than the production AUC.
What is the MOST likely cause?
A. The model is underfitting the majority class B. Data leakage occurred because duplicated minority examples could appear in both
datasets C. AUC cannot be used for binary classification D. Oversampling always causes excessive model regularization
🔴 Correct Answer: B. Data leakage occurred because duplicated minority examples could appear in both datasets.
🔵 Explanation: Oversampling before the train-validation split can place duplicated examples or highly similar synthetic examples into both sets. This contaminates validation performance and can make the model appear substantially better than it
performs on truly unseen production data.
A company trains a recommendation model using customer behavior data. A feature called customer_lifetime_value is calculated using transactions that occurred after the
prediction timestamp. Offline validation shows excellent performance, but production performance is poor.
Which corrective action is MOST appropriate?
Which approach is MOST appropriate?
A. One-hot encode every identifier and remove regularization
B. Treat the identifier as a continuous numerical variable C. Remove the identifier unless there is a demonstrable predictive relationship that can be represented without memorization D. Convert each identifier to a random integer and use it directly as a numerical feature
🔴 Correct Answer: C. Remove the identifier unless there is a demonstrable predictive relationship that can be represented without memorization.
🔵 Explanation: High-cardinality identifiers often cause memorization rather than meaningful generalization. Arbitrary numerical encoding introduces false ordinal relationships, while massive one-hot representations can create sparsity and overfitting.
A model predicts customer churn. The business considers false negatives four times
more costly than false positives. The model's default classification threshold produces high accuracy but misses many customers who actually churn.
Which evaluation strategy is MOST appropriate?
A. Optimize accuracy alone B. Optimize a metric that reflects the asymmetric cost, such as an appropriately configured cost-sensitive objective or F-beta measure emphasizing recall
C. Select the threshold that maximizes specificity regardless of business cost D. Remove the minority class from the validation set
🔴 Correct Answer: B. Optimize a metric that reflects the asymmetric cost, such as an appropriately configured cost-sensitive objective or F-beta measure emphasizing recall.
🔵 Explanation: Accuracy does not encode asymmetric business costs. When false negatives are substantially more expensive, evaluation and threshold selection should prioritize recall or another explicitly cost-sensitive metric.
A machine learning team is training a regression model on a dataset containing several numerical features with dramatically different scales. The selected algorithm is sensitive
to feature magnitude, and optimization is converging slowly.
Which preprocessing technique is MOST appropriate?
A. Standardize or normalize the numerical features using statistics learned from the
training set B. Randomly permute each feature independently C. Convert all numerical features to categorical strings D. Remove every feature whose variance exceeds one
🔴 Correct Answer: A. Standardize or normalize the numerical features using statistics learned from the training set.
🔵 Explanation: Scale-sensitive algorithms can converge poorly when features have substantially different magnitudes. Transformation parameters must be learned from training data and then consistently applied to validation, test, and inference data.
A team trains a model using a preprocessing pipeline that computes the mean and
standard deviation separately for the training, validation, and test datasets. The team wants an unbiased estimate of generalization performance.
What should the engineer change?
A. Compute preprocessing statistics independently for every dataset B. Compute preprocessing parameters using the training dataset and apply those same parameters to validation and test data
C. Compute statistics using only the test dataset D. Combine training and test datasets before preprocessing
🔴 Correct Answer: B. Compute preprocessing parameters using the training dataset and apply those same parameters to validation and test data.
🔵 Explanation: Learning preprocessing parameters independently from validation or test data introduces information from evaluation datasets into the transformation process. Training-derived parameters preserve the independence of validation and test evaluation.
A dataset used for demand forecasting contains observations from January 2022 through December 2025. The engineer randomly splits the records into training and validation sets.
Why can this produce misleading validation results?
A. Recall B. Specificity
C. Mean squared error D. R-squared
🔴 Correct Answer: A. Recall
🔵 Explanation: Recall measures the proportion of actual positive cases correctly identified. A model that misses most positive cases can have excellent accuracy when the negative class dominates, making recall substantially more informative for this requirement.
A team wants to compare several SageMaker training runs while systematically varying learning rate, regularization strength, and tree depth. The team wants AWS to identify promising hyperparameter combinations automatically.
Which capability BEST meets the requirement?
A. SageMaker hyperparameter tuning B. Amazon Route 53 weighted routing
C. Amazon CloudWatch Logs only D. AWS CloudTrail event history
🔴 Correct Answer: A. SageMaker hyperparameter tuning
🔵 Explanation: SageMaker hyperparameter tuning automates evaluation of multiple training jobs across specified hyperparameter ranges and searches for configurations that optimize the selected objective metric.
A model performs extremely well on the training dataset but substantially worse on unseen validation data. Increasing model complexity makes the gap even larger.
Which diagnosis is MOST likely?
A. Underfitting caused by excessive regularization B. Overfitting caused by excessive model complexity relative to available data
C. Data normalization failure in every possible case D. Underfitting caused by insufficient model capacity
🔴 Correct Answer: B. Overfitting caused by excessive model complexity relative to available data
🔵 Explanation: A large training-validation performance gap that worsens as complexity increases is characteristic of overfitting. Regularization, additional representative data, feature reduction, or a simpler model may improve generalization.
A fraud-detection model has an ROC-AUC of 0.96 but performs poorly at the extremely low false-positive rates required by the business. Most positive cases occur in a highly imbalanced population.
Which evaluation approach is MOST useful?
A. Evaluate only overall accuracy
B. Examine precision-recall behavior and performance in the operating region relevant to the business
C. Remove negative examples from the validation set D. Replace the classification problem with regression
🔴 Correct Answer: B. Examine precision-recall behavior and performance in the
operating region relevant to the business
🔵 Explanation: ROC-AUC can appear strong even when performance at the required operating point is inadequate, particularly with severe class imbalance. Precision-recall
analysis provides more relevant insight into positive-class performance.
A trained model is ready for production inference. Traffic is expected to be unpredictable, with periods of very low utilization and occasional sharp increases. The business requires automatic capacity adjustment and wants to avoid maintaining idle compute.
Which deployment approach is MOST appropriate?
A. A fixed-size single-instance endpoint with no scaling B. A SageMaker endpoint configured with automatic scaling based on an appropriate utilization metric C. A permanently provisioned large EC2 instance
D. Batch Transform executed continuously regardless of demand
An organization requires a repeatable ML workflow consisting of preprocessing, training, evaluation, conditional model registration, and deployment. Each stage should have explicit inputs and outputs and be independently reproducible.
Which SageMaker capability is BEST suited for this requirement?
A. SageMaker Pipelines B. Amazon CloudWatch dashboards alone C. Amazon Route 53 D. AWS CloudTrail
🔴 Correct Answer: A. SageMaker Pipelines
🔵 Explanation: SageMaker Pipelines provides workflow orchestration for ML steps and
supports repeatable pipelines with defined dependencies, parameters, artifacts, and conditional execution.
A CI/CD process should deploy a newly trained model only when its validation metrics exceed those of the currently approved production model.
Which implementation is MOST appropriate?
A. Automatically deploy every successfully trained model B. Add an evaluation and conditional approval stage before production deployment C. Deploy models manually without recording metrics D. Trigger production deployment whenever a source-code commit occurs
🔴 Correct Answer: B. Add an evaluation and conditional approval stage before
production deployment
🔵 Explanation: A quality gate prevents models that fail predefined performance criteria from reaching production. This is a core MLOps pattern for automated but controlled
deployment.
A company wants infrastructure for its ML pipeline to be reproducible across development, testing, and production environments.
Which practice BEST supports this objective?
A. Configure resources manually in the AWS console for every environment B. Define infrastructure and pipeline resources using infrastructure-as-code and version
control C. Store deployment instructions only in a developer's local notebook
D. Use different undocumented configurations for each environment
🔴 Correct Answer: B. Define infrastructure and pipeline resources using infrastructure-as-code and version control
🔵 Explanation: Infrastructure-as-code makes resource configuration declarative, reviewable, repeatable, and version-controlled. This reduces configuration drift and improves deployment consistency.
A production model's prediction latency has increased gradually over several weeks, although application traffic has remained stable. CloudWatch metrics show increasing
CPU utilization on the inference instances.
What should the engineer investigate FIRST?
A. Whether the model's input distribution has changed exclusively
B. Whether model or inference workload characteristics have changed and whether endpoint capacity is sufficient C. Whether the S3 bucket containing training data is public D. Whether the training dataset contains duplicate rows
🔴 Correct Answer: B. Whether model or inference workload characteristics have
changed and whether endpoint capacity is sufficient
🔵 Explanation: Increasing CPU utilization combined with higher latency indicates an infrastructure or inference-load issue that should be investigated through endpoint
metrics, request characteristics, model behavior, and scaling configuration.
A deployed model's input data distribution begins to differ significantly from the distribution observed during training. The model's business metric has also declined.
Which monitoring strategy BEST addresses the problem?
A. Monitor only endpoint CPU utilization
B. Monitor data quality and distribution statistics alongside model performance metrics
🔴 Correct Answer: B. Use an IAM role with narrowly scoped permissions to the required S3 objects and encryption keys
🔵 Explanation: IAM roles provide temporary credentials and can enforce least-privilege access. Restricting access to required objects and KMS keys minimizes the blast radius of compromised or misconfigured identities.
A team notices that a production model's accuracy has declined. Before retraining, engineers discover that a new upstream data source changed the meaning and valid range of one feature.
What should the team do FIRST?
A. Increase model complexity
B. Investigate and correct the data pipeline or schema change before retraining C. Increase endpoint instance size
D. Lower the model's inference threshold without investigating the data
🔴 Correct Answer: B. Investigate and correct the data pipeline or schema change before retraining
🔵 Explanation: Retraining on corrupted or semantically inconsistent data can institutionalize the underlying problem. The first priority is to restore data integrity and verify that feature definitions match the model contract.
A model is being evaluated for deployment. Its aggregate accuracy is excellent, but analysis shows materially different false-negative rates between two customer groups.
Which action is MOST appropriate?
A. Ignore the difference because aggregate accuracy is high B. Investigate subgroup performance, feature behavior, data representation, and
potential sources of unfairness before deployment C. Remove the group identifier and immediately deploy D. Increase the model's training epochs until subgroup performance becomes identical
🔴 Correct Answer: B. Investigate subgroup performance, feature behavior, data representation, and potential sources of unfairness before deployment
🔵 Explanation: Aggregate metrics can conceal important subgroup disparities. Responsible ML evaluation requires examining relevant slices of the population and
determining whether disparities arise from data, features, modeling choices, or operational processes.
A model training job succeeds, but the resulting model performs poorly because a categorical feature contains previously unseen values during validation. The preprocessing pipeline fails when encountering these values.
Which design change BEST improves robustness?
A. Assume the production vocabulary will always match training data B. Configure preprocessing to handle unknown categories deterministically, such as mapping them to an unknown category C. Delete every validation record containing an unknown value
D. Replace all categorical features with random numerical identifiers
🔴 Correct Answer: B. Configure preprocessing to handle unknown categories deterministically, such as mapping them to an unknown category
🔵 Explanation: Production systems inevitably encounter values absent from historical training data. Robust preprocessing should define deterministic behavior for unknown categories rather than failing or silently discarding records.
A model training pipeline uses a feature engineering step that produces an artifact consumed by several downstream training jobs. Engineers want to avoid recomputing the feature set whenever the source data and transformation logic have not changed.
Which principle BEST supports this requirement?
A. Persist and version reusable feature artifacts and track their lineage B. Recompute every feature for every experiment regardless of inputs C. Delete all intermediate artifacts after every training job D. Store feature artifacts only on an individual engineer's local machine
🔴 Correct Answer: A. Persist and version reusable feature artifacts and track their lineage
Combining CloudTrail with service logs and monitoring provides broader operational and security visibility.
A machine learning engineer is preparing a large tabular dataset for a SageMaker training job. Several numerical features contain extreme outliers caused by legitimate but rare business events. Removing those records would eliminate important examples, while leaving the raw values causes a tree-based model to become unstable.
Which approach is MOST appropriate?
A. Delete every observation containing an outlier B. Apply an appropriate robust transformation or capping strategy based on domain requirements and validate its effect C. Replace every outlier with zero without further analysis D. Convert all numerical features to categorical features
🔴 Correct Answer: B. Apply an appropriate robust transformation or capping strategy based on domain requirements and validate its effect.
🔵 Explanation: Legitimate extreme observations should not automatically be discarded. Robust transformations or carefully justified winsorization can reduce excessive influence while preserving valuable cases. The transformation should be determined from the training data and evaluated against business and model objectives.
A data pipeline creates a binary target variable from an event occurring within 30 days after each customer's prediction date. Some customers have less than 30 days of observable history because they entered the system recently.
What is the PRIMARY concern when constructing the training dataset?
A. Recent customers should always be assigned the positive class B. Customers without a complete observation window may have an incorrectly defined
target C. The target must always contain exactly 50% positive examples
D. The prediction date should be randomly assigned
🔴 Correct Answer: B. Customers without a complete observation window may have an incorrectly defined target
🔵 Explanation: A supervised target based on a future observation window requires sufficient follow-up time. Including incomplete windows can incorrectly label observations as negative simply because the required future period has not elapsed.
A machine learning engineer is building a binary classifier from a dataset containing millions of records. The positive class represents only 0.05% of observations. Randomly
splitting individual rows produces nearly identical distributions in each partition.
However, investigation reveals that thousands of rows belong to the same underlying customer.
What split strategy is MOST appropriate?
A. Randomly split all rows because the dataset is sufficiently large B. Split by customer identifier so records from the same customer cannot cross
partitions C. Place all positive examples in the validation set
D. Duplicate customers across every partition
🔴 Correct Answer: B. Split by customer identifier so records from the same customer cannot cross partitions
🔵 Explanation: Grouped observations violate the independence assumption when the same entity appears across training and validation sets. Group-based splitting reduces leakage and provides a more realistic estimate of performance on unseen customers.
A feature engineering pipeline creates a numerical feature using a rolling seven-day average. The model generates a prediction at 10:00 AM each day.
Which implementation is LEAST likely to introduce target leakage?
A. Preserve every rare category as a unique numerical value B. Use a suitable categorical encoding strategy with explicit handling of rare and
unknown categories C. Randomly assign each category a different floating-point number
D. Remove all categories except the most frequent one
🔴 Correct Answer: B. Use a suitable categorical encoding strategy with explicit handling of rare and unknown categories
🔵 Explanation: High-cardinality and rare categories can create sparse or unstable representations. Grouping rare categories and handling unseen categories deterministically can improve generalization and production robustness.
A regression model predicts delivery times. The target distribution is heavily right- skewed, with a small number of exceptionally long deliveries. Business stakeholders
care about reducing large prediction errors.
Which evaluation metric is MOST directly useful for emphasizing large errors?
A. Mean squared error
B. Accuracy C. Recall D. F1 score
🔴 Correct Answer: A. Mean squared error
🔵 Explanation: Mean squared error squares each residual, causing large errors to contribute disproportionately to the metric. This makes MSE useful when large prediction errors deserve greater penalty.
Two regression models have the following validation results:
Model A: RMSE = 8.1, MAE = 4. Model B: RMSE = 9.4, MAE = 3.
Business stakeholders state that occasional very large prediction errors are especially costly.
Which model is preferable based on the stated objective?
A. Model A, because its lower RMSE indicates fewer severe errors B. Model B, because its lower MAE always makes it superior
C. Model B, because RMSE is irrelevant for regression D. Neither model can be compared using validation metrics
🔴 Correct Answer: A. Model A, because its lower RMSE indicates fewer severe errors
🔵 Explanation: RMSE gives disproportionately greater weight to large residuals. Since severe errors are especially costly, Model A's lower RMSE better aligns with the stated business objective despite its higher MAE.
A machine learning engineer trains a multiclass classifier for five mutually exclusive categories. The business wants a probability distribution across all five possible classes for each prediction.
Which output configuration is MOST appropriate?
A. Independent binary outputs with no normalization B. A multiclass probability output whose class probabilities collectively form a distribution
C. A single continuous regression output D. A ranking score with no probability interpretation
🔴 Correct Answer: B. A multiclass probability output whose class probabilities
collectively form a distribution
🔵 Explanation: In mutually exclusive multiclass classification, the model should produce probabilities for each class that collectively represent the probability distribution over the possible outcomes.
A model's training loss continues decreasing while validation loss begins increasing after several epochs.
What intervention is MOST directly supported by this observation?
A. Continue training indefinitely because decreasing training loss proves improvement
B. Consider early stopping or regularization because the model is beginning to overfit C. Remove the validation dataset
D. Increase model complexity immediately