Courseiva

CCNA ML Model Development Questions

75 of 108 questions · Page 1/2 · ML Model Development · Answers revealed

1
MCQhard

A financial institution is training a fraud detection model using SageMaker. The dataset is highly imbalanced, with only 0.1% fraudulent transactions. The team wants to use SageMaker Automatic Model Tuning to find the best hyperparameters. They notice that the tuning job spends most of its time on configurations that predict all transactions as non-fraudulent. Which hyperparameter should they tune to directly address this issue?

A.max_depth
B.learning_rate
C.scale_pos_weight
D.subsample
AnswerC

In SageMaker's built-in XGBoost algorithm, scale_pos_weight controls the balance of positive and negative weights. Setting it to a higher value increases the weight of the positive class (fraudulent transactions), making the model pay more attention to them. This directly addresses the issue of the model predicting all transactions as non-fraudulent, as it penalizes misclassification of the minority class more heavily.

Why this answer

The scale_pos_weight hyperparameter in SageMaker's XGBoost algorithm adjusts the weight of the positive class, which is crucial for imbalanced datasets. By increasing this value, the model's loss function penalizes false negatives more, encouraging better detection of fraudulent transactions. This directly tackles the problem of the model predicting all instances as the majority class.

Exam trap

The trap here is focusing on general regularization or optimization hyperparameters, when the core issue is class imbalance that requires a weighting adjustment.

2
MCQmedium

A team is training a PyTorch model using SageMaker. They have a custom training script that requires specific Python packages not included in the SageMaker default PyTorch container. Which approach should they use?

A.Use the built-in PyTorch estimator and specify a requirements.txt in the source directory
B.Build a custom Docker container from scratch and push it to Amazon ECR
C.Use the SageMaker XGBoost estimator and modify the script to use PyTorch
D.Use SageMaker Autopilot to automatically handle dependencies
AnswerA

Specifying a requirements.txt in the source directory causes SageMaker to install those packages into the container before training begins. This satisfies the need for custom Python dependencies absent from the default PyTorch container, without building a custom image.

Why this answer

The SageMaker PyTorch estimator supports a requirements.txt file placed in the source_dir; the training toolkit automatically installs those packages into the container at the start of the job. This is the intended, low-effort way to add Python dependencies without rebuilding the image. It satisfies the requirement while keeping the managed PyTorch framework benefits (optimized libraries, GPU support, distributed training).

Exam trap

The trap here is assuming any dependency gap requires a custom container; MLA-C01 tests whether you know requirements.txt in source_dir is the supported lightweight mechanism for Python-only packages.

How to eliminate wrong answers

Option B is wrong because building a custom Docker container from scratch is unnecessary overhead when only Python packages are missing; it is the correct answer only when you need OS-level libraries, custom CUDA versions, or non-Python dependencies. Option C is wrong because the XGBoost estimator runs the XGBoost algorithm container, which cannot execute arbitrary PyTorch training code. Option D is wrong because SageMaker Autopilot is an AutoML service for tabular data that automates feature engineering and algorithm selection; it does not let you inject custom Python dependencies into a user-supplied PyTorch script.

3
MCQmedium

A data scientist is using SageMaker Autopilot to automatically build a binary classification model on a balanced dataset. They want to understand the relationship between the input features and the model predictions. Which feature in SageMaker Autopilot should they use?

A.Explainability reports
B.Data visualizations
C.Model tuning results
D.Model candidate definitions
AnswerA

Explainability reports quantify each feature's contribution to predictions, satisfying the requirement to understand feature-prediction relationships. Autopilot generates these automatically for classification models, using SHAP values to attribute prediction outcomes to individual input features, revealing both global importance and per-instance effects without manual analysis.

Why this answer

SageMaker Autopilot's explainability reports provide feature importance and partial dependence plots (PDPs) that show how each input feature influences model predictions. For a binary classification model, these reports help data scientists understand the relationship between features and predictions. This is exactly what the question asks for.

Exam trap

MLA-C01 often tests the difference between data exploration features and model interpretability features — candidates may confuse 'data visualizations' (which describe the dataset) with 'explainability reports' (which describe the model).

How to eliminate wrong answers

Option B is wrong because data visualizations in Autopilot are for exploring the dataset, not for explaining model predictions. Option C is wrong because model tuning results show hyperparameter search outcomes, not feature-prediction relationships. Option D is wrong because model candidate definitions describe the algorithms and hyperparameters tried, not the interpretability of the final model.

4
MCQmedium

A team is training a PyTorch model using SageMaker with a custom training script. They want to track hyperparameters and metrics across multiple experiments. Which service should they use?

A.SageMaker Clarify
B.SageMaker Experiments
C.SageMaker Model Monitor
D.SageMaker Debugger
AnswerB

SageMaker Experiments captures hyperparameters, metrics, and artefacts across training runs, letting the team compare and track multiple experiments from their custom PyTorch script. It satisfies the requirement to log and organise runs, which raw training jobs alone do not provide.

Why this answer

SageMaker Experiments is purpose-built for tracking ML experiment runs, automatically capturing hyperparameters, metrics, artifacts, and lineage across training jobs. It integrates natively with SageMaker training jobs and custom PyTorch scripts via the SageMaker SDK, letting teams compare runs in the Studio UI. This directly matches the requirement to track hyperparameters and metrics across multiple experiments.

Exam trap

MLA-C01 often tests the distinction between the four SageMaker 'specialty' services (Clarify, Experiments, Model Monitor, Debugger) — candidates confuse Debugger's training-time telemetry with Experiments' run-tracking purpose.

How to eliminate wrong answers

Option A is wrong because SageMaker Clarify is a bias detection and explainability tool (SHAP-based feature attribution), not an experiment tracking service. Option C is wrong because SageMaker Model Monitor detects data drift, model quality drift, and bias drift on deployed endpoints — it operates post-deployment, not during training. Option D is wrong because SageMaker Debugger captures tensors, gradients, and system resource utilization for debugging training convergence issues, not for organizing and comparing experiment runs.

5
Multi-Selectmedium

A machine learning engineer is using SageMaker Automatic Model Tuning (AMT) to optimize a model. They want to ensure the tuning job explores the hyperparameter search space efficiently and stops poorly performing trials early. Which two strategies should they use? (Choose two.)

Select 2 answers
A.Enable early stopping with the Hyperband strategy to terminate underperforming trials.
B.Define hyperparameters as categorical with a large number of discrete values to increase granularity.
C.Set the maximum number of training jobs to a very high value to ensure thorough exploration.
D.Use the Bayesian optimization strategy to model the objective function.
E.Use random search instead of Bayesian optimization to cover the search space uniformly.
AnswersA, D

Hyperband is a multi-fidelity optimization strategy that allocates resources to promising trials and stops those that perform poorly early. It is specifically designed to terminate underperforming trials, saving compute time and cost. Enabling early stopping with Hyperband directly addresses the requirement to stop poorly performing trials early.

Why this answer

Bayesian optimization efficiently models the objective function to select promising hyperparameters, while Hyperband early stopping terminates underperforming trials to save resources. Together, they maximize tuning efficiency. The other options either increase cost, use less efficient search, or do not address early stopping.

Exam trap

The trap here is thinking that more trials or random search will improve tuning efficiency, when in fact intelligent search and early stopping are the key strategies.

6
Multi-Selectmedium

A machine learning engineer is using SageMaker Pipelines to automate the training and deployment of a model. The pipeline includes a processing step for feature engineering, a training step, and a model registration step. The engineer wants to ensure that the pipeline is reproducible and that the model artifacts are versioned. Which two actions should be taken? (Choose two.)

Select 2 answers
A.Configure the training step to use the latest SageMaker training image without specifying a version.
B.Store the training dataset in Amazon S3 with versioning enabled and reference the specific version in the pipeline.
C.Register the trained model in the SageMaker Model Registry with a model package group and version.
D.Enable pipeline caching to reuse previous step outputs.
E.Use SageMaker Experiments to log the pipeline execution parameters and metrics.
AnswersB, C

Enabling S3 versioning and referencing a specific object version ensures that the exact dataset used for training is immutable and traceable. This supports reproducibility because rerunning the pipeline will use the same data version. Without versioning, the dataset could be overwritten, leading to inconsistent results. This action directly addresses the requirement for reproducibility and versioning of inputs.

Why this answer

Reproducibility requires pinning inputs, and versioning requires a registry for artifacts. Enabling S3 versioning and referencing a specific version ensures the training data is immutable and traceable. Registering the model in the SageMaker Model Registry creates a versioned entry that links to the artifacts and metadata.

Together, these actions provide a reproducible pipeline and a versioned model catalog.

Exam trap

The trap here is confusing tracking tools like SageMaker Experiments with actual versioning mechanisms, or assuming that caching provides reproducibility.

7
MCQhard

A company uses SageMaker Autopilot to build a binary classification model. The generated leaderboard shows an ensemble model as the best candidate. The team needs a model that can be deployed for real-time inference with latency < 10ms. What should they do?

A.Use SageMaker Inference Recommender to profile the ensemble model and optimize it
B.Deploy the ensemble model as a SageMaker endpoint; ensemble models are optimized for low latency
C.Retrain the ensemble model with fewer base estimators using a custom container
D.Select the best single model from the leaderboard (non-ensemble candidate) and deploy it
AnswerD

Ensemble models combine multiple learners, and their aggregated inference overhead typically exceeds the sub-10ms latency budget. A single non-ensemble candidate from the leaderboard has lower per-request compute, so selecting it satisfies the real-time latency constraint while retaining strong accuracy.

Why this answer

Ensemble models in SageMaker Autopilot combine multiple base models (e.g., stacking or voting), which increases inference latency because every base model must run and their outputs aggregated. For a strict <10ms real-time latency requirement, the best approach is to select the best-performing single (non-ensemble) model from the leaderboard, which has lower inference overhead. Autopilot's leaderboard explicitly lists both ensemble and individual model candidates, so the team can pick a single model that meets the latency SLA.

Exam trap

The trap is assuming the 'best' leaderboard model (highest accuracy) is always the right deployment choice — candidates forget that ensemble models trade latency for accuracy, and strict latency SLAs often force selection of a single model.

How to eliminate wrong answers

Option A is wrong because Inference Recommender profiles and recommends instance types for a given model — it does not reduce the inherent latency of an ensemble architecture enough to guarantee <10ms. Option B is wrong because ensemble models are not optimized for low latency; they are optimized for accuracy, and deploying one would likely violate the latency requirement. Option C is wrong because retraining with fewer base estimators requires a custom container and manual tuning, which is complex, not guaranteed to meet latency, and outside the standard Autopilot workflow.

8
MCQmedium

A machine learning engineer is training a tabular regression model using the SageMaker built-in XGBoost algorithm. They want to reduce overfitting and improve generalization without changing the algorithm. Which SageMaker hyperparameter should they tune to control the fraction of features randomly sampled per tree?

A.colsample_bytree
B.subsample
C.max_depth
D.eta
AnswerA

In the SageMaker built-in XGBoost algorithm, colsample_bytree specifies the subsample ratio of columns when constructing each tree. Lowering it introduces feature-level randomness, which reduces overfitting and often improves generalization on tabular regression tasks. It is a native XGBoost hyperparameter exposed by the SageMaker estimator, so tuning it directly addresses the scenario without changing the algorithm.

Why this answer

The SageMaker built-in XGBoost algorithm exposes colsample_bytree to control column subsampling per tree. Setting it below 1.0 introduces feature-level randomness that combats overfitting and can improve generalization on tabular data. Other hyperparameters such as subsample, eta, and max_depth affect different aspects of training and do not implement the requested feature-sampling behavior.

Exam trap

The trap here is confusing row subsampling (subsample) with column subsampling (colsample_bytree) when the scenario explicitly asks for feature sampling.

9
MCQmedium

A machine learning engineer is deploying a model to a SageMaker endpoint for real-time inference. The model must return predictions within 100 milliseconds for 95% of requests. The engineer wants to monitor the endpoint's latency and automatically roll back if latency exceeds the threshold. Which combination of SageMaker features should be used?

A.SageMaker Model Monitor with a custom monitoring schedule and AWS Lambda for rollback.
B.SageMaker deployment guardrails with a blue/green deployment and CloudWatch alarms for latency.
C.SageMaker Clarify for bias detection and AWS Step Functions for rollback orchestration.
D.SageMaker Inference Recommender to select the optimal instance type and automatic scaling.
AnswerB

SageMaker deployment guardrails support blue/green and linear deployments with automatic rollback triggered by CloudWatch alarms. You can create a CloudWatch alarm on the endpoint's model latency metric, and configure the guardrail to roll back if the alarm fires. This directly satisfies the need to monitor latency and automatically roll back when the threshold is breached.

Why this answer

SageMaker deployment guardrails are designed to safely update endpoints with automatic rollback. By associating a CloudWatch alarm that monitors model latency, the guardrail can trigger a rollback if the alarm state changes to ALARM. This provides the required automatic protection.

Other features like Model Monitor, Inference Recommender, or Clarify do not offer this latency-based rollback capability out of the box.

Exam trap

The trap here is assuming that SageMaker Model Monitor handles latency SLOs, but it focuses on data and model quality drift, not performance metrics like latency.

10
MCQhard

A company is using SageMaker to train a model with a custom container. The training script requires a specific version of a Python library that is not included in the default SageMaker containers. How should they provide this library?

A.Use SageMaker Script Mode and specify the library in a requirements.txt
B.Use SageMaker's lifecycle configuration to install the library on the training instance
C.Use pip install in the training script before model training
D.Extend a SageMaker framework container and install the library using a Dockerfile
AnswerD

Extending a SageMaker framework container with a Dockerfile allows bundling all required dependencies, including specific versions of Python libraries, into the Docker image that SageMaker will use for training. This ensures consistency and avoids runtime installation issues.

Why this answer

Using a custom container (BYOC) allows bundling all dependencies, including specific library versions, into a Docker image that SageMaker can run.

11
Multi-Selectmedium

A data scientist is using SageMaker Autopilot for a regression problem. They want to see which data preprocessing steps Autopilot applied. Which TWO sources can they use to find this information?

Select 2 answers
A.Candidate definition notebook
B.Model leaderboard
C.Autopilot job description in AWS CloudTrail
D.Data exploration report
E.Explainability report
AnswersA, D

The candidate definition notebook documents the exact preprocessing pipeline Autopilot generated for that candidate, including transforms applied to features before training. It satisfies the requirement to inspect applied preprocessing by exposing the reproducible code rather than only summary statistics.

Why this answer

The candidate definition notebook (option A) is generated by SageMaker Autopilot for each candidate and contains the full ML pipeline code, including the exact data preprocessing and feature engineering transforms that were applied, so it directly answers the question. The data exploration report (option D) is produced during the Autopilot job's data exploration phase and documents the dataset's characteristics along with the preprocessing and feature engineering steps Autopilot selected, making it another valid source. The model leaderboard (option B) only ranks trained candidates by objective metric and does not describe preprocessing.

The Autopilot job description in AWS CloudTrail (option C) records API-level audit events, not the internal preprocessing steps. The explainability report (option E) covers feature attributions and model behavior, not the preprocessing pipeline.

12
MCQmedium

A data scientist is using SageMaker to train a deep learning model with the PyTorch estimator. They want to log custom scalar metrics such as validation accuracy and loss during training so they can monitor the job in SageMaker. Which approach should they use to emit these metrics from the training script?

A.Use the sagemaker_metrics API to write metrics to a local file and pass its path to the estimator's metric_definitions.
B.Print the metrics to stdout in a consistent format and define regex patterns in the estimator's metric_definitions parameter.
C.Call the SageMaker Metrics API directly from the training container to publish each metric.
D.Store metrics in Amazon CloudWatch Logs using the PutMetricData API and then reference them in the estimator.
AnswerB

SageMaker extracts training metrics by parsing the job's logs. When using the PyTorch estimator, the training script should print metric values to stdout in a predictable format, and the estimator's metric_definitions parameter provides regex patterns to capture them. This is the standard, supported method for custom scalar metrics and integrates with SageMaker monitoring and automatic model tuning.

Why this answer

For SageMaker training jobs, custom metrics are captured by parsing the job's logs. The PyTorch estimator supports metric_definitions, a list of name and regex pairs. Printing metrics to stdout in a consistent format lets SageMaker extract them for monitoring and tuning.

Direct API calls or file writes are not the supported mechanism for estimator metric capture.

Exam trap

The trap here is assuming there is a dedicated metrics API inside the container, when SageMaker actually parses stdout logs using regex patterns.

13
MCQmedium

A machine learning engineer is using a SageMaker training job with a custom training script. They need to save the trained model artifacts to Amazon S3 so that the model can be deployed later. Which parameter in the SageMaker estimator should they configure to specify the S3 location for model artifacts?

A.code_location
B.model_dir
C.output_path
D.dependencies
AnswerC

The output_path parameter in a SageMaker estimator specifies the S3 location where the training job stores model artifacts, such as model.tar.gz. It is the correct way to direct the trained model to a desired S3 bucket and prefix. Without setting it, artifacts go to a default SageMaker-managed bucket, which may not meet organizational requirements.

Why this answer

The output_path parameter in the SageMaker estimator defines the S3 URI where training job artifacts, including the final model, are stored. It allows control over the bucket and prefix, which is essential for governance and deployment. Other parameters like model_dir, code_location, and dependencies serve different purposes in the training lifecycle.

Exam trap

The trap here is confusing model_dir, which controls the local directory for saving the model inside the container, with output_path, which determines the final S3 location for artifacts.

14
MCQhard

A financial services company is training a fraud detection model using SageMaker. The dataset is highly imbalanced, with only 0.2% fraudulent transactions. The team wants to optimize the model for recall at a fixed precision of 90%. They are using the SageMaker built-in XGBoost algorithm with binary:logistic objective. Which evaluation metric should they monitor during training and hyperparameter tuning?

A.F1 score
B.Precision-Recall AUC (PR-AUC)
C.Area Under the ROC Curve (AUC)
D.Matthews Correlation Coefficient (MCC)
AnswerB

PR-AUC summarizes the precision-recall curve, which is more informative than ROC for imbalanced datasets. It captures the trade-off between precision and recall, allowing the team to select a threshold that achieves 90% precision and then measure recall. By monitoring PR-AUC, they can compare models' ability to rank positive instances highly, which directly supports optimizing recall at a fixed precision.

Why this answer

For imbalanced classification with a precision constraint, the precision-recall curve is the right tool. PR-AUC summarizes performance across thresholds and emphasizes the minority class. The team can use the PR curve to find the threshold where precision is 90%, then read off recall.

This directly aligns with their goal of maximizing recall at that precision, unlike ROC-AUC or single-threshold metrics such as F1 or MCC.

Exam trap

The trap here is defaulting to ROC-AUC because it is common, but ROC-AUC can be overly optimistic on imbalanced data and does not enforce a precision constraint.

15
Multi-Selectmedium

A data scientist wants to use SageMaker Clarify to analyze bias during training of a binary classification model. Which TWO types of bias metrics can SageMaker Clarify compute? (Select TWO.)

Select 2 answers
A.Feature importance
B.Post-training bias metrics (e.g., Difference in Positive Proportions, AD)
C.SHAP values
D.Pre-training bias metrics (e.g., Class Imbalance, DPL)
E.Confusion matrix
AnswersB, D

Post-training bias metrics are computed from model predictions on a dataset, comparing predicted labels across facets; measures such as Difference in Positive Proportions in Predicted Labels and Accuracy Difference quantify bias introduced by the trained model itself.

Why this answer

SageMaker Clarify computes bias metrics in two distinct phases of the ML lifecycle, and both are valid answers here. Option B is correct because post-training bias metrics evaluate the model's predictions after training, using measures such as Difference in Positive Proportions in Predicted Labels (DPPL), Accuracy Difference (AD), and Disparate Impact, which quantify whether outcomes differ across groups. Option D is correct because pre-training bias metrics analyze the training data before any model is built, using measures such as Class Imbalance (CI), Difference in Proportions of Labels (DPL), and Label Imbalance to detect skew in the dataset itself.

Option A is not a bias metric category — feature importance (e.g., via SHAP) explains which features drive predictions, not whether outcomes are biased. Option C is likewise an explainability technique, not a bias metric, and Clarify reports SHAP values under its explainability analysis. Option E is a standard model evaluation artifact for classification performance, not a bias metric computed by Clarify.

Exam trap

MLA-C01 often tests the confusion between bias metrics and explainability metrics, leading candidates to select feature importance or SHAP values as bias metrics.

16
Multi-Selecthard

A company is training a deep learning model for object detection using SageMaker. The training is very slow and the GPU memory is insufficient for the batch size. The team wants to scale across multiple GPUs efficiently. Which THREE actions should they take? (Choose THREE.)

Select 3 answers
A.Use SageMaker distributed model parallelism
B.Use SageMaker distributed data parallelism
C.Use managed spot instances
D.Use a SageMaker distributed training configuration with the SageMaker SDK
E.Enable SageMaker Debugger to identify bottlenecks
AnswersA, B, D

Model parallelism shards a single large model's layers across multiple GPUs, distributing parameters and activations so each device holds only a fraction. This directly addresses insufficient per-GPU memory for the batch size while scaling training across GPUs.

Why this answer

Option A is correct because SageMaker distributed model parallelism shards the model itself across multiple GPUs, which directly addresses the insufficient GPU memory problem by allowing a model too large for a single GPU to be split across devices, and it also speeds up training of large models. Option B is correct because SageMaker distributed data parallelism splits each mini-batch across GPUs and uses AllReduce for efficient gradient synchronization, enabling the team to scale the effective batch size and throughput across multiple GPUs efficiently. Option D is correct because the SageMaker distributed training configuration via the SageMaker SDK (e.g., the Distribution parameter with smdistributed settings in the estimator) is the required mechanism to actually enable and launch model or data parallelism on the training cluster.

Option C is not correct because managed spot instances reduce cost, not training time or GPU memory constraints, and can even introduce interruptions. Option E is not correct because SageMaker Debugger only monitors and reports training bottlenecks; it does not itself scale training across multiple GPUs or resolve memory limitations.

Exam trap

MLA-C01 often tests the distinction between cost-optimization features (spot instances), observability features (Debugger), and actual distributed-training mechanisms — candidates pick spot instances or Debugger thinking they 'help with scaling,' but only the distributed libraries and their SDK configuration address the memory and multi-GPU scaling requirement.

17
Multi-Selectmedium

A data scientist is using SageMaker to train a custom PyTorch model for image classification. They want to use SageMaker Debugger to detect training issues. Which TWO built-in rules are most relevant for detecting common training problems? (Select TWO.)

Select 2 answers
A.DataDistribution
B.Overfit
C.ExplodingGradients
D.ImageQuality
E.ConfusionMatrix
AnswersB, C

The Overfit rule in SageMaker Debugger monitors the validation loss relative to the training loss; if validation loss begins to increase while training loss continues to decrease, the rule emits a warning. This directly addresses the image classification scenario, where a custom PyTorch model can easily memorise training data rather than generalising, satisfying the stem’s requirement to detect common training problems.

Why this answer

Option B (Overfit) is correct because SageMaker Debugger's built-in Overfit rule monitors the gap between training and validation loss across steps and raises an issue when validation loss stops improving while training loss keeps decreasing, which is the classic signature of overfitting in a PyTorch image-classification job. Option C (ExplodingGradients) is correct because the ExplodingGradients rule inspects the gradients tensor emitted by the framework and flags abnormally large gradient values or spikes, which cause unstable or diverging training and are a common problem in deep networks. Option A (DataDistribution) is not a built-in Debugger rule for detecting training problems; it relates to SageMaker Clarify/Model Monitor data and bias analysis rather than Debugger's training-issue rule set.

Option D (ImageQuality) is not a SageMaker Debugger built-in rule; image-quality checks would be a custom preprocessing concern, not a Debugger rule. Option E (ConfusionMatrix) is not a Debugger training-issue rule; confusion matrices are evaluation artifacts computed after training (for example with SageMaker Clarify or custom code), not a built-in Debugger rule for detecting training problems.

Exam trap

The trap is selecting plausible-sounding but non-existent Debugger rules — candidates must know the actual built-in rule names (Overfit, ExplodingGradients, VanishingGradient, etc.) and not confuse them with evaluation metrics or data quality tools.

18
MCQhard

A machine learning engineer is using Amazon SageMaker Debugger to monitor a training job for a deep neural network. They receive a rule alert indicating 'exploding gradients'. Which action should they take to address this issue?

A.Use a smaller batch size
B.Reduce the learning rate
C.Increase the number of layers to absorb gradients
D.Increase the learning rate
AnswerB

Exploding gradients arise when large updates compound across layers, so lowering the learning rate shrinks each step and restores stability. This directly addresses the alert SageMaker Debugger raised, though gradient clipping is an alternative remedy.

Why this answer

Exploding gradients occur when large error gradients accumulate during backpropagation, causing unstable updates and divergence. Reducing the learning rate directly scales down the parameter update step (Δθ = -η∇J), preventing the weights from overshooting and stabilizing training. This is the standard first-line remedy for exploding gradients in deep networks.

Exam trap

MLA-C01 often tests the confusion between exploding and vanishing gradients, where candidates might think increasing learning rate or adding layers helps, but the correct action is to reduce the learning rate or apply gradient clipping.

How to eliminate wrong answers

Option A is wrong because a smaller batch size increases gradient noise and can actually worsen instability, not fix exploding gradients. Option C is wrong because adding more layers deepens the network, which can exacerbate vanishing/exploding gradients due to repeated multiplicative Jacobians. Option D is wrong because increasing the learning rate amplifies the update magnitude, making exploding gradients worse and likely causing divergence.

19
MCQmedium

A data scientist is using SageMaker Experiments to track multiple training runs. They want to compare different hyperparameter configurations and visualize the impact on model accuracy. What should they use to track hyperparameters?

A.SageMaker Debugger
B.SageMaker Autopilot
C.SageMaker Experiments
D.SageMaker Model Monitor
AnswerC

SageMaker Experiments records each training run as a trial, logging hyperparameters, metrics and artefacts so runs can be compared and charted. It directly satisfies the requirement to track hyperparameter configurations and visualise their effect on accuracy across multiple jobs.

Why this answer

SageMaker Experiments allows you to log hyperparameters as parameters. They can be viewed and compared across runs in the SageMaker Studio UI.

20
MCQmedium

A company is using SageMaker Autopilot to automatically build a regression model on a dataset. They want to understand which features are most important for the model's predictions. Which feature of Autopilot can provide this insight?

A.Autopilot candidate definition notebook
B.Autopilot model leaderboard
C.Autopilot data exploration report
D.Autopilot explainability report
AnswerD

The Autopilot explainability report uses SHAP values to quantify each feature's contribution to individual predictions, directly satisfying the requirement to identify which features most influence the regression model. It is generated automatically after candidate training, providing the feature-importance insight without manual analysis.

Why this answer

SageMaker Autopilot can generate explainability reports that include feature importance, either through SHAP or other methods, depending on the model type.

21
MCQmedium

A data scientist wants to track hyperparameters, metrics, and artifacts for multiple training runs in SageMaker. They need to compare runs and identify the best performing model. Which SageMaker feature should they use?

A.SageMaker Model Monitor
B.SageMaker Debugger
C.SageMaker Autopilot
D.SageMaker Experiments
AnswerD

SageMaker Experiments groups training runs into experiments and trials, logging hyperparameters, metrics, and artefacts for each run. This enables side-by-side comparison of runs and identification of the best performing model, satisfying the tracking and comparison requirement.

Why this answer

SageMaker Experiments is the feature designed to track, organize, and compare machine learning training runs. It automatically captures hyperparameters, metrics, and artifacts for each run, allowing data scientists to analyze and identify the best performing model. It provides a centralized view of experiments and runs, facilitating reproducibility and collaboration.

Exam trap

The trap is confusing SageMaker Experiments with Debugger or Model Monitor; candidates often think Debugger tracks experiments, but it actually focuses on debugging training jobs, while Experiments is for tracking and comparing runs.

How to eliminate wrong answers

Option A is wrong because SageMaker Model Monitor detects drift and anomalies in deployed models, not tracking training runs. Option B is wrong because SageMaker Debugger provides real-time debugging of training jobs, such as tensor analysis, but does not manage experiment tracking. Option C is wrong because SageMaker Autopilot automates model building and tuning, but it does not provide a dedicated experiment tracking interface for comparing multiple runs.

22
MCQeasy

A company needs to perform time-series forecasting on historical sales data. Which SageMaker built-in algorithm is BEST suited for this task?

A.BlazingText
B.Linear Learner
C.XGBoost
D.DeepAR
AnswerD

DeepAR is a supervised recurrent neural network algorithm purpose-built for time-series forecasting, handling multiple related series and probabilistic predictions. It satisfies the stem's historical sales forecasting requirement, unlike classification, regression, or clustering algorithms that ignore temporal ordering.

Why this answer

DeepAR is a SageMaker built-in algorithm specifically designed for time-series forecasting using recurrent neural networks (RNNs). It is well-suited for predicting future values in a sequence, such as sales data, and can handle multiple related time series. The other algorithms are for classification, regression, or text, not time-series forecasting.

Exam trap

MLA-C01 often tests the distinction between general ML algorithms (Linear Learner, XGBoost) and purpose-built time-series algorithms (DeepAR) — candidates pick XGBoost because it can be used for regression, missing the specialized forecasting requirement.

How to eliminate wrong answers

Option A is wrong because BlazingText is a natural language processing algorithm for text classification and word embeddings, not time-series forecasting. Option B is wrong because Linear Learner is a general-purpose supervised learning algorithm for classification and regression on tabular data, not specialized for sequential time-series forecasting. Option C is wrong because XGBoost is a gradient-boosted decision tree algorithm for classification and regression, which can be used for time-series with feature engineering but is not purpose-built for forecasting like DeepAR.

23
MCQeasy

Which SageMaker feature allows you to automatically tune hyperparameters using Bayesian optimization?

A.SageMaker Autopilot
B.SageMaker Experiments
C.SageMaker Debugger
D.SageMaker Automatic Model Tuning
AnswerD

SageMaker Automatic Model Tuning runs hyperparameter tuning jobs that search parameter ranges using Bayesian optimisation as the default strategy, selecting configurations that improve the objective metric, which is precisely the automated tuning capability the question asks for.

Why this answer

SageMaker Automatic Model Tuning (AMT) is the feature that automatically searches for the best hyperparameters using strategies like Bayesian optimization. It runs multiple training jobs with different hyperparameter combinations and evaluates them against a chosen objective metric to find the optimal set. This reduces the manual effort of tuning and improves model performance.

Exam trap

The trap is confusing Automatic Model Tuning with Autopilot; candidates often think Autopilot is the tuning tool, but Autopilot is a broader AutoML feature, while AMT specifically focuses on hyperparameter optimization.

How to eliminate wrong answers

Option A is wrong because SageMaker Autopilot automates the entire model building process, including feature engineering and algorithm selection, but it uses AMT internally and is not solely focused on hyperparameter tuning. Option B is wrong because SageMaker Experiments tracks and compares runs but does not perform tuning. Option C is wrong because SageMaker Debugger monitors and debugs training jobs, but it does not tune hyperparameters.

24
MCQhard

A machine learning engineer is using SageMaker Automatic Model Tuning to optimize hyperparameters for a regression model. The objective metric is RMSE. The training job is costly, and the engineer wants to find a good configuration quickly. Which tuning strategy should they use?

A.Bayesian optimization
B.Hyperband
C.Random search
D.Grid search
AnswerA

Bayesian optimization builds a probabilistic model of the objective and selects hyperparameter combinations likely to improve RMSE, converging in fewer training jobs than grid or random search. This satisfies the constraint of finding a good configuration quickly while minimising costly training runs.

Why this answer

Bayesian optimization is the SageMaker Automatic Model Tuning strategy that builds a probabilistic model of the objective function and uses it to choose the next hyperparameter combination, which typically finds good configurations in fewer training jobs than random or grid search. This makes it well suited when each training job is expensive and the engineer wants to minimize cost while still optimizing RMSE.

Exam trap

The trap is confusing Hyperband's early-stopping efficiency with Bayesian optimization's sample efficiency; the question emphasizes costly training jobs, which favors Bayesian optimization's ability to learn from each trial.

How to eliminate wrong answers

Option B is wrong because Hyperband is a multi-fidelity strategy that aggressively stops poorly performing trials early, which is efficient but not the default best choice when the goal is to find a good configuration quickly with a costly training job and no mention of early-stopping infrastructure. Option C is wrong because random search samples hyperparameters independently and does not learn from previous trials, so it usually requires more jobs to reach a good configuration. Option D is wrong because grid search exhaustively evaluates a fixed set of combinations, which is the most expensive approach and scales poorly with the number of hyperparameters.

25
MCQmedium

A team is training a PyTorch model using SageMaker and wants to use their own custom training container with a specific PyTorch version. Which approach should they use?

A.Use the SageMaker built-in PyTorch estimator and set the framework_version
B.Use SageMaker Bring Your Own Container (BYOC) with a custom Docker image
C.Use SageMaker Script Mode with a PyTorch script
D.Use SageMaker Autopilot to automatically select the container
AnswerB

BYOC lets the team supply a custom Docker image containing their exact PyTorch version, so the training environment matches their dependency requirements precisely. SageMaker's prebuilt PyTorch containers fix the framework version, which cannot satisfy the stated need for a specific PyTorch build.

Why this answer

When a team needs a custom training container with a specific PyTorch version or custom dependencies that are not available in the built-in SageMaker images, the correct approach is Bring Your Own Container (BYOC), where they build a Docker image and push it to Amazon ECR, then reference it in the SageMaker estimator. This gives full control over the framework version and environment.

Exam trap

The trap is assuming Script Mode allows arbitrary framework versions; in reality Script Mode still relies on a SageMaker-managed container, so only BYOC provides full control over the framework version.

How to eliminate wrong answers

Option A is wrong because the built-in PyTorch estimator only supports the framework versions that SageMaker provides, so it cannot satisfy a requirement for a specific custom PyTorch version. Option C is wrong because Script Mode still uses a SageMaker-provided framework container and only allows the training script to be customized, not the underlying framework version or dependencies. Option D is wrong because SageMaker Autopilot is an automated machine learning feature that selects algorithms and containers automatically, which is the opposite of specifying a custom container.

26
MCQeasy

A data scientist is using SageMaker to train a linear regression model on a dataset with a large number of features. They notice that the model's training time is long and want to speed it up by using a more efficient algorithm. They decide to use the SageMaker built-in Linear Learner algorithm. Which of the following is a key advantage of using the Linear Learner algorithm in SageMaker for this scenario?

A.It uses a built-in automatic model tuning feature that always finds the optimal hyperparameters without user intervention.
B.It automatically performs feature engineering and selection, reducing the need for manual preprocessing.
C.It is specifically designed for deep learning models and can leverage GPUs for faster training.
D.It supports both regression and classification and can handle large-scale datasets efficiently using distributed training.
AnswerD

SageMaker Linear Learner is designed for large-scale linear models and supports both regression and classification. It can be trained in distributed mode across multiple instances, which speeds up training on large datasets. This makes it a suitable choice for the data scientist's scenario of a large number of features and long training time.

Why this answer

SageMaker Linear Learner is optimized for large-scale linear models and supports both regression and classification. It can be trained in distributed mode across multiple instances, which significantly reduces training time for datasets with many features. This makes it a suitable choice for the data scientist's scenario.

Exam trap

The trap here is assuming that Linear Learner automatically performs feature engineering or hyperparameter tuning, which it does not; these are separate steps.

27
MCQeasy

A company wants to detect anomalies in login events from a large user base, focusing on unusual patterns that may indicate compromised accounts. Which SageMaker built-in algorithm is most suitable for this task?

A.IP Insights
B.K-Means
C.DeepAR
D.Factorisation Machines
AnswerA

IP Insights learns normal patterns of entity-to-IP associations, flagging unusual login behaviour such as an account authenticating from an atypical address. This directly targets compromised-account detection across a large user base, unlike classification or forecasting algorithms that require labelled anomaly data.

Why this answer

IP Insights is a SageMaker built-in unsupervised algorithm designed to learn the relationship between user entities and IP addresses, making it ideal for detecting anomalous login events such as a user logging in from an unusual IP or a compromised account accessing from a new location. It is specifically built for the login-anomaly use case described.

Exam trap

The trap is confusing general anomaly detection algorithms with IP Insights, which is purpose-built for user-IP login anomaly detection and is the only option that directly addresses the scenario.

How to eliminate wrong answers

Option B is wrong because K-Means is a clustering algorithm for grouping similar data points, not for detecting anomalous login patterns tied to user-IP relationships. Option C is wrong because DeepAR is a time-series forecasting algorithm, not an anomaly detection algorithm for login events. Option D is wrong because Factorization Machines are used for recommendation and classification tasks with sparse data, not for user-IP login anomaly detection.

28
MCQmedium

A machine learning engineer runs a training job and notices the loss is NaN after a few steps. Which SageMaker Debugger rule can help identify this issue?

A.Overfit
B.Exploding gradients
C.Dead ReLU
D.Class imbalance
AnswerB

Exploding gradients detects rapidly increasing gradient magnitudes that cause numerical overflow, producing NaN loss during training. SageMaker Debugger's built-in rule monitors gradient tensors across steps and raises an alert when values exceed thresholds, directly diagnosing the NaN loss the engineer observed.

Why this answer

The SageMaker Debugger built-in 'ExplodingGradients' rule monitors gradient tensors during training and detects when gradient values grow excessively large, which is a classic cause of NaN loss values. When gradients explode, weight updates become enormous, causing numerical overflow and NaN in the loss. The ExplodingGradients rule flags this condition so the engineer can apply gradient clipping or reduce the learning rate.

Exam trap

MLA-C01 often tests the mapping between training symptoms and the specific Debugger rule name — candidates confuse 'Overfit' with 'ExplodingGradients' because both relate to loss behavior, but only ExplodingGradients addresses NaN loss from gradient magnitude.

How to eliminate wrong answers

Option A is wrong because the Overfit rule detects when training loss decreases while validation loss increases, indicating overfitting — it does not detect NaN loss or gradient magnitude issues. Option C is wrong because the DeadReLU rule detects when ReLU activations output zero for most inputs, causing dead neurons and stalled learning, not NaN loss from exploding gradients. Option D is wrong because ClassImbalance is not a SageMaker Debugger built-in rule for detecting NaN loss; class imbalance is a data distribution issue addressed through sampling or loss weighting, not a gradient-monitoring rule.

29
MCQhard

A machine learning engineer is training a deep learning model on SageMaker using the PyTorch estimator. The training job fails with an error indicating that the GPU memory is exhausted. The engineer wants to reduce memory usage without changing the model architecture. Which SageMaker feature should the engineer use?

A.SageMaker data parallelism
B.SageMaker Debugger
C.SageMaker Automatic Model Tuning
D.SageMaker model parallelism
AnswerD

SageMaker model parallelism allows training of large models by partitioning the model across multiple GPUs. This reduces the memory footprint on each GPU, enabling training of models that would otherwise not fit. It is specifically designed to address memory constraints without altering the model architecture, making it the correct choice for this scenario.

Why this answer

SageMaker model parallelism partitions a large model across multiple GPUs, reducing the memory required on each GPU. This directly addresses GPU memory exhaustion without changing the model architecture. Data parallelism replicates the model, which does not help with memory constraints, and the other services are for monitoring or tuning, not memory reduction.

Exam trap

The trap here is confusing data parallelism with model parallelism; data parallelism replicates the model and does not reduce per-GPU memory usage.

30
Multi-Selecthard

A data science team is using SageMaker Experiments to track hyperparameters and metrics for a model training project. They need to compare multiple trials and identify the best model. Which THREE actions are part of a typical workflow? (Select THREE.)

Select 3 answers
A.Log hyperparameters and metrics using the SageMaker SDK
B.Generate confusion matrices for each trial automatically
C.Use the SageMaker SDK to list trials and compare metrics
D.Create an experiment in SageMaker Experiments
E.Automatically deploy the best trial to an endpoint
AnswersA, C, D

Logging hyperparameters and metrics through the SageMaker SDK writes each trial's parameters and metric values into the experiment run, satisfying the need to capture comparable data across trials. Without this instrumentation, no run records exist for the SDK's analytics and visualisation tools to rank or compare, so identifying the best model becomes impossible.

Why this answer

Option D is correct because a SageMaker Experiments workflow begins by creating an experiment (via the SageMaker SDK, e.g., Experiment.create) that serves as the top-level container grouping runs and trials for the project. Option A is correct because during training the team logs hyperparameters and metrics to the experiment using the SageMaker SDK (for example with Run/Tracker and log_parameter/log_metric calls), which is what makes trials comparable. Option C is correct because the SDK provides APIs such as Experiment.list_runs or Trial/TrialComponent lookups and metric retrieval so the team can list trials and compare their metrics to identify the best model.

Option B does not belong because SageMaker Experiments does not automatically generate confusion matrices for each trial; any such artifact must be computed and logged explicitly by the training code. Option E does not belong because automatic deployment of the best trial to an endpoint is not part of the Experiments tracking workflow; deployment is a separate step typically handled via the SageMaker model registry, pipelines, or manual deployment.

Exam trap

MLA-C01 often tests what SageMaker Experiments does versus what adjacent services do — the trap is assuming Experiments auto-generates evaluation artifacts or auto-deploys models, which are responsibilities of other tools.

31
MCQeasy

A data scientist wants to train a binary classification model using Amazon SageMaker with a built-in algorithm that performs well on tabular data. Which algorithm should they choose?

A.Image Classification
B.DeepAR
C.XGBoost
D.BlazingText
AnswerC

XGBoost is a gradient-boosted decision tree algorithm built into Amazon SageMaker, and it excels on tabular datasets for binary classification through boosted ensemble learning. It directly satisfies the stem's requirement for a built-in algorithm performing well on tabular data, unlike linear or deep learning alternatives.

Why this answer

XGBoost is a built-in Amazon SageMaker algorithm optimized for tabular and structured data, and it consistently performs well on binary classification tasks. It implements a gradient-boosted decision tree framework that handles missing values, categorical features, and class imbalance reasonably well out of the box. For a binary classification problem on tabular data, XGBoost is the standard choice among SageMaker built-in algorithms.

Exam trap

MLA-C01 often tests algorithm-to-task mapping — candidates may pick DeepAR or BlazingText because they sound sophisticated, but the exam expects recognition that XGBoost is the go-to built-in for tabular binary classification.

How to eliminate wrong answers

Option A is wrong because Image Classification is designed for computer vision tasks on image data, not tabular binary classification. Option B is wrong because DeepAR is a time-series forecasting algorithm, not a classifier for tabular data. Option D is wrong because BlazingText is a text classification and word embedding algorithm for natural language data, not tabular binary classification.

32
MCQhard

A company is training a deep learning model using SageMaker and wants to reduce the time spent on data loading from Amazon S3 during training. The training dataset consists of many small files. Which approach is MOST effective to accelerate data loading?

A.Use SageMaker Pipe mode to stream data directly from S3.
B.Increase the number of training instances in the cluster.
C.Enable SageMaker Debugger to monitor data loading metrics.
D.Package the small files into a few large files (e.g., TFRecord or RecordIO) and use File mode.
AnswerD

Combining many small files into a few large files reduces the number of S3 requests and improves I/O throughput. Using File mode then downloads these larger files quickly to the training instance's storage, allowing the training script to read them efficiently. This approach is the most effective for accelerating data loading when dealing with many small files.

Why this answer

Many small files cause high S3 request overhead. Consolidating them into a few large files in a format like TFRecord or RecordIO reduces the number of requests and allows efficient sequential reads. File mode then downloads these large files quickly to local storage, significantly speeding up data loading compared to streaming many small files or adding instances.

Exam trap

The trap here is assuming that Pipe mode always accelerates data loading, but for many small files its per-file overhead can make it slower than consolidating files and using File mode.

33
Multi-Selectmedium

A machine learning engineer is preparing a training job on SageMaker with a custom Docker container. Which TWO actions are required to use the container with SageMaker? (Choose TWO.)

Select 2 answers
A.Push the container image to Amazon ECR
B.Use a SageMaker Estimator with image_uri parameter pointing to the ECR image
C.Upload the container image to Amazon S3
D.Enable SageMaker Debugger to monitor the custom container
E.Register the container in SageMaker Model Registry
AnswersA, B

SageMaker pulls custom training images from Amazon ECR, so the image must be pushed there and its URI supplied to the estimator. This satisfies the requirement to host the container where SageMaker can access it.

Why this answer

Option A is correct because SageMaker can only pull custom training container images from Amazon ECR, so the image must be built and pushed to an ECR repository that the SageMaker execution role can access. Option B is correct because the SageMaker Estimator must be configured with the image_uri parameter set to the ECR image URI (for example, <account>.dkr.ecr.<region>.amazonaws.com/<repo>:<tag>) so SageMaker knows which container to run for training. Option C is incorrect because container images cannot be stored or executed from Amazon S3; S3 is used for training data and model artifacts, not Docker images.

Option D is incorrect because SageMaker Debugger is an optional monitoring and profiling feature, not a requirement for using a custom container. Option E is incorrect because the SageMaker Model Registry is used to catalog trained models for governance and deployment, and is not needed to run a custom training container.

Exam trap

The trap here is confusing the storage location for container images (ECR) with other AWS storage services like S3, and assuming that optional monitoring or registry features are required for custom container usage.

34
Multi-Selectmedium

A team wants to evaluate a binary classification model for credit risk. They need to understand the trade-off between false positives and false negatives. Which TWO metrics should they use? (Select TWO.)

Select 2 answers
A.Recall
B.Precision
C.NDCG
D.AUC-ROC
E.RMSE
AnswersA, B

Recall measures the proportion of actual positives correctly identified, directly exposing false negatives — missed credit risks. Pairing it with precision, which exposes false positives, quantifies the trade-off the team needs. Recall alone satisfies the false-negative half of the stem's requirement, making it one of the two correct metrics.

Why this answer

Recall (A) is correct because it measures the proportion of actual positives (e.g., true defaults) that the model correctly identifies, directly quantifying the cost of false negatives, which is critical in credit risk where missing a defaulter is costly. Precision (B) is correct because it measures the proportion of predicted positives that are actually positive, directly quantifying the cost of false positives, such as rejecting good customers; together, recall and precision expose the false-positive/false-negative trade-off. NDCG (C) is a ranking-quality metric for graded relevance in search/recommendation, not binary classification.

AUC-ROC (D) summarizes ranking performance across thresholds but does not separately expose the precision/recall trade-off the team wants to evaluate. RMSE (E) is a regression error metric and is inappropriate for binary classification.

Exam trap

The trap here is selecting AUC-ROC as a metric for understanding the trade-off between false positives and false negatives, when AUC-ROC provides a threshold-independent summary rather than the direct trade-off that precision and recall offer.

35
MCQmedium

A company wants to use SageMaker Autopilot to automatically build a binary classification model. Which output does Autopilot provide to help understand model decisions?

A.A leaderboard of models with only accuracy metrics
B.An explainability report with feature importance
C.A confusion matrix for each candidate model
D.A SHAP values summary plot for each trial
AnswerB

Autopilot generates an explainability report quantifying each feature's contribution to predictions, typically using SHAP values. This reveals which input variables drove the binary classification decisions, giving the transparency the company requires without manual model interrogation.

Why this answer

SageMaker Autopilot automatically generates an explainability report that includes feature importance, which helps users understand which features influenced the model's predictions. This report is produced for the best model and provides insights into model decisions, aligning with the requirement to understand model decisions. Autopilot's explainability report is a built-in feature that leverages SHAP values to compute feature attributions, but it is presented as a report, not just a raw plot.

Exam trap

MLA-C01 often tests the misconception that Autopilot automatically provides detailed diagnostic outputs like confusion matrices or SHAP plots for every candidate model, when in fact it focuses on a leaderboard and an explainability report for the best model.

How to eliminate wrong answers

Option A is wrong because Autopilot's leaderboard includes multiple metrics (e.g., accuracy, F1, AUC) for each candidate model, not only accuracy. Option C is wrong because while a confusion matrix can be generated for a model, Autopilot does not automatically provide a confusion matrix for each candidate model as a standard output; it focuses on the leaderboard and explainability report. Option D is wrong because Autopilot does not provide a SHAP values summary plot for each trial; it provides an explainability report for the best model, which includes feature importance based on SHAP, but not a separate plot for every trial.

36
MCQeasy

Which SageMaker built-in algorithm should be used for forecasting time series data with seasonal patterns?

A.IP Insights
B.BlazingText
C.DeepAR
D.Factorization Machines
AnswerC

DeepAR is a supervised recurrent neural network algorithm built into SageMaker that learns from multiple related time series and models seasonality and uncertainty, producing probabilistic forecasts, which matches the requirement for forecasting data exhibiting seasonal patterns.

Why this answer

DeepAR is a SageMaker built-in algorithm specifically designed for time series forecasting using recurrent neural networks (RNNs). It excels at handling complex seasonal patterns and can incorporate additional features, making it ideal for forecasting time series data with seasonality. It is the only built-in algorithm among the options that is purpose-built for time series forecasting.

Exam trap

MLA-C01 often tests the confusion between algorithms for different tasks, where candidates might choose BlazingText for time series because it sounds like it handles sequences, but it is actually for text.

How to eliminate wrong answers

Option A is wrong because IP Insights is used for identifying anomalous IP address usage patterns, not for time series forecasting. Option B is wrong because BlazingText is a natural language processing algorithm for text classification and word embeddings, unrelated to time series. Option D is wrong because Factorization Machines are used for recommendation systems and classification tasks, not for sequential time series forecasting.

37
MCQeasy

A machine learning engineer wants to reduce training costs by using excess EC2 capacity. Which instance purchasing option should they choose for SageMaker training jobs?

A.Reserved Instances
B.On-Demand Instances
C.Dedicated Instances
D.Spot Instances
AnswerD

Spot Instances use spare EC2 capacity at steep discounts, directly satisfying the cost-reduction constraint. SageMaker training jobs support managed spot training with checkpointing, so interrupted instances resume rather than restart. This suits fault-tolerant training workloads, unlike On-Demand or Reserved capacity, which bill for continuity regardless of interruption tolerance.

Why this answer

Spot Instances use AWS's spare EC2 capacity and are discounted up to 90% versus On-Demand, making them the correct choice when the workload is interruptible. SageMaker training jobs support Managed Spot Training, which automatically checkpoints and resumes jobs when capacity is reclaimed, so the engineer gets the cost savings without losing training progress. Reserved Instances and Dedicated Instances do not offer the same spot-level discount for interruptible training.

Exam trap

MLA-C01 often tests the confusion between Reserved Instances (commitment discount for steady workloads) and Spot Instances (discount for interruptible workloads) — candidates pick Reserved because it sounds 'cheaper' without considering the interruptibility requirement.

How to eliminate wrong answers

Option A is wrong because Reserved Instances require a 1- or 3-year commitment and are designed for steady-state, always-on workloads — they provide a billing discount but no mechanism for using excess capacity, and they are not the cost-optimal choice for interruptible training. Option B is wrong because On-Demand Instances are the most expensive option and offer no discount for tolerating interruptions, defeating the stated goal of reducing training costs. Option C is wrong because Dedicated Instances are physical-host-isolated instances priced at a premium for compliance/licensing reasons, not a cost-reduction mechanism for training.

38
MCQmedium

A machine learning engineer is preparing a training dataset in Amazon SageMaker for a binary classification model. The dataset is stored as a single CSV file in Amazon S3 and contains 12 categorical features with high cardinality (thousands of unique values each). The engineer wants to avoid the curse of dimensionality and reduce training time while preserving predictive power. Which preprocessing approach should be used with the SageMaker built-in XGBoost algorithm?

A.Use target encoding (mean encoding) for the categorical features, computed within cross-validation folds to prevent leakage.
B.Convert the categorical features to integer codes using LabelEncoder and pass them directly to XGBoost.
C.Hash the categorical features into a fixed number of buckets using a hashing trick, then one-hot encode the hashed values.
D.Apply one-hot encoding to all categorical features before training.
AnswerA

Target encoding replaces each category with a statistic (e.g., mean of the target) and is well-suited for high-cardinality features. Computing it within cross-validation folds prevents target leakage, which would otherwise inflate validation performance. This reduces dimensionality and training time while retaining predictive signal, directly addressing the engineer's goals without creating thousands of sparse columns.

Why this answer

High-cardinality categorical features require an encoding that avoids exponential feature expansion. Target encoding summarizes each category by its relationship to the target, reducing dimensionality and training time. Performing it within cross-validation folds prevents data leakage, ensuring that validation metrics remain honest.

This approach is compatible with the SageMaker built-in XGBoost algorithm, which accepts numerical features and can benefit from the reduced feature space.

Exam trap

The trap here is assuming that one-hot encoding is always the default for categorical features, overlooking the dimensionality explosion with high-cardinality data.

39
MCQmedium

A team wants to use a custom PyTorch training script in SageMaker. They need to install additional Python packages not included in the base PyTorch container. Which approach should they take?

A.Use SageMaker Script Mode with a custom Dockerfile
B.Build a custom container with Docker
C.Install packages using a lifecycle configuration
D.Use the SageMaker PyTorch estimator with a requirements.txt file
AnswerD

The PyTorch estimator accepts a requirements.txt file, which SageMaker installs into the container before training begins. This adds the extra Python packages without building a custom image, satisfying the need for dependencies absent from the base container.

Why this answer

The SageMaker PyTorch estimator supports a 'requirements.txt' file in the source directory (specified via 'source_dir'), which SageMaker automatically installs into the training container before the script runs. This is the simplest, AWS-recommended way to add Python packages without building a custom image. It preserves the managed PyTorch container's optimizations while adding only the extra dependencies.

Exam trap

MLA-C01 often tests the boundary between Script Mode with requirements.txt (simple Python deps) and custom containers (OS-level or framework changes) — candidates over-engineer by choosing custom Docker builds when requirements.txt suffices.

How to eliminate wrong answers

Option A is wrong because SageMaker Script Mode does not accept a custom Dockerfile directly — Script Mode uses a pre-built AWS container, and while you can extend it, the Dockerfile approach is the same as building a custom container (Option B), not a distinct Script Mode feature. Option B is wrong because building a custom container with Docker is a heavier, more maintenance-intensive approach that is only necessary when you need OS-level packages, custom CUDA libraries, or a non-PyTorch framework — for simple Python package additions, requirements.txt is preferred. Option C is wrong because lifecycle configurations apply to SageMaker notebook instances (and some Studio apps), not to training jobs — they run shell scripts at notebook start/stop and have no effect on the training container.

40
MCQmedium

A company uses SageMaker Clarify to detect bias in their training data. They find that the model has a high disparate impact for a protected attribute. What should they do to mitigate this bias during training?

A.Use SageMaker Clarify’s built-in bias mitigation algorithm during training
B.Remove the protected attribute from the dataset
C.Increase the model complexity to capture more patterns
D.Preprocess the data using techniques like reweighing or resampling to reduce bias
AnswerD

Reweighing assigns weights to training examples so the protected and unprotected groups contribute proportionally, while resampling adjusts class balance. Applied before training, these preprocessing techniques reduce the disparate impact measured by SageMaker Clarify at its source.

Why this answer

SageMaker Clarify detects bias but does not automatically mitigate it during training. To reduce disparate impact, the correct approach is to preprocess the training data using bias mitigation techniques such as reweighing (assigning weights to instances to balance outcomes across groups) or resampling (oversampling underrepresented groups or undersampling overrepresented ones). These methods adjust the data distribution before training, directly addressing the source of bias and reducing disparate impact.

Exam trap

MLA-C01 often tests the misconception that SageMaker Clarify can automatically mitigate bias during training, when in fact it only detects and explains bias; mitigation requires separate preprocessing, in-processing, or post-processing techniques.

How to eliminate wrong answers

Option A is wrong because SageMaker Clarify is a bias detection and explainability tool, not a bias mitigation algorithm; it does not modify training or apply corrections automatically. Option B is wrong because simply removing the protected attribute does not eliminate bias—other features may act as proxies, and the model can still produce disparate outcomes. Option C is wrong because increasing model complexity can exacerbate bias by fitting to spurious correlations and does not address the underlying data imbalance.

41
MCQhard

A machine learning engineer is deploying a model to a SageMaker endpoint and wants to ensure that the model's predictions can be explained. The engineer needs to understand which features contributed most to each prediction. Which SageMaker feature should be used?

A.SageMaker Model Monitor
B.SageMaker Clarify
C.SageMaker Debugger
D.SageMaker Experiments
AnswerB

SageMaker Clarify provides explainability by computing feature attributions using algorithms like SHAP. It helps understand which features contributed most to individual predictions. This directly meets the requirement to explain predictions. Clarify can be integrated with SageMaker endpoints and provides both global and local explanations.

Why this answer

SageMaker Clarify is specifically designed to provide feature attributions and explain model predictions. It uses SHAP to compute the contribution of each feature to a prediction, which is exactly what the engineer needs. Other services like Debugger, Model Monitor, and Experiments serve different purposes and do not offer prediction-level explainability.

Exam trap

The trap here is confusing monitoring or debugging services with explainability, or assuming that Model Monitor provides feature importance.

42
MCQeasy

A machine learning engineer wants to automatically track hyperparameters, metrics, and artifacts for multiple training runs. Which SageMaker feature should they use?

A.SageMaker Debugger
B.SageMaker Model Monitor
C.SageMaker Experiments
D.SageMaker Clarify
AnswerC

SageMaker Experiments automatically captures hyperparameters, metrics, and artifacts across training runs, satisfying the requirement to track multiple runs without manual logging. It records each trial as a run within an experiment, enabling comparison and reproducibility.

Why this answer

SageMaker Experiments is the feature designed to track, organize, and compare machine learning training runs, including hyperparameters, metrics, and artifacts. It automatically logs these elements when integrated with SageMaker training jobs, enabling reproducibility and experiment comparison. This directly matches the requirement to track multiple runs.

Exam trap

MLA-C01 often tests the confusion between SageMaker Experiments (tracking) and SageMaker Debugger (debugging) — candidates pick Debugger because 'tracking training' sounds like debugging.

How to eliminate wrong answers

Option A is wrong because SageMaker Debugger focuses on real-time debugging of training jobs (tensor analysis, profiling), not on tracking hyperparameters and artifacts across runs. Option B is wrong because SageMaker Model Monitor detects drift and quality issues in deployed models, not training run metadata. Option D is wrong because SageMaker Clarify provides bias detection and explainability, not experiment tracking.

43
MCQmedium

A financial services company trains multiple models on SageMaker and needs to track hyperparameters, metrics, and artifacts for each experiment. Which SageMaker feature should they use to organize and compare experiments?

A.SageMaker Model Registry
B.SageMaker Pipelines
C.SageMaker Experiments
D.SageMaker Debugger
AnswerC

SageMaker Experiments groups training runs into experiments and trials, automatically capturing hyperparameters, metrics, and artifacts for each job. This directly satisfies the requirement to organise and compare runs across multiple models, providing the lineage and side-by-side analysis the financial services company needs.

Why this answer

SageMaker Experiments is purpose-built for tracking, organizing, and comparing machine learning experiments — it captures hyperparameters, metrics, input datasets, and output artifacts for each trial and groups them into experiments and runs. This lets data scientists visualize and compare results across many training jobs in a single view.

Exam trap

MLA-C01 often tests the confusion between SageMaker Experiments (tracking/comparing runs) and Model Registry (versioning/approving models) — both involve 'models' but serve different lifecycle stages.

How to eliminate wrong answers

Option A is wrong because Model Registry is for cataloging, versioning, and approving trained models for deployment, not for tracking training-time hyperparameters and metrics. Option B is wrong because Pipelines is an orchestration service for CI/CD-style ML workflows, not an experiment-tracking tool. Option D is wrong because Debugger focuses on detecting training anomalies (vanishing gradients, overfitting) via tensor analysis, not on organizing and comparing experiments.

44
MCQeasy

Which SageMaker built-in algorithm is specifically designed for time series forecasting?

A.Image Classification
B.BlazingText
C.DeepAR
D.XGBoost
AnswerC

DeepAR is a supervised recurrent neural network algorithm built into Amazon SageMaker specifically for time series forecasting. It learns from many related series, producing probabilistic forecasts with quantiles, which matches the requirement for a purpose-built forecasting algorithm rather than generic regression or classification.

Why this answer

DeepAR is a SageMaker built-in algorithm based on recurrent neural networks (RNNs) specifically designed for time series forecasting. It learns from historical time series data and can predict future values, making it the correct choice for forecasting tasks. It supports both univariate and multivariate time series and can incorporate related time series.

Exam trap

MLA-C01 often tests the confusion between general-purpose algorithms (XGBoost) and purpose-built forecasting algorithms (DeepAR) — candidates pick XGBoost because it can be adapted for time series, but the question asks for one 'specifically designed' for forecasting.

How to eliminate wrong answers

Option A is wrong because Image Classification is a computer vision algorithm for categorizing images, unrelated to time series. Option B is wrong because BlazingText is a natural language processing algorithm for text classification and word embeddings. Option D is wrong because XGBoost is a general-purpose gradient boosting algorithm for classification and regression, not specifically designed for time series forecasting.

45
MCQhard

A company is fine-tuning a large language model using LoRA on SageMaker. They want to reduce GPU memory usage during training. Which configuration change would help?

A.Use QLoRA (quantized LoRA) with 4-bit quantization
B.Enable gradient accumulation
C.Increase the sequence length
D.Increase the batch size
AnswerA

QLoRA quantises the frozen base model weights to 4-bit, so they occupy roughly a quarter of the memory that 16-bit weights require, while LoRA adapters remain trainable in higher precision. This directly satisfies the stem's constraint of reducing GPU memory during fine-tuning, with minimal accuracy loss.

Why this answer

QLoRA extends LoRA by quantizing the frozen base model weights to 4-bit (typically NF4) while keeping LoRA adapters in higher precision, dramatically reducing GPU memory required for fine-tuning. This lets you train larger models on smaller GPUs with minimal accuracy loss, directly addressing the goal of reducing memory usage. It is the standard memory-optimization technique for LoRA fine-tuning on SageMaker.

Exam trap

The trap is choosing gradient accumulation because it is a common memory-related technique — but MLA-C01 tests that only quantization (QLoRA) reduces the base model's memory footprint, while accumulation and batch/sequence changes affect activation memory differently.

How to eliminate wrong answers

Option B is wrong because gradient accumulation reduces effective batch size pressure by summing gradients over steps, but it does not reduce the memory footprint of model weights, activations, or optimizer states — it mainly helps simulate larger batches. Option C is wrong because increasing sequence length increases activation memory quadratically in attention, making memory usage worse, not better. Option D is wrong because increasing batch size increases activation and gradient memory, raising GPU memory consumption rather than lowering it.

46
MCQhard

A data scientist trains a binary classification model using SageMaker and obtains an AUC of 0.95 on the test set. However, the precision-recall curve shows low precision for high recall thresholds. The business requires a model that performs well on the minority class. Which metric should the team primarily optimize during hyperparameter tuning?

A.Accuracy
B.F1-score on the validation set
C.AUC (Area Under the ROC Curve)
D.Log loss
AnswerB

F1-score balances precision and recall, directly addressing the low-precision-at-high-recall problem and the minority-class requirement. AUC aggregates performance across all thresholds and can look strong despite poor minority-class precision, so tuning against F1 on the validation set targets the constraint the business actually cares about.

Why this answer

The F1-score is the harmonic mean of precision and recall, so it directly penalizes models that achieve high recall at the cost of low precision — exactly the failure mode described. Since the business cares about the minority class, optimizing F1 during hyperparameter tuning forces the model to balance both false positives and false negatives on that class. AUC-ROC can remain deceptively high (0.95) even when precision collapses at high recall because it aggregates performance across all thresholds and is dominated by the majority class.

Exam trap

MLA-C01 often tests the misconception that a high AUC-ROC means the model is good for imbalanced data, when in fact AUC can be high while precision at the required recall is unusable — the fix is to tune on F1 or PR-AUC, not AUC.

How to eliminate wrong answers

Option A is wrong because accuracy is misleading on imbalanced binary classification — a model predicting the majority class exclusively can score >95% accuracy while completely failing the minority class. Option C is wrong because AUC-ROC summarizes ranking quality across all thresholds and is insensitive to class imbalance; a high AUC does not guarantee usable precision at the operating threshold, which is precisely the symptom described. Option D is wrong because log loss measures probabilistic calibration, not thresholded classification performance on the minority class, so minimizing it does not directly optimize precision-recall trade-off.

47
MCQhard

A company needs to detect bias in a pre-trained model before deployment. They want to compute metrics like disparate impact and equal opportunity difference. Which AWS service should they use?

A.SageMaker Clarify
B.Amazon Rekognition
C.SageMaker Model Monitor
D.SageMaker Debugger
AnswerA

SageMaker Clarify computes pre-training and post-training bias metrics, including disparate impact and equal opportunity difference, directly against a pre-trained model. It satisfies the stem's requirement to detect bias before deployment by running bias analysis on model predictions without retraining, unlike SageMaker Model Monitor, which only tracks drift on live endpoints.

Why this answer

SageMaker Clarify is purpose-built to detect bias in datasets and models, computing pre-training and post-training bias metrics such as disparate impact (DI) and equal opportunity difference (EOD). It integrates with SageMaker training and hosting, and can also generate explainability reports using SHAP values. Because the question asks specifically for bias metrics like DI and EOD, Clarify is the correct service.

Exam trap

MLA-C01 often tests the confusion between Clarify (bias/explainability) and Model Monitor (drift/quality), so candidates who see 'model' and pick Model Monitor miss the bias-specific requirement.

How to eliminate wrong answers

Option B is wrong because Amazon Rekognition is a computer-vision service for image and video analysis, not a bias-detection tool. Option C is wrong because SageMaker Model Monitor detects data drift and model quality degradation in production, not pre-deployment bias metrics. Option D is wrong because SageMaker Debugger focuses on training-job debugging (tensor inspection, vanishing gradients), not fairness or bias analysis.

48
MCQmedium

A team is training a large language model using PyTorch on SageMaker. They need to reduce training time. The model has 10 billion parameters. Which distributed training strategy should they use?

A.Data parallelism with Horovod
B.Single GPU training
C.Use a larger instance type without parallelism
D.Model parallelism with SageMaker distributed
AnswerD

SageMaker distributed model parallelism partitions the 10-billion-parameter model across GPUs, holding each shard separately so the full weight set need not fit on one device. This suits the stem's large language model, where data parallelism would replicate all parameters per GPU and exhaust memory.

Why this answer

Model parallelism with SageMaker distributed is correct because a 10-billion-parameter model cannot fit into the memory of a single GPU, so the model itself must be partitioned across multiple GPUs/devices. SageMaker's distributed model parallelism library shards model layers and parameters across instances, enabling training of models that exceed single-device memory. This directly addresses the memory bottleneck that prevents scaling with data parallelism alone.

Exam trap

MLA-C01 often tests the misconception that adding more GPUs via data parallelism solves all scaling problems, when in fact model size exceeding single-device memory requires model parallelism.

How to eliminate wrong answers

Option A is wrong because Horovod data parallelism replicates the full model on every worker, so a 10B-parameter model will not fit in a single GPU's memory regardless of how many workers are added. Option B is wrong because single-GPU training cannot hold a 10B-parameter model in memory and offers no scaling path. Option C is wrong because simply choosing a larger instance type does not solve the fundamental memory constraint for very large models and does not provide the multi-device sharding needed for efficient training.

49
MCQhard

A company is training a deep learning model with SageMaker and wants to reduce training time by using pipe mode instead of file mode for a large dataset stored as TFRecord files in Amazon S3. After switching the estimator's input mode to Pipe, the training job fails immediately with a dataset format error. The data scientist confirms the files are valid TFRecords and that the same script works with File mode. What is the most likely cause?

A.The S3 bucket and the training job are in different AWS Regions, so Pipe mode cannot stream the objects across Regions.
B.Pipe mode only supports RecordIO-encoded data for built-in algorithms, so TFRecord files must be converted to RecordIO before use.
C.The estimator is missing the enable_network_isolation parameter, which is required for Pipe mode to establish the streaming connection to S3.
D.The training script is still trying to read files from the local filesystem path instead of consuming the named pipe provided by SageMaker.
AnswerD

In Pipe mode, SageMaker streams channel data through a named pipe (FIFO) whose path is given by SM_CHANNEL_TRAIN, not as ordinary files. A script that calls standard file listing or opens a directory will fail because the pipe looks like a single stream. The script must read from the pipe sequentially, which explains why File mode worked and Pipe mode does not.

Why this answer

Pipe mode exposes training data as a named pipe rather than as files on disk. A script written for File mode typically lists files and opens them by path, which fails when SM_CHANNEL_TRAIN points to a FIFO. To use Pipe mode, the script must consume the stream sequentially, for example with a framework reader designed for pipes.

Format conversion and Region settings are unrelated to this error.

Exam trap

The trap here is assuming Pipe mode is a drop-in replacement for File mode, when scripts must be adapted to read from a stream instead of a directory.

50
MCQmedium

A company wants to build a customer service chatbot that answers questions about their internal policy documents. The documents are updated monthly, and the team cannot afford to retrain a model each time. Which approach is MOST appropriate?

A.Use a larger foundation model with a longer context window and paste all documents into each prompt
B.Use Retrieval-Augmented Generation (RAG) with the policy documents indexed in a vector store
C.Fine-tune a base LLM on the policy documents monthly
D.Train a custom model from scratch on the policy documents each month
AnswerB

RAG retrieves relevant passages from the indexed policy documents at query time and supplies them as context to the model, so monthly updates only require re-indexing the vector store rather than retraining. This satisfies the constraint that retraining is unaffordable.

Why this answer

RAG allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining.

51
MCQmedium

A team is building a fraud detection model using SageMaker and wants to detect anomalies in user login events. Which SageMaker built-in algorithm is specifically designed for anomaly detection in event-based data?

A.Factorisation Machines
B.IP Insights
C.Random Cut Forest
D.K-Means
AnswerB

IP Insights learns normal patterns of entity-to-IP address associations and flags unusual login events, making it the built-in algorithm designed for anomaly detection in event-based data. It differs from unsupervised outlier algorithms that operate on tabular feature vectors rather than entity-IP interaction history.

Why this answer

IP Insights is a SageMaker built-in algorithm specifically designed to learn patterns of IP address usage and detect anomalous behaviour in event-based data such as login events. It embeds IP addresses and entities (e.g., user IDs) into a vector space and flags deviations, making it ideal for fraud detection on login events. The other algorithms serve different purposes.

Exam trap

MLA-C01 often tests the distinction between IP Insights (IP/entity anomaly) and Random Cut Forest (general numeric anomaly), so candidates who see 'anomaly' and pick RCF miss the IP-event specificity.

How to eliminate wrong answers

Option A is wrong because Factorization Machines are used for recommendation and click-through-rate prediction, not anomaly detection in event data. Option C is wrong because Random Cut Forest is a general-purpose anomaly detection algorithm for numeric/tabular data, not specifically for IP-entity event patterns. Option D is wrong because K-Means is a clustering algorithm for grouping data, not for detecting anomalies in login events.

52
Multi-Selecthard

A company wants to use SageMaker to fine-tune a foundation model for a text generation task using RLHF (Reinforcement Learning from Human Feedback). Which THREE components are required in the RLHF pipeline?

Select 3 answers
A.A LoRA adapter for parameter-efficient fine-tuning
B.A pre-trained base model
C.A classifier to distinguish generated text from real text
D.A reward model trained on human preferences
E.A reinforcement learning algorithm such as PPO
AnswersB, D, E

RLHF starts from a pre-trained base model, which supplies the generative prior that the policy is later refined from. Without it, there is no initial language model to sample responses from or to update during reinforcement learning, so the pipeline cannot begin.

Why this answer

Option B is correct because RLHF always starts from a pre-trained foundation model (the policy) that already has broad language capabilities; this base model is then fine-tuned with human preference signals rather than trained from scratch. Option D is correct because RLHF requires a reward model trained on human preference comparisons (e.g., chosen vs. rejected responses) to serve as a differentiable proxy for human judgment during optimization. Option E is correct because the policy is optimized against that reward model using a reinforcement learning algorithm such as PPO (Proximal Policy Optimization), typically with a KL penalty to the reference model to prevent reward hacking.

Option A is not required: LoRA is a parameter-efficient fine-tuning technique that can optionally be used, but RLHF does not mandate adapters. Option C is not required: distinguishing generated from real text is a GAN discriminator concept, not part of the RLHF pipeline, which relies on preference-based reward modeling instead.

Exam trap

MLA-C01 often tests whether candidates confuse RLHF components with general fine-tuning techniques like LoRA or with GAN-style discriminators, causing them to pick optional or unrelated options.

53
MCQeasy

A machine learning engineer has trained a model in SageMaker and wants to deploy it to a real-time endpoint for low-latency inference. The model artifacts are stored in Amazon S3, and the engineer needs to create the endpoint with the least operational effort. Which sequence of actions should the engineer take?

A.Create a model, create an endpoint configuration, and create an endpoint using the SageMaker API or the AWS SDK for Python (Boto3).
B.Package the model into a Docker image, push it to Amazon ECR, and run it on an Amazon EC2 instance behind an Application Load Balancer.
C.Create a batch transform job that reads from Amazon S3 and writes predictions to Amazon S3, then expose the output as a REST API.
D.Register the model in the SageMaker model registry and deploy it through a SageMaker pipeline with a manual approval step.
AnswerA

Deploying to a real-time endpoint in SageMaker requires three resources: a model that points to the artifacts and image, an endpoint configuration that defines the instance type and count, and an endpoint that provisions the compute. Using the SageMaker API or Boto3 performs these steps directly and is the standard low-effort path for a single model deployment.

Why this answer

A SageMaker real-time endpoint is composed of a model, an endpoint configuration, and an endpoint. Creating these three resources through the SageMaker API or Boto3 is the direct, low-effort way to deploy artifacts from Amazon S3 for low-latency inference. Batch transform, model registry pipelines, and self-managed EC2 hosting either do not provide real-time serving or add unnecessary operational burden.

Exam trap

The trap here is conflating model registration or batch transform with real-time hosting, when a real-time endpoint requires the model, configuration, and endpoint resources.

54
MCQmedium

A data scientist needs to run a hyperparameter tuning job for a PyTorch model using SageMaker. They want to use Hyperband for efficient resource allocation. Which tuning strategy should they select in the HyperparameterTuner?

A.Bayesian optimization
B.Hyperband
C.Random search
D.Grid search
AnswerB

Hyperband is the strategy that terminates poorly performing training jobs early and reallocates resources to promising trials. Selecting it in the HyperparameterTuner delivers the efficient resource allocation the data scientist requires for the PyTorch tuning job.

Why this answer

SageMaker's HyperparameterTuner supports Hyperband as a first-class strategy, which implements the multi-armed bandit early-stopping algorithm to allocate more resources to promising configurations and prune poor ones early. Selecting 'Hyperband' as the strategy directly enables this efficient resource allocation. It is distinct from Bayesian, Random, and Grid strategies, which do not perform the successive-halving resource allocation that Hyperband does.

Exam trap

MLA-C01 often tests whether candidates know that Hyperband is a distinct strategy option in HyperparameterTuner, not a synonym for Bayesian optimization or early stopping — picking Bayesian is the most common wrong answer.

How to eliminate wrong answers

Option A is wrong because Bayesian optimization builds a probabilistic surrogate model to choose the next hyperparameters but does not implement the successive-halving resource allocation that defines Hyperband. Option C is wrong because Random search samples hyperparameters uniformly without any early-stopping or resource-allocation mechanism. Option D is wrong because Grid search exhaustively tries every combination and is the least efficient, with no pruning or resource reallocation.

55
MCQmedium

A company is using SageMaker Debugger to monitor a training job for a deep learning model. They want to detect when gradients become extremely large, which may cause training instability. Which built-in rule should they use?

A.DeadRelu
B.ExplodingGradients
C.VanishingGradients
D.Overfit
AnswerB

The ExplodingGradients built-in rule monitors gradient values across training iterations and raises an alert when they exceed a threshold, indicating instability. This matches the stem's requirement to detect gradients becoming extremely large during the SageMaker Debugger training job.

Why this answer

SageMaker Debugger provides a built-in rule named ExplodingGradients that monitors gradient tensors during training and triggers when gradient magnitudes exceed a threshold, indicating training instability. It is purpose-built to detect the exact condition described — gradients becoming extremely large. The rule can emit a warning or stop the job based on configuration.

Exam trap

MLA-C01 often tests the distinction between ExplodingGradients and VanishingGradients — candidates must read the symptom (extremely large vs. extremely small) carefully, as both are gradient-related Debugger rules.

How to eliminate wrong answers

Option A is wrong because DeadRelu detects ReLU neurons that are permanently inactive (outputting zero), which is a different failure mode related to activation, not gradient magnitude. Option C is wrong because VanishingGradients detects gradients that become too small, the opposite problem of exploding gradients. Option D is wrong because Overfit detects a divergence between training and validation loss, which is about generalization, not gradient magnitude.

56
MCQhard

A team is fine-tuning a foundation model using reinforcement learning from human feedback (RLHF) on SageMaker. They have a dataset of human preferences. Which SageMaker capability is most suitable for the reward model training step?

A.SageMaker JumpStart
B.SageMaker Ground Truth
C.SageMaker Autopilot
D.SageMaker Training with a custom PyTorch container
AnswerD

SageMaker Training with a custom PyTorch container suits reward-model training because RLHF reward models are bespoke regression networks, not standard supervised tasks. A custom container lets you define the pairwise preference loss, initialise from the fine-tuned foundation model's weights, and control hyperparameters — flexibility that built-in algorithms and Autopilot cannot provide for this scenario.

Why this answer

Training a reward model for RLHF requires a custom training loop over human preference pairs, typically using a PyTorch model with a regression or ranking loss. SageMaker Training with a custom PyTorch container gives full control over the training script, loss function, and data pipeline needed for this step. The other SageMaker capabilities are higher-level or data-labeling services that do not provide this flexibility.

Exam trap

MLA-C01 often tests whether candidates confuse data-labeling (Ground Truth) or pre-built model hubs (JumpStart) with the custom training capability needed for RLHF reward models — the key is recognizing the need for a custom training script.

How to eliminate wrong answers

Option A is wrong because JumpStart provides pre-trained models and fine-tuning templates for common tasks, not a custom reward-model training workflow for RLHF. Option B is wrong because Ground Truth is a data labeling service for generating human annotations, not for training a reward model. Option C is wrong because Autopilot automates model selection and hyperparameter tuning for tabular data, and does not support custom RLHF reward-model training.

57
MCQmedium

A team is fine-tuning a Hugging Face transformer model on SageMaker. They need to use a custom training script with the Hugging Face Estimator. Which SageMaker feature does this represent?

A.Built-in algorithm
B.SageMaker Autopilot
C.SageMaker Debugger
D.Script mode
AnswerD

Script mode lets the Hugging Face Estimator run a user-supplied Python training script inside the managed container, satisfying the custom training script requirement. The estimator passes hyperparameters and data channels to that entry point, so no prebuilt algorithm image is needed.

Why this answer

Using a custom training script with the Hugging Face Estimator in SageMaker represents Script Mode. Script Mode allows you to bring your own training script and run it within a pre-built framework container, such as Hugging Face, PyTorch, or TensorFlow. This provides flexibility to customize training logic while leveraging SageMaker's managed infrastructure.

Exam trap

MLA-C01 often tests the distinction between built-in algorithms and Script Mode, causing candidates to confuse custom script execution with automated ML features like Autopilot or debugging tools like Debugger.

How to eliminate wrong answers

Option A is wrong because a built-in algorithm refers to SageMaker's pre-built algorithms (e.g., XGBoost, Linear Learner) that do not require custom code. Option B is wrong because SageMaker Autopilot is an automated machine learning feature that automatically builds and tunes models, not a method for running custom scripts. Option C is wrong because SageMaker Debugger is a tool for monitoring and debugging training jobs, not a feature for executing custom training scripts.

58
MCQmedium

A data scientist suspects that a deep learning model is overfitting. They enable SageMaker Debugger and want to detect overfitting automatically. Which built-in rule should they use?

A.ExplodingGradients
B.PoorWeightInitialization
C.Overfit
D.DeadRelu
AnswerC

The Overfit rule directly satisfies the requirement to detect overfitting automatically. It monitors training and validation loss across steps, raising an issue when validation loss stops decreasing while training loss continues falling. This divergence is the defining signature of overfitting, so it flags the problem without manual threshold tuning.

Why this answer

SageMaker Debugger includes a built-in rule called Overfit that monitors the gap between training and validation loss (or accuracy) and triggers when the model begins to overfit. It is the direct, purpose-built rule for automatic overfitting detection. Enabling it requires the training script to emit both training and validation metrics via the debugger hook.

Exam trap

MLA-C01 often tests the exact built-in rule names for Debugger — candidates may pick a plausible-sounding rule like 'PoorWeightInitialization' or confuse Overfit with a general loss-monitoring rule, but the exam expects the precise 'Overfit' rule.

How to eliminate wrong answers

Option A is wrong because ExplodingGradients detects large gradient magnitudes, which is a training instability issue, not overfitting. Option B is wrong because PoorWeightInitialization detects bad initial weight distributions that hinder convergence, not overfitting. Option D is wrong because DeadRelu detects inactive ReLU neurons, which is an activation pathology, not a generalization gap.

59
MCQeasy

Which SageMaker built-in algorithm is best suited for detecting anomalous login attempts based on IP addresses and user behavior?

A.XGBoost
B.IP Insights
C.PCA
D.K-Means
AnswerB

IP Insights learns associations between IP addresses and user identities, flagging logins from unusual IP-user pairings. This directly satisfies the scenario's need to detect anomalous login attempts from IP and behaviour patterns, unlike supervised classification algorithms requiring labelled fraud data.

Why this answer

IP Insights is a SageMaker built-in algorithm purpose-built for learning the patterns of IP address usage by users and resources, making it ideal for detecting anomalous login attempts. It uses a neural network to embed IP addresses and entities (like user IDs) into a vector space, flagging unusual combinations as anomalies. XGBoost, PCA, and K-Means are general-purpose algorithms not designed for IP-entity behavioral analysis.

Exam trap

MLA-C01 often tests whether candidates can distinguish purpose-built SageMaker algorithms (like IP Insights for anomaly detection) from general-purpose algorithms (XGBoost, PCA, K-Means) that require custom feature engineering for the same task.

How to eliminate wrong answers

Option A is wrong because XGBoost is a supervised gradient-boosting algorithm for classification/regression on tabular data, not designed to model IP-user behavioral patterns without labeled anomaly data. Option C is wrong because PCA is an unsupervised dimensionality-reduction technique, not an anomaly-detection algorithm for login behavior. Option D is wrong because K-Means is a clustering algorithm that groups similar data points but does not model IP-entity relationships or produce anomaly scores for login attempts.

60
MCQhard

A machine learning engineer is preparing a dataset for training a SageMaker built-in Linear Learner model for binary classification. The dataset contains a highly imbalanced target with only 2% positive examples. They want to improve the model's ability to detect positives without collecting more data. Which SageMaker Linear Learner hyperparameter should they adjust to assign more weight to the positive class?

A.loss
B.mini_batch_size
C.positive_example_weight_mult
D.balance_multiplier
AnswerC

SageMaker Linear Learner includes positive_example_weight_mult, which multiplies the weight of positive examples during training. For imbalanced binary classification, setting this above 1 increases the loss contribution of positives, encouraging the model to detect them better. This directly addresses the scenario without resampling or collecting more data, and it is a documented hyperparameter of the built-in Linear Learner algorithm.

Why this answer

SageMaker Linear Learner provides positive_example_weight_mult to scale the contribution of positive examples in the loss. For a binary target with only 2% positives, increasing this multiplier pushes the model to prioritize positive class recall. Other hyperparameters like loss, mini_batch_size, or nonexistent balance_multiplier do not implement class weighting in this algorithm.

Exam trap

The trap here is assuming any class-weighting parameter works, when SageMaker Linear Learner specifically names it positive_example_weight_mult.

61
MCQmedium

A data scientist is using SageMaker Experiments to track multiple training runs. They want to compare the F1 scores across runs. Which component should they use to log the F1 score?

A.Parameter
B.Hyperparameter
C.Artifact
D.Metric
AnswerD

Metrics are the SageMaker Experiments component that logs numeric values such as F1 score against a run, satisfying the requirement to compare F1 scores across runs. They are recorded via the log_metric call within a run.

Why this answer

In SageMaker Experiments, metrics are logged using the SageMaker SDK's log_metric method or by reporting through the training job's metric definitions. Hyperparameters are logged separately. Artifacts are for model files or datasets.

62
Multi-Selecthard

A company is fine-tuning a large language model using reinforcement learning from human feedback (RLHF). Which THREE components are typically required?

Select 3 answers
A.A discriminative classifier
B.A reference model
C.A reward model
D.A policy model (the LLM)
E.A value function
AnswersB, C, D

RLHF needs a frozen reference model to compute the KL-divergence penalty against the fine-tuned policy, preventing reward hacking and keeping outputs close to the original pretrained distribution. This satisfies the requirement for a stable baseline during PPO optimisation.

Why this answer

In the standard RLHF pipeline, the policy model (D) is the large language model being fine-tuned; it generates responses and is updated via reinforcement learning (typically PPO) to maximize reward. A reward model (C) is trained on human preference comparisons to output a scalar score predicting human preference, and it supplies the reward signal that guides the policy's optimization. A reference model (B) is a frozen copy of the pre-RLHF model used to compute a KL-divergence penalty, keeping the policy from drifting too far from the original model and collapsing into degenerate, high-reward outputs.

The other options are not required components: a discriminative classifier (A) is not part of RLHF (the reward model is a regression-style preference predictor, not a classifier), and a value function (E) is only an internal component of the PPO algorithm used to estimate advantages, not a standalone required model in the RLHF architecture.

Exam trap

The trap is including the value function (critic) as a required component because it appears in PPO; the question asks for the three architectural components of RLHF—policy, reward, and reference models.

63
MCQhard

A financial services firm is training a fraud detection model using SageMaker. The dataset is highly imbalanced (0.1% fraudulent transactions). The model currently achieves 99.9% accuracy but only catches 5% of fraud cases. Which metric should the team prioritize to evaluate model performance?

A.Accuracy
B.Precision
C.Recall
D.F1-score
AnswerC

Recall measures the proportion of actual fraudulent transactions the model identifies, so it exposes the 5% detection rate that 99.9% accuracy conceals. With 0.1% positives, accuracy is dominated by the majority class, making recall the metric aligned to catching fraud.

Why this answer

Recall is the proportion of actual fraud cases that the model correctly identifies, so it directly measures the model's ability to catch fraud. With only 5% of fraud cases caught, recall is extremely low, and improving it is the priority. Accuracy is misleading here because a model that predicts 'not fraud' for every transaction would still achieve 99.9% accuracy on a 0.1% fraud dataset.

Exam trap

MLA-C01 often tests whether candidates default to accuracy or F1 without considering that in highly imbalanced datasets, recall is the metric that directly reflects the model's ability to catch the minority class.

How to eliminate wrong answers

Option A is wrong because accuracy is dominated by the majority class in an imbalanced dataset and can be 99.9% while missing nearly all fraud, making it a poor metric here. Option B is wrong because precision measures how many predicted frauds are actually fraud, which is important but secondary when the immediate problem is missing 95% of fraud cases. Option D is wrong because F1-score is the harmonic mean of precision and recall and is useful as a balanced metric, but the question specifically asks which metric to prioritize given the low catch rate, and recall is the direct measure of that failure.

64
Multi-Selecteasy

A company wants to use SageMaker Clarify to analyze bias in their training data and model predictions. Which TWO types of bias can Clarify detect? (Choose TWO.)

Select 2 answers
A.Algorithmic bias
B.Pre-training bias
C.Inference bias
D.Deployment bias
E.Post-training bias
AnswersB, E

Pre-training bias measures imbalance or skew in the training dataset itself, such as label or feature distribution disparities, before any model is fitted. Clarify reports this alongside post-training bias, satisfying the requirement to analyse bias in training data.

Why this answer

SageMaker Clarify organizes its bias metrics into two categories that map directly to the two marked options: pre-training bias and post-training bias. Option B (Pre-training bias) is correct because Clarify analyzes the training dataset itself before model training, computing metrics such as Class Imbalance (CI), Difference in Proportions of Labels (DPL), and Kolmogorov-Smirnov (KS) to detect imbalances or label skew in the input data. Option E (Post-training bias) is correct because Clarify evaluates model predictions after training, using metrics like Disparate Impact (DI), Difference in Conditional Acceptance (DCA), and Accuracy Difference (AD) to detect bias in predicted outcomes across groups.

The remaining options are not Clarify bias categories: algorithmic bias (A) is a general concept rather than a Clarify metric group, while inference bias (C) and deployment bias (D) are not terms Clarify uses to classify the bias it detects.

65
MCQmedium

A data scientist is using SageMaker Automatic Model Tuning to optimize hyperparameters for an XGBoost model. They want to maximize AUC. Which search strategy is MOST appropriate for efficient exploration?

A.Random search
B.Grid search
C.Bayesian optimization
D.Hyperband
AnswerC

Bayesian optimization builds a probabilistic surrogate model of the objective and selects hyperparameter configurations that maximise expected improvement, converging in far fewer training jobs than grid or random search. This suits maximising AUC efficiently given Automatic Model Tuning's cost per trial.

Why this answer

Bayesian optimization is the most appropriate search strategy for efficiently exploring hyperparameter space because it builds a probabilistic surrogate model of the objective function (AUC) and uses an acquisition function to intelligently select the next hyperparameter combination to evaluate. This makes it far more sample-efficient than grid or random search, which is critical when each training run is expensive. SageMaker Automatic Model Tuning supports Bayesian optimization as its default and recommended strategy.

Exam trap

The trap is confusing Hyperband's early-stopping efficiency with search efficiency — candidates may pick Hyperband because it sounds 'efficient,' but the question asks for the most appropriate search strategy for exploring hyperparameter space, which is Bayesian optimization.

How to eliminate wrong answers

Option A is wrong because random search, while better than grid search, does not learn from previous trials and therefore wastes compute on unpromising regions of the hyperparameter space — it is less sample-efficient than Bayesian optimization. Option B is wrong because grid search exhaustively evaluates every combination in a predefined grid, which scales exponentially with the number of hyperparameters and is computationally prohibitive for expensive model training. Option D is wrong because Hyperband is a bandit-based early-stopping strategy that prunes poor trials — it is efficient for resource allocation but is not the primary search strategy SageMaker recommends for maximizing a metric like AUC; Bayesian optimization is the standard answer for efficient exploration.

66
Multi-Selectmedium

A company is training a large NLP model on SageMaker and wants to reduce costs by using Spot Instances. Which TWO configurations should they implement to handle Spot interruptions gracefully?

Select 2 answers
A.Use a single large instance to reduce interruption probability
B.Set `use_spot_instances=True` and `max_wait` in the estimator
C.Increase the `max_run` parameter to allow longer training
D.Use `keep_alive_period` to keep the instance alive after training
E.Enable checkpointing to save model state periodically
AnswersB, E

Setting `use_spot_instances=True` with `max_wait` enables managed Spot training, where SageMaker checkpoints to Amazon S3 and resumes automatically after interruption, within the specified waiting window. This satisfies the stem's requirement to handle interruptions gracefully while cutting costs, since training continues rather than restarting from scratch.

Why this answer

Option B is correct because in the SageMaker SDK estimator you must explicitly set use_spot_instances=True to enable managed Spot training, and max_wait defines the maximum wall-clock time SageMaker will wait for the Spot capacity (including interruptions and restarts), which is required to let training resume after an interruption. Option E is correct because enabling checkpointing (e.g., via checkpoint_s3_uri) periodically saves model state to Amazon S3, so when a Spot instance is reclaimed the job can restart from the last checkpoint instead of from scratch, which is the core mechanism for handling interruptions gracefully. Option A is not correct because using a single large instance does not meaningfully reduce interruption probability and actually increases the cost/impact of a single interruption.

Option C is not correct because increasing max_run only sets the maximum training duration; it does not help the job survive or recover from a Spot interruption. Option D is not correct because keep_alive_period is used for managed warm pools to reduce cold-start latency between jobs, not to preserve training state across Spot interruptions.

Exam trap

MLA-C01 often tests Spot Instance handling, and candidates may confuse max_wait with max_run or overlook the need for checkpointing.

67
MCQmedium

A company is using SageMaker Automatic Model Tuning to optimize a regression model. They want to minimize the root mean squared error (RMSE). The tuner has completed 20 jobs, and the RMSE has plateaued. Which action should the data scientist take to potentially improve the results?

A.Increase the maximum number of training jobs
B.Increase the number of parallel training jobs
C.Decrease the range of hyperparameters to focus on promising areas
D.Switch the objective metric to mean absolute error (MAE)
AnswerC

Narrowing each hyperparameter's search range concentrates the tuner's sampling around regions that previously produced low RMSE, increasing the chance of finding better values. This satisfies the stem's plateaued-after-20-jobs constraint, where broad ranges waste trials on unpromising areas.

Why this answer

When RMSE has plateaued, narrowing the hyperparameter ranges to focus on promising areas can help the tuner explore more finely around good values. This is a common technique in Bayesian optimization to refine the search. Increasing jobs or parallelism may not help if the search space is too broad.

Exam trap

The trap is thinking more jobs or parallelism will always improve results; candidates may not realize that refining hyperparameter ranges is a more effective strategy when progress stalls.

How to eliminate wrong answers

Option A is wrong because simply increasing the maximum number of jobs may not help if the tuner is already stuck in a plateau; it may just waste resources. Option B is wrong because increasing parallel jobs can actually reduce tuning effectiveness due to less sequential learning. Option D is wrong because switching the objective metric changes the goal, not necessarily improving RMSE.

68
Multi-Selectmedium

A data scientist wants to fine-tune a Llama 2 7B model using SageMaker for a text summarization task. The dataset is 10 GB. The budget is limited, so cost efficiency is important. Which THREE steps should the data scientist take? (Choose THREE.)

Select 3 answers
A.Use SageMaker Debugger to reduce training time
B.Use the SageMaker built-in BlazingText algorithm
C.Use LoRA to reduce the number of trainable parameters
D.Use managed spot training
E.Use the SageMaker HuggingFace estimator
AnswersC, D, E

LoRA freezes the base Llama 2 weights and injects small trainable low-rank matrices into attention layers, cutting trainable parameters and optimiser memory dramatically. This directly addresses the limited budget by reducing GPU hours and memory needed for fine-tuning the 7B model.

Why this answer

Option C is correct because LoRA (Low-Rank Adaptation) freezes the base Llama 2 7B weights and injects small trainable low-rank matrices into the attention layers, cutting the number of trainable parameters and GPU memory/compute needed for fine-tuning, which directly supports the limited budget. Option D is correct because SageMaker managed spot training uses spare EC2 capacity at up to a 90% discount and supports checkpointing to S3 so training resumes after interruptions, making it a key cost-efficiency measure. Option E is correct because the SageMaker HuggingFace estimator provides a prebuilt PyTorch/TensorFlow container with the transformers, datasets, and peft libraries needed to fine-tune Llama 2 7B for summarization without building a custom container.

Option A is not correct because SageMaker Debugger is a monitoring and profiling tool for detecting training issues such as vanishing gradients or resource bottlenecks; it does not itself reduce training time. Option B is not correct because BlazingText is a built-in algorithm for text classification and word2vec embeddings, not for fine-tuning large generative LLMs like Llama 2.

Exam trap

MLA-C01 often tests whether candidates can distinguish cost-optimization techniques for LLM fine-tuning (LoRA, spot training, HuggingFace estimator) from unrelated tools (Debugger) or algorithms that cannot handle LLMs (BlazingText), so the trap is picking Debugger thinking it speeds up training.

69
MCQmedium

A machine learning engineer is using SageMaker to train a model and wants to automatically stop a training job when the validation loss has not improved for 10 consecutive epochs, while still saving the best model artifacts. The engineer is using the SageMaker training toolkit in a custom container. Which combination of actions should the engineer take?

A.Configure the estimator's stopping condition with the MaxRuntimeInSeconds parameter and set the checkpoint_s3_uri to save intermediate models.
B.Use SageMaker Automatic Model Tuning with the Bayesian strategy and set the max_parallel_jobs parameter to 1 to enable early stopping across trials.
C.Implement early stopping in the training script by tracking validation loss and calling the SageMaker training toolkit's save_model or exiting the loop when the patience threshold is reached.
D.Enable SageMaker Debugger with the vanishing_gradient rule and configure a stop condition on the rule to halt training when validation loss plateaus.
AnswerC

SageMaker does not provide a built-in early stopping callback for custom training scripts. The engineer must implement patience logic in the script, monitoring validation loss and breaking the training loop when there is no improvement for 10 epochs. Saving the best model before exiting ensures the artifacts reflect the best checkpoint rather than the final epoch.

Why this answer

Early stopping based on validation loss patience is logic that belongs in the training script when using a custom container. The script should evaluate validation loss each epoch, track the best value, and stop after 10 epochs without improvement, saving the best model artifacts. Estimator time limits, tuning strategies, and Debugger rules do not implement this per-epoch behavior.

Exam trap

The trap here is expecting SageMaker to provide a built-in early stopping feature for custom training scripts, when it must be coded explicitly.

70
Multi-Selectmedium

A data scientist is using SageMaker Experiments to track multiple training runs for a PyTorch model. They want to compare metrics across runs and identify the best hyperparameters. Which TWO capabilities should they use? (Choose TWO.)

Select 2 answers
A.SageMaker Experiments list and search API to query runs by metric
B.SageMaker SDK's experiment logging capabilities
C.SageMaker Autopilot
D.SageMaker Clarify
E.SageMaker Model Monitor
AnswersA, B

The Experiments list and search API lets you query runs programmatically and filter or sort them by logged metric values, so you can retrieve the top-performing runs and compare their hyperparameter configurations. This directly supports identifying the best hyperparameters across many training runs.

Why this answer

Option A is correct because the SageMaker Experiments list and search API (e.g., search() with filters on metric values) lets the data scientist query and compare runs across an experiment by metric, which is exactly what is needed to rank runs and identify the best hyperparameters. Option B is correct because the SageMaker SDK's experiment logging capabilities (Run.log_metric, log_parameter, and log_artifact) record the metrics and hyperparameters for each training run so they can later be analyzed and compared. Option C (SageMaker Autopilot) is an automated machine learning service that builds and tunes models automatically, not a tool for comparing metrics across existing runs.

Option D (SageMaker Clarify) provides bias detection and explainability, and Option E (SageMaker Model Monitor) detects drift in deployed models; neither supports run-to-run metric comparison or hyperparameter selection.

Exam trap

MLA-C01 often tests the confusion between experiment tracking (SageMaker Experiments) and automated model building or monitoring services (Autopilot, Clarify, Model Monitor), so candidates must map each service to its exact purpose.

71
MCQmedium

A machine learning engineer is training a SageMaker job with the TensorFlow estimator and wants to automatically capture model training metadata such as loss curves and accuracy for later comparison, without writing any custom code. Which SageMaker feature should they enable?

A.SageMaker Model Monitor
B.SageMaker Clarify
C.SageMaker Experiments
D.SageMaker Debugger
AnswerC

SageMaker Experiments automatically captures input parameters, metrics, and artifacts from training jobs when the estimator is created within an experiment context. It logs scalar metrics like loss and accuracy without custom code, enabling comparison across runs. Enabling it on the TensorFlow estimator satisfies the requirement for automatic metadata capture and later comparison.

Why this answer

SageMaker Experiments automatically tracks training parameters, metrics, and artifacts when a training job is launched within an experiment context. It requires no custom code to capture loss and accuracy, and it provides a UI and API to compare runs. Debugger, Model Monitor, and Clarify serve different purposes and do not provide automatic scalar metric logging for experiment comparison.

Exam trap

The trap here is confusing SageMaker Debugger with SageMaker Experiments, because both integrate with training jobs but only one automatically logs scalar metrics for run comparison.

72
MCQmedium

A machine learning engineer trains a binary classifier in SageMaker and the model outputs class probabilities. The business requires that the model achieve at least 90% recall on the positive class, while keeping precision above 70%. The engineer uses the default threshold of 0.5 when deploying. Which approach should the engineer take to meet these requirements?

A.Perform a threshold analysis on the precision-recall curve and choose a threshold that yields recall ≥ 90% and precision > 70%.
B.Retrain the model with a higher learning rate and re-evaluate at the default threshold.
C.Use SageMaker Clarify to compute bias metrics and adjust the threshold accordingly.
D.Increase the number of epochs and use early stopping to improve both precision and recall.
AnswerA

The precision-recall curve shows the trade-off between precision and recall at various thresholds. By analyzing this curve on a validation set, the engineer can identify a threshold that meets both the recall and precision requirements. This is the standard approach to select an operating point that aligns with business constraints, and it does not require retraining the model.

Why this answer

The precision-recall curve illustrates how precision and recall vary with the decision threshold. To meet a recall target while keeping precision above a minimum, the engineer should evaluate the curve on a validation set and select a threshold that satisfies both constraints. This approach directly addresses the business requirement without retraining or using bias tools.

Exam trap

The trap here is assuming that retraining or changing hyperparameters will automatically meet specific precision and recall targets, rather than adjusting the decision threshold.

73
MCQeasy

A data scientist is using SageMaker built-in XGBoost algorithm for a regression problem. Which metric is most appropriate as the objective metric for hyperparameter tuning?

A.NDCG
B.RMSE
C.AUC
D.F1
AnswerB

RMSE is the standard objective metric for regression with XGBoost, measuring root mean squared prediction error in the target's units. SageMaker hyperparameter tuning minimises it, directly reflecting the regression task's accuracy, unlike classification metrics such as accuracy, F1, or AUC.

Why this answer

RMSE (Root Mean Squared Error) is the most appropriate objective metric for hyperparameter tuning in a regression problem because it directly measures the average magnitude of prediction errors, with larger errors penalized more heavily. SageMaker's built-in XGBoost algorithm supports RMSE as an evaluation metric for regression, and it is commonly used as the objective metric for tuning jobs.

Exam trap

The trap is confusing classification metrics (AUC, F1) with regression metrics; MLA-C01 often tests whether candidates know that RMSE is for regression while AUC and F1 are for classification.

How to eliminate wrong answers

Option A is wrong because NDCG (Normalized Discounted Cumulative Gain) is a ranking metric used for recommendation systems and search relevance, not for regression. Option C is wrong because AUC (Area Under the ROC Curve) is a classification metric that measures the ability to distinguish between classes, not for continuous target prediction. Option D is wrong because F1 score is a classification metric that balances precision and recall, and is not applicable to regression problems.

74
Multi-Selectmedium

A machine learning engineer is preparing a dataset for training a SageMaker model. The dataset contains missing values in several numerical features. The engineer wants to handle these missing values during the training pipeline. Which two methods are valid ways to handle missing values in SageMaker? (Choose two.)

Select 2 answers
A.Use SageMaker Data Wrangler to impute missing values with the mean or median.
B.Use SageMaker Clarify to replace missing values with the mode of each column.
C.Use SageMaker Debugger to automatically fill missing values during training.
D.Enable the SageMaker built-in XGBoost algorithm's default handling of missing values.
E.Configure SageMaker Automatic Model Tuning to impute missing values via hyperparameter search.
AnswersA, D

SageMaker Data Wrangler provides built-in transformations for handling missing values, including imputation with mean, median, or mode. It allows you to visually inspect and apply these transformations as part of a data preparation flow, which can then be exported to a pipeline. This is a valid and recommended approach for handling missing values before training.

Why this answer

SageMaker Data Wrangler offers built-in transformations to impute missing values, and the built-in XGBoost algorithm natively handles missing values by learning default directions. Both are valid methods for dealing with missing data in a SageMaker training pipeline. The other services are not designed for data preprocessing.

Exam trap

The trap here is confusing monitoring, tuning, or bias detection services with data preprocessing capabilities.

75
MCQmedium

A company is using SageMaker to train a model for image classification. The training dataset contains 100,000 labeled images. The team wants to use a pre-trained model to reduce training time. Which SageMaker feature should they use?

A.SageMaker Debugger
B.SageMaker Model Monitor
C.SageMaker built-in Image Classification algorithm
D.SageMaker JumpStart
AnswerD

SageMaker JumpStart provides pre-trained foundation and task-specific models, including image classification, that can be fine-tuned on your own dataset. This directly satisfies the requirement to start from a pre-trained model and cut training time, rather than building a model from scratch with custom training code.

Why this answer

SageMaker JumpStart provides pre-trained, publicly available foundation models and task-specific models (including image classification) that can be fine-tuned on your dataset, dramatically reducing training time and data requirements. For a team wanting to leverage a pre-trained model for image classification on 100,000 labeled images, JumpStart is the purpose-built feature that offers one-click deployment and fine-tuning of pre-trained models.

Exam trap

The trap is confusing SageMaker's built-in algorithms with pre-trained model hubs — candidates may pick the built-in Image Classification algorithm because it sounds like the 'official' image classification tool, but the question specifically asks for leveraging a pre-trained model, which is JumpStart's core value proposition.

How to eliminate wrong answers

Option A is wrong because SageMaker Debugger is a tool for monitoring and debugging training jobs — it detects issues like vanishing gradients, overfitting, and resource bottlenecks, but it does not provide pre-trained models. Option B is wrong because SageMaker Model Monitor detects data drift and model quality degradation in deployed models — it is a post-deployment monitoring tool, not a training accelerator. Option C is wrong because the SageMaker built-in Image Classification algorithm trains a model from scratch (or with transfer learning mode, but it is not a curated library of pre-trained models like JumpStart) — it does not provide the same breadth of pre-trained model options or the ease of use that JumpStart offers for leveraging pre-trained models.

Page 1 of 2 · 108 questions totalNext →

Ready to test yourself?

Try a timed practice session using only ML Model Development questions.