Courseiva

AWS Certified Machine Learning Engineer Associate MLA-C01 (MLA-C01) — Questions 301375

835 questions total · 12pages · All types, answers revealed

Page 4

Page 5 of 12

Page 6
301
Multi-Selectmedium

A company has a SageMaker real-time endpoint that serves predictions. They want to set up automated monitoring and remediation for when the number of 5XX errors exceeds a threshold. Which TWO steps should they take? (Choose TWO.)

Select 2 answers
A.Use SageMaker Model Monitor to detect 5XX errors
B.Configure the CloudWatch Alarm to publish to an SNS topic
C.Set up a scheduled EventBridge rule to check 5XXError every minute
D.Write a custom script on EC2 to poll the endpoint and check for errors
E.Create a CloudWatch Alarm on the 5XXError metric
AnswersB, E

SNS enables notifications to trigger downstream actions like Lambda or email.

Why this answer

A CloudWatch Alarm on the 5XXError metric can be configured to publish to an SNS topic, enabling automated notifications or remediation actions (e.g., via Lambda) when the alarm state is triggered. This is the standard AWS approach for alerting on endpoint errors without custom polling.

Exam trap

The trap here is that candidates confuse SageMaker Model Monitor (for data quality) with CloudWatch metrics (for operational health), leading them to select option A instead of recognizing that 5XX errors are operational metrics monitored via CloudWatch Alarms.

302
MCQhard

A team is building a regression model on a dataset with missing values in multiple features. They decide to use a k-Nearest Neighbors (k-NN) imputer. The dataset has 100,000 rows and 50 features. Which step should the team take to ensure the imputation is efficient and accurate?

A.Set k=1 to minimize bias
B.Use all 100,000 rows to find neighbors for each missing value
C.Standardize the features before applying k-NN imputation
D.Use only the feature with missing values to find neighbors
AnswerC

Ensures distance is equally weighted across features.

Why this answer

Standardizing features before applying k-NN imputation is critical because k-NN relies on distance calculations (e.g., Euclidean distance). If features are on different scales (e.g., one feature ranges 0–1 and another 0–100,000), the distance metric will be dominated by the larger-scale feature, leading to biased neighbor selection and inaccurate imputation. Standardization (e.g., z-score scaling) ensures each feature contributes equally to the distance computation, improving both efficiency and accuracy.

Exam trap

AWS often tests the misconception that k-NN imputation works directly on raw data without preprocessing, trapping candidates who overlook the scale sensitivity of distance-based algorithms.

How to eliminate wrong answers

Option A is wrong because setting k=1 minimizes bias but maximizes variance, leading to overfitting to the nearest neighbor's value and potentially introducing noise; a small k (like 1) is generally not recommended for imputation as it ignores the averaging effect that reduces variance. Option B is wrong because using all 100,000 rows to find neighbors for each missing value is computationally prohibitive (O(n^2) complexity) and inefficient; practical implementations often use a subset (e.g., via a KD-tree or ball tree) or approximate nearest neighbor search to balance speed and accuracy. Option D is wrong because using only the feature with missing values to find neighbors discards information from other features that could help identify similar rows, reducing the accuracy of the imputation; k-NN imputation typically uses all available features (or a selected subset) to compute distances.

303
MCQmedium

A company needs to deploy a new model version to a SageMaker real-time endpoint. They want to route 5% of traffic to the new version initially to monitor for errors before full rollout. Which deployment strategy should they use?

A.Blue/green deployment
B.Shadow testing
C.Canary deployment with production variants
D.Multi-model endpoint
AnswerC

Production variants allow traffic splitting; setting initial weight to 5% on the new variant achieves a canary.

Why this answer

A canary deployment with production variants allows you to route a specific percentage of traffic (e.g., 5%) to the new model version by adjusting the `InitialVariantWeight` parameter in the production variant configuration. This enables gradual traffic shifting while monitoring errors, and you can later increase the weight to 100% for full rollout. SageMaker real-time endpoints support this natively by hosting multiple model variants behind the same endpoint.

Exam trap

The trap here is that candidates confuse canary deployment with shadow testing, mistakenly thinking shadow testing also routes live user traffic, when in fact shadow testing only duplicates traffic for validation without affecting the user experience.

How to eliminate wrong answers

Option A is wrong because blue/green deployment switches all traffic from the old version to the new version at once, not a gradual 5% routing, which defeats the purpose of initial error monitoring. Option B is wrong because shadow testing sends a copy of live traffic to the new version but does not serve responses to users; it is used for validation without impacting production traffic, not for routing a percentage of user-facing traffic. Option D is wrong because a multi-model endpoint hosts multiple models on the same endpoint but does not provide traffic splitting or weighted routing between model versions; it is designed for cost efficiency with many models, not gradual rollout.

304
MCQmedium

A machine learning engineer observes that a SageMaker training job fails with the error shown in the exhibit. What is the most likely cause of the failure?

A.The SageMaker execution role does not have an IAM policy that grants read access to the S3 bucket containing the training data.
B.The training data is stored in an unsupported format like Parquet.
C.The training job is using an incorrect AWS Region for the S3 bucket.
D.The VPC configuration prevents the training job from reaching the S3 bucket.
AnswerA

The error message explicitly says 'Unable to locate credentials', indicating missing permissions for the role.

Why this answer

The error shown in the exhibit is a standard SageMaker access-denied error, which occurs when the SageMaker execution role lacks the necessary IAM permissions to read the training data from the S3 bucket. SageMaker uses the execution role's IAM policy to determine access to S3 resources; without a policy granting s3:GetObject (and optionally s3:ListBucket) on the bucket and objects, the training job fails at the data-loading stage.

Exam trap

The trap here is that candidates often confuse an access-denied error with a VPC or region issue, but the specific error message 'AccessDenied' (or similar) directly points to an IAM permissions problem, not a network or configuration mismatch.

How to eliminate wrong answers

Option B is wrong because SageMaker supports Parquet and other columnar formats natively (e.g., via Spark or built-in algorithms like XGBoost with Parquet input), so an unsupported format is not the cause of this specific access-denied error. Option C is wrong because SageMaker training jobs can access S3 buckets in any region as long as the bucket policy and IAM permissions allow cross-region access; the error message does not indicate a region mismatch. Option D is wrong because a VPC configuration issue would typically produce a timeout or network connectivity error, not an explicit access-denied error; the error shown is an IAM permissions failure, not a network reachability problem.

305
Multi-Selecteasy

A machine learning engineer is building a pipeline to ingest data from multiple sources into an Amazon S3 data lake. The data includes both batch files and real-time streams. The engineer needs to catalog the data for discovery and querying. Which TWO AWS services should the engineer use to ingest and catalog the data? (Select TWO.)

Select 2 answers
A.Amazon Redshift
B.Amazon S3
C.Amazon Athena
D.AWS Glue Data Catalog
E.AWS Glue ETL
AnswersB, D

Used as the data lake storage for raw and processed data.

Why this answer

S3 is the data lake storage; AWS Glue Data Catalog stores metadata for discovery and querying. AWS Glue ETL can ingest batch data; Kinesis Firehose ingests streaming data. Athena is for querying, not ingestion or cataloging; Redshift is a data warehouse.

306
Multi-Selecthard

A data scientist is using Amazon SageMaker Data Wrangler to create a data flow for a machine learning project. The source data is in Amazon S3 and contains PII (personally identifiable information) such as email addresses and credit card numbers. The data scientist needs to prepare the data for training while ensuring compliance with data privacy regulations. Which THREE actions should the data scientist take? (Select THREE.)

Select 3 answers
A.Include the raw PII in the training dataset and rely on the model to not memorize it.
B.Use Data Wrangler to redact or remove PII columns from the dataset before training.
C.Use AWS Glue to copy the data to a separate bucket without any transformations.
D.Configure Data Wrangler to output the prepared data to an S3 bucket with server-side encryption enabled.
E.Use Data Wrangler transforms to anonymize or hash PII columns.
AnswersB, D, E

Removing PII columns ensures they are not used in training.

Why this answer

Amazon SageMaker Data Wrangler provides built-in transforms to redact or remove PII columns, which directly addresses compliance requirements by eliminating sensitive data from the training dataset. This is a straightforward and effective method to prevent PII from being used in model training, reducing the risk of data exposure.

Exam trap

The trap here is that candidates may think copying data to a separate bucket (Option C) or relying on model non-memorization (Option A) is sufficient for compliance, when in fact active transformation or removal of PII is required by regulations like GDPR or CCPA.

307
MCQeasy

A company requires that all SageMaker notebook instances be created within a private VPC without internet access. Which configuration step is mandatory?

A.Use a SageMaker Studio notebook instead.
B.Configure VPC settings when creating the notebook instance, choosing a private subnet.
C.Enable SageMaker direct internet access.
D.Assign a public IP to the notebook instance.
AnswerB

Selecting a private subnet ensures the notebook instance is launched in the VPC without a public IP, fulfilling the requirement.

Why this answer

When creating a SageMaker notebook instance, you must explicitly configure the VPC settings and select a private subnet to ensure the instance is launched within a private VPC without internet access. This is mandatory because SageMaker notebook instances, by default, are created with internet access enabled unless you specify a VPC with no direct internet access. Selecting a private subnet ensures the instance uses only VPC endpoints or NAT gateways for outbound traffic, meeting the no-internet requirement.

Exam trap

The trap here is that candidates often assume SageMaker Studio notebooks are automatically private, but they also require explicit VPC configuration to restrict internet access, and the question specifically asks about notebook instances, not Studio.

How to eliminate wrong answers

Option A is wrong because using a SageMaker Studio notebook does not inherently enforce a private VPC without internet access; Studio notebooks also require VPC configuration and can have internet access if not properly restricted. Option C is wrong because enabling SageMaker direct internet access would explicitly allow the notebook instance to reach the internet, which contradicts the requirement. Option D is wrong because assigning a public IP to the notebook instance would provide direct internet access, violating the no-internet requirement.

308
MCQeasy

Refer to the exhibit. A SageMaker training job failed. Based on the error message, which action should the engineer take?

A.Change the algorithm
B.Use a larger instance type
C.Increase the volume size
D.Increase the instance count
AnswerB

A larger instance type has more memory, addressing the out-of-memory error.

Why this answer

The error message indicates that the training job failed due to insufficient memory (an out-of-memory error). Using a larger instance type (Option B) provides more RAM, which directly resolves the memory exhaustion issue. SageMaker training jobs run on EC2 instances, and the instance type determines the available memory and compute resources.

Exam trap

The trap here is that candidates often confuse 'out of memory' with 'out of disk space' and incorrectly choose to increase the volume size (Option C), but the error is specifically about RAM exhaustion, not storage.

How to eliminate wrong answers

Option A is wrong because changing the algorithm does not address the root cause of insufficient memory; the algorithm itself is not the source of the error. Option C is wrong because increasing the volume size (EBS storage) only provides more disk space, not additional RAM, and the error is about memory, not disk space. Option D is wrong because increasing the instance count (distributed training) does not increase the memory available to a single training process; it adds more instances but each instance still has the same memory limit, so the out-of-memory error would persist on each node.

309
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 combines LoRA with quantization, significantly reducing memory footprint while maintaining performance.

Why this answer

LoRA reduces trainable parameters, and when combined with QLoRA (quantized LoRA), it further reduces memory by quantizing the base model to 4-bit or 8-bit. Increasing batch size or sequence length typically increases memory usage. Gradient accumulation also increases memory as it requires storing gradients for multiple steps.

QLoRA is specifically designed for memory reduction.

310
MCQmedium

A machine learning engineer is building a pipeline to preprocess text data for a sentiment analysis model. The data consists of customer reviews. The engineer wants to convert the text into numerical features while preserving the semantic meaning of words. Which technique should be used?

A.One-hot encoding of each word
B.Bag-of-words with TF-IDF
C.Hashing vectorizer
D.Word embeddings (e.g., Word2Vec or GloVe)
AnswerD

Word embeddings represent words in dense vector spaces that preserve semantic relationships.

Why this answer

Word embeddings (like Word2Vec or GloVe) are dense vector representations that capture semantic relationships between words based on their context in a large corpus. For sentiment analysis, preserving semantic meaning (e.g., 'good' and 'excellent' having similar vectors) is critical, and embeddings directly encode this, unlike sparse or count-based methods.

Exam trap

The trap here is that candidates often choose TF-IDF (Option B) because it is a common text preprocessing technique, but they overlook the explicit requirement to 'preserve semantic meaning,' which only dense embeddings can achieve.

How to eliminate wrong answers

Option A is wrong because one-hot encoding treats each word as an independent binary feature with no semantic similarity—vectors for 'good' and 'excellent' are orthogonal, losing all contextual meaning. Option B is wrong because bag-of-words with TF-IDF produces sparse, high-dimensional vectors based on word frequency and inverse document frequency, which ignore word order and context, failing to capture semantic relationships. Option C is wrong because a hashing vectorizer uses a hash function to map words to fixed-size indices, which can cause collisions and still produces sparse, frequency-based features without any semantic understanding.

311
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 combines precision and recall, directly addressing the minority class performance requirement.

Why this answer

For imbalanced datasets, the F1-score balances precision and recall, making it a better objective than AUC, which can be misleading when class imbalance exists.

312
MCQhard

A team is using SageMaker to train a distributed model with data parallelism. They notice that the training loss is not decreasing as expected and suspect a bug in the data loading pipeline. Which SageMaker Debugger feature can help them inspect the data distributions during training?

A.SageMaker Model Monitor
B.Built-in rules such as overfit detection
C.Custom rules to monitor input tensors
D.SageMaker Processing jobs
AnswerC

By creating a custom rule or using tensor captures, Debugger can save input tensors for analysis of data distributions.

Why this answer

SageMaker Debugger can capture tensors (including inputs and outputs) during training. By saving input tensors, the team can inspect data distributions. Rules fire on issues like overfitting or dead relu, but tensor captures allow direct data inspection.

SaveConfig defines which tensors to save. Using a different instance type does not help debug data issues.

313
MCQmedium

A data science team deployed a model on Amazon SageMaker and enabled Model Monitor to detect data drift. After a week, they receive alerts indicating that the distribution of a key feature has shifted significantly. However, the model's accuracy on the recent production data remains high. Which action should the team take next?

A.Disable the data drift alert since accuracy is not affected.
B.Increase the sample size for monitoring to reduce false positives.
C.Retrain the model immediately because data drift always degrades performance.
D.Investigate the root cause of the drift as it may be benign or may lead to future degradation.
AnswerD

Investigating helps understand if the drift is meaningful; it could be benign or a leading indicator of future issues.

Why this answer

Data drift does not always immediately impact model accuracy; the drift may be benign (e.g., a shift in a non-predictive feature) or may indicate a precursor to future degradation. Amazon SageMaker Model Monitor detects distribution shifts using statistical tests like Kolmogorov-Smirnov or Chi-squared, but the team must investigate the root cause—such as changes in data collection, seasonal patterns, or upstream pipeline issues—before taking corrective action. Disabling alerts or retraining blindly could mask underlying problems or waste resources.

Exam trap

The trap here is that candidates assume data drift always implies model degradation, but the exam tests the understanding that drift can be benign and requires root-cause analysis before any action.

How to eliminate wrong answers

Option A is wrong because disabling the alert ignores the potential for future performance degradation; drift can be a leading indicator of model failure even if current accuracy is high. Option B is wrong because increasing the sample size may reduce variance but does not address the underlying cause of the drift; false positives are not the issue here since the drift is real. Option C is wrong because data drift does not always degrade performance; retraining immediately without investigation could introduce unnecessary cost and complexity, and may even harm the model if the drift is benign.

314
MCQeasy

A data science team deploys a regression model using Amazon SageMaker. After one week, the model's prediction accuracy drops significantly. The team needs to detect this degradation automatically and trigger retraining. Which AWS service should they use to monitor the model's performance over time and set up alerts?

A.AWS CloudWatch
B.Amazon SageMaker Model Monitor
C.Amazon Inspector
D.AWS Config
AnswerB

SageMaker Model Monitor tracks model quality metrics and can trigger retraining.

Why this answer

Amazon SageMaker Model Monitor is the correct choice because it is purpose-built to continuously monitor machine learning models deployed on SageMaker endpoints for data drift, feature attribution drift, and prediction quality degradation. It automatically compares live inference data against a baseline, triggers alerts when performance drops, and can be configured to initiate retraining pipelines via AWS Lambda or Step Functions, directly addressing the need to detect accuracy degradation and trigger retraining.

Exam trap

The trap here is that candidates often confuse general-purpose monitoring services like CloudWatch with model-specific monitoring tools, overlooking that SageMaker Model Monitor provides built-in drift detection and retraining triggers tailored for ML models, whereas CloudWatch requires extensive custom scripting to achieve the same functionality.

How to eliminate wrong answers

Option A is wrong because AWS CloudWatch is a general-purpose monitoring service for metrics, logs, and alarms, but it lacks native capabilities to detect model-specific degradation like data drift or prediction accuracy drop without custom code and manual baseline setup. Option C is wrong because Amazon Inspector is a vulnerability management service that scans workloads for software vulnerabilities and unintended network exposure, not for monitoring ML model performance or triggering retraining. Option D is wrong because AWS Config is a service for evaluating, auditing, and recording changes to AWS resource configurations, not for monitoring model prediction accuracy or detecting performance degradation over time.

315
MCQhard

Refer to the exhibit. A data engineer deploys this Glue job via CloudFormation. When running, the job fails with a timeout after 2 hours. The job processes a large dataset and expected to take 3 hours. Which change would resolve the issue?

A.Increase NumberOfWorkers to 20
B.Set MaxRetries to 3
C.Increase the Timeout property to 240 minutes
D.Change WorkerType to G.2X
AnswerC

Increasing the timeout directly addresses the failure caused by the 120-minute limit.

Why this answer

The Glue job failed due to a timeout after 2 hours, but the expected runtime is 3 hours. The default timeout for AWS Glue jobs is 2880 minutes (48 hours), but the CloudFormation template likely set a lower value. Increasing the Timeout property to 240 minutes (4 hours) provides enough time for the job to complete without being prematurely terminated.

Exam trap

AWS often tests the distinction between performance-related fixes (increasing workers or changing worker type) versus configuration-related fixes (timeout), leading candidates to mistakenly choose options that improve speed rather than addressing the explicit timeout limit.

How to eliminate wrong answers

Option A is wrong because increasing NumberOfWorkers to 20 would increase parallelism and potentially speed up execution, but the job is failing due to a timeout, not resource constraints; more workers won't fix a hard timeout limit. Option B is wrong because MaxRetries controls how many times the job is retried after a failure, but retries restart the job from scratch, so they would also hit the same 2-hour timeout on each attempt. Option D is wrong because changing WorkerType to G.2X provides more memory and storage per worker, which could improve performance for memory-intensive tasks, but it does not extend the timeout duration.

316
MCQmedium

A data scientist notices that a production model's accuracy has degraded over the past week. The training data distribution remains unchanged, but the relationship between features and the target has shifted. Which type of drift is occurring, and which monitoring approach should be used?

A.Bias drift; use SageMaker Clarify post-deployment bias monitoring
B.Data drift; use SageMaker Model Monitor data quality monitoring
C.Feature attribution drift; use SageMaker Clarify
D.Concept drift; use SageMaker Model Monitor model quality monitoring with ground truth labels
AnswerD

Model quality monitoring compares predictions to actual labels, catching concept drift.

Why this answer

Concept drift occurs when the underlying relationship between features and target changes. Model quality monitoring (comparing predictions against ground truth) detects this. Data drift monitors feature distribution changes, which are not present here.

317
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
318
MCQmedium

A data engineer needs to prepare a large dataset (10 TB) stored in Amazon S3 for a training job on SageMaker. The data is in CSV format, but the training algorithm expects Parquet for performance. The engineer must transform the data with minimal cost and without writing custom code. Which service should be used?

A.Use AWS Glue to create a crawler and ETL job that converts CSV to Parquet.
B.Use SageMaker Processing with a TensorFlow script to read CSV and write Parquet.
C.Use Amazon S3 Select to convert the data to Parquet during retrieval.
D.Use Amazon EMR with a Spark job to convert the files.
AnswerA

Glue offers a serverless, code-free option for format conversion.

Why this answer

AWS Glue is the correct choice because it provides a serverless, pay-per-use ETL service that can automatically convert CSV to Parquet without writing custom code. The Glue crawler infers the schema, and the ETL job uses built-in transforms to efficiently handle 10 TB of data with minimal cost, as it only charges for the resources consumed during the job execution.

Exam trap

The trap here is that candidates often confuse Amazon S3 Select's ability to filter data with the ability to transform data formats, but S3 Select only returns filtered results in the original format and cannot perform format conversion like CSV to Parquet.

How to eliminate wrong answers

Option B is wrong because SageMaker Processing with a TensorFlow script requires writing custom code, which violates the 'without writing custom code' requirement. Option C is wrong because Amazon S3 Select only supports filtering data using SQL queries on CSV or JSON objects; it cannot convert data to Parquet format. Option D is wrong because Amazon EMR with a Spark job requires provisioning and managing a cluster, incurring higher costs and operational overhead compared to the serverless Glue approach.

319
Multi-Selectmedium

A data scientist needs to create a feature group in Amazon SageMaker Feature Store for real-time recommendations. Which TWO configurations are required? (Select TWO.)

Select 2 answers
A.Enable the offline store
B.Provide a feature description
C.Specify a record identifier feature
D.Set a time-to-live (TTL) for the records
E.Enable the online store
AnswersC, E

A record identifier is mandatory for feature groups.

Why this answer

Online store must be enabled for real-time serving, and a record identifier is required to uniquely identify records. Offline store and feature description are optional; time-to-live is not a standard feature.

320
MCQhard

A data scientist is training a binary classifier on a highly imbalanced dataset (1:100 class ratio). The dataset contains 500,000 rows and 30 features. The data is stored in S3 in Parquet format. The data scientist wants to use SageMaker's built-in XGBoost algorithm. Which data preparation technique should the data scientist apply to best address the class imbalance without causing data leakage?

A.Undersample the majority class to create a balanced dataset, then split.
B.Use the scale_pos_weight parameter in XGBoost to assign higher weight to the minority class.
C.Oversample the minority class using SMOTE on the entire dataset before splitting into train/validation sets.
D.Randomly oversample the minority class by duplicating rows, then perform stratified train/test split.
AnswerB

This is the correct approach; it adjusts class weights without modifying the dataset.

Why this answer

The scale_pos_weight parameter in XGBoost directly adjusts the loss function to penalize misclassifications of the minority class more heavily, effectively handling class imbalance without modifying the dataset. This avoids data leakage because the weighting is applied during training only, not during preprocessing, and does not involve any synthetic data generation or resampling that could inadvertently expose test information.

Exam trap

AWS often tests the misconception that resampling techniques (like SMOTE or random oversampling) are always safe, when in fact applying them before splitting introduces data leakage, whereas built-in parameters like scale_pos_weight avoid this pitfall.

How to eliminate wrong answers

Option A is wrong because undersampling the majority class reduces the dataset size significantly (from 500,000 rows to ~10,000 rows), discarding valuable information and potentially degrading model performance, and it does not inherently prevent data leakage if done before splitting. Option C is wrong because applying SMOTE on the entire dataset before splitting causes data leakage: synthetic samples generated from the full dataset can incorporate information from the test set, leading to overly optimistic validation metrics. Option D is wrong because randomly oversampling the minority class by duplicating rows before splitting can cause data leakage if duplicates of the same row appear in both training and validation sets, and it does not introduce new variance, leading to overfitting.

321
MCQmedium

A machine learning team deploys a fraud detection model on a SageMaker endpoint. The model's predictions are used in real-time. The team wants to monitor for data drift by comparing incoming data distributions against a baseline created from the training data. Which SageMaker capability should they use?

A.SageMaker Model Monitor - Model Quality Monitor
B.SageMaker Model Monitor - Data Quality Monitor
C.SageMaker Model Monitor - Feature Attribution Drift Monitor
D.SageMaker Model Monitor - Bias Drift Monitor
AnswerB

Correctly monitors statistical and schema drift against a training baseline.

Why this answer

SageMaker Model Monitor's Data Quality Monitor is specifically designed to detect data drift by comparing the statistical distribution of incoming inference data against a baseline computed from the training dataset. This capability tracks metrics like mean, variance, and quantiles for each feature, alerting when significant deviations occur. For a fraud detection model requiring real-time monitoring of input distributions, this is the correct choice.

Exam trap

The trap here is that candidates often confuse 'data drift' (input distribution changes) with 'model quality drift' (prediction performance changes), leading them to select Model Quality Monitor instead of Data Quality Monitor.

How to eliminate wrong answers

Option A is wrong because Model Quality Monitor focuses on monitoring the model's predictive performance metrics (e.g., accuracy, precision, recall) against a baseline, not the distribution of input features. Option C is wrong because Feature Attribution Drift Monitor uses SHAP-based feature importance to detect shifts in how features contribute to predictions, not the raw data distributions themselves. Option D is wrong because Bias Drift Monitor tracks fairness metrics and bias over time, such as demographic parity or equal opportunity, which is unrelated to general data distribution drift.

322
MCQhard

An ML team uses SageMaker Pipelines to automate model retraining. They want to skip redundant training steps when input data has not changed. Which feature should they enable?

A.Pipeline caching
B.Pipeline variable expressions
C.Model registry approval
D.Step parallelism
AnswerA

Caching compares step hash and skips execution if unchanged.

Why this answer

SageMaker Pipelines caching stores step outputs; if the step configuration and inputs are identical, the pipeline reuses the cached output, skipping execution.

323
MCQhard

A company wants to restrict access to a SageMaker notebook instance so that only a specific IAM role can open the notebook via JupyterLab. The notebook instance is associated with a lifecycle configuration that installs custom packages. What is the correct way to enforce access control?

A.Set the notebook instance's Direct Internet Access to disabled and use IAM authentication.
B.Grant the specific IAM role permission to call sagemaker:CreatePresignedNotebookInstanceUrl on that notebook instance.
C.Use AWS Systems Manager to proxy SSH access, then use IAM permission.
D.Configure the notebook instance to use a VPC and restrict access via security groups.
AnswerB

This action generates a presigned URL for accessing the notebook, and restricting it to the role enforces access control.

Why this answer

The `sagemaker:CreatePresignedNotebookInstanceUrl` API action generates a URL that provides authenticated access to the notebook instance's JupyterLab interface. By granting this permission only to the specific IAM role, you ensure that only that role can call the API and obtain the presigned URL, effectively restricting access to the notebook. This is the native, recommended way to control access to a SageMaker notebook instance without relying on network-level controls or SSH proxies.

Exam trap

The trap here is that candidates often confuse network-level controls (VPC, security groups, disabling internet access) with identity-based access control, mistakenly thinking that restricting network access is sufficient to prevent unauthorized users from opening the notebook, when in fact the presigned URL API is the only mechanism that ties JupyterLab access to a specific IAM role.

How to eliminate wrong answers

Option A is wrong because disabling Direct Internet Access (DIA) controls whether the notebook can reach the internet, not who can open the notebook via JupyterLab; IAM authentication is already the default for SageMaker API calls, but this option does not restrict the `CreatePresignedNotebookInstanceUrl` action to a specific role. Option C is wrong because AWS Systems Manager Session Manager can provide SSH-like access to the underlying EC2 instance, but SageMaker notebook instances are managed services where direct SSH access is not the intended method for opening JupyterLab; the correct access path is through the presigned URL API, not SSH proxying. Option D is wrong because VPC and security groups control network-level traffic (e.g., which IPs can reach the notebook's endpoint), but they do not enforce IAM role-based authentication for the JupyterLab UI; a user with network access could still open the notebook if they obtain a valid presigned URL.

324
MCQmedium

A company plans to deploy a large foundation model using SageMaker JumpStart. They are concerned about costs because the model will be used intermittently. Which deployment option is MOST cost-effective for intermittent traffic?

A.Purchase SageMaker Savings Plans for the endpoint
B.Deploy as a serverless endpoint
C.Use a batch transform job for each request
D.Deploy as a real-time endpoint with a multi-model endpoint
AnswerB

Serverless endpoints scale down to zero during inactivity, reducing costs for intermittent usage.

Why this answer

Serverless endpoints in SageMaker automatically scale to zero when not in use, so you pay only for the compute time consumed during inference requests. This makes them the most cost-effective option for intermittent traffic, as you avoid paying for idle compute capacity.

Exam trap

The trap here is that candidates often confuse 'multi-model endpoints' with 'serverless' and assume they both scale to zero, but multi-model endpoints still run on provisioned instances that incur hourly costs regardless of traffic.

How to eliminate wrong answers

Option A is wrong because Savings Plans provide a discount on consistent usage but still require you to pay for a minimum baseline of compute, which is wasteful for intermittent traffic. Option C is wrong because batch transform jobs are designed for processing large datasets asynchronously, not for handling individual requests in real time, and they incur startup costs per job. Option D is wrong because a multi-model endpoint still runs on persistent instances that incur costs even when idle, and while it improves utilization across models, it does not eliminate idle costs for intermittent traffic.

325
MCQhard

Refer to the exhibit. The training job failed. What is the MOST likely cause?

A.The learning rate is too high
B.The instance type does not have SSD storage
C.The instance type does not have enough memory
D.The training data size exceeds the available EBS volume size
E.The number of epochs is too low
AnswerD

The error 'No usable scratch space' indicates disk space exhaustion on the EBS volume.

Why this answer

The error message in the exhibit indicates an 'OSError: [Errno 28] No space left on device' during the training job. This occurs when the training data size exceeds the available EBS volume size attached to the SageMaker training instance. SageMaker uses EBS volumes for storing training data and intermediate outputs; if the dataset is larger than the provisioned EBS storage, the job fails with this specific disk-full error.

Exam trap

The trap here is that candidates confuse disk space errors with memory errors (Option C) or incorrectly attribute the failure to hyperparameters (Option A or E), when the specific 'No space left on device' error directly points to insufficient EBS volume size.

How to eliminate wrong answers

Option A is wrong because a high learning rate would cause divergence or NaN loss values, not a disk space error. Option B is wrong because SSD storage is not a requirement for SageMaker training instances; the error is about disk space, not storage type. Option C is wrong because insufficient memory would manifest as an out-of-memory (OOM) error or process kill, not a 'No space left on device' error.

Option E is wrong because a low number of epochs would result in underfitting or poor convergence, not a disk space error.

326
MCQmedium

A company uses Amazon SageMaker to train a custom XGBoost model. The training job runs on a single ml.m5.large instance and takes 2 hours. To reduce training time without changing the algorithm, what should the data scientist do?

A.Increase the number of epochs
B.Use SageMaker's built-in XGBoost algorithm
C.Enable automatic model tuning
D.Use a larger instance type
AnswerD

A larger instance offers more compute resources, reducing training time for the same algorithm.

Why this answer

Increasing the instance type (e.g., from ml.m5.large to ml.m5.xlarge or ml.p3.2xlarge) provides more CPU/GPU cores, memory, and network bandwidth, directly reducing training time for the same XGBoost algorithm. Since the training job is compute-bound on a single instance, scaling vertically is the most straightforward way to accelerate training without modifying the algorithm or hyperparameters.

Exam trap

The MLA-C01 exam often tests the misconception that changing the algorithm variant (e.g., from custom to built-in) or adding tuning will speed up a single training job, when in reality only scaling compute resources (larger instance or distributed training) directly reduces wall-clock training time.

How to eliminate wrong answers

Option A is wrong because increasing the number of epochs would increase training time, not reduce it, and XGBoost does not use epochs (it uses boosting rounds). Option B is wrong because the company is already using a custom XGBoost model, and SageMaker's built-in XGBoost algorithm is the same underlying algorithm; switching to it would not change training time unless hyperparameters or instance type are altered. Option C is wrong because automatic model tuning (hyperparameter optimization) runs multiple training jobs to find optimal hyperparameters, which increases total time and cost, not reduces the training time of a single job.

327
Multi-Selecteasy

A data scientist is evaluating data quality for a machine learning project. The dataset has missing values, outliers, and inconsistent formatting. Which TWO steps should the data scientist perform during the data preparation phase? (Choose 2.)

Select 2 answers
A.Normalize text data to lowercase
B.Remove all outliers blindly
C.Standardize numeric features
D.Use a large neural network to handle all transformations
E.Impute missing values using mean or median
AnswersC, E

Standardization (e.g., z-score) helps many algorithms converge faster.

Why this answer

Standardizing numeric features (Option C) is a critical data preparation step because it rescales features to have zero mean and unit variance, which prevents features with larger magnitudes from dominating distance-based algorithms like k-nearest neighbors or gradient descent optimization. This transformation is essential for many machine learning models to converge faster and perform correctly.

Exam trap

AWS often tests the distinction between data preparation steps that are universally applicable (like imputation and standardization) versus those that are task-specific or harmful (like blind outlier removal or using complex models for preprocessing), tempting candidates to choose options that seem plausible but are technically incorrect.

328
MCQmedium

A machine learning engineer wants to reduce costs for a SageMaker real-time endpoint that experiences predictable traffic patterns with low traffic at night and high traffic during business hours. Which approach is most cost-effective while maintaining availability?

A.Use a single large instance type that can handle peak traffic at all times
B.Configure an auto-scaling policy with target tracking based on the Invocations metric
C.Set up a scheduled scaling policy that manually adjusts instances at fixed times
D.Use SageMaker Inference Recommender to find the optimal instance type and then manually set instance count
AnswerB

Target tracking scales instances up/down based on demand, reducing costs during low traffic while handling peaks.

Why this answer

Target tracking scaling policies automatically adjust instance count based on a metric like invocation count or CPU utilization. Step scaling can also be used but target tracking is simpler and more cost-effective for predictable patterns.

329
Multi-Selecthard

A team is deploying a model using SageMaker Pipelines. They have defined a pipeline with steps: preprocessing, training, evaluation, and conditional registration. The evaluation step produces a JSON file with metrics. If accuracy > 0.9, the model is registered; else, the pipeline fails. Which TWO statements about this pipeline are correct? (Choose TWO.)

Select 2 answers
A.The evaluation step must output a JSON file in a specific format to be used by the condition step.
B.The condition step can reference the accuracy value using a pipeline parameter or property file.
C.The conditional step should be implemented as a separate Lambda function called from the pipeline.
D.The pipeline will automatically retry the training step if the condition fails.
E.The model registration step should be placed before the condition step to ensure the model is always registered.
AnswersA, B

SageMaker Pipelines expects the evaluation metrics in a JSON file for condition evaluation.

Why this answer

The SageMaker Pipelines condition step expects the evaluation step to output a JSON file with a specific format, typically containing a metrics dictionary. The condition step then uses a property file to extract the accuracy value from that JSON, enabling the conditional logic to evaluate whether accuracy > 0.9.

Exam trap

The trap here is that candidates may confuse the built-in ConditionStep with a Lambda-based custom step, or assume that pipeline failure triggers automatic retries, when in fact SageMaker Pipelines requires explicit retry policies and does not retry on condition failures.

330
MCQeasy

A data scientist is training a deep learning model on SageMaker and notices that the training loss oscillates and does not converge. They want to debug this issue. Which SageMaker feature can they use to monitor and analyze the training process?

A.SageMaker Profiler
B.SageMaker Gradient Descent optimization
C.SageMaker Debugger
D.SageMaker Automatic Model Tuning
AnswerC

Correct: Debugger can monitor training metrics and alert on anomalies.

Why this answer

SageMaker Debugger is the correct feature because it provides real-time monitoring and analysis of training metrics, including loss values, gradients, and weights. It can automatically detect issues like oscillating or non-converging loss by setting rules (e.g., loss not decreasing) and emit alerts or capture tensors for later analysis, directly addressing the data scientist's need to debug training instability.

Exam trap

AWS often tests the distinction between monitoring training metrics (Debugger) versus optimizing hyperparameters (Automatic Model Tuning) or profiling system resources (Profiler), leading candidates to confuse Debugger with tuning or profiling features.

How to eliminate wrong answers

Option A is wrong because SageMaker Profiler is designed to analyze system-level performance (e.g., CPU/GPU utilization, I/O bottlenecks) and not training metrics like loss convergence. Option B is wrong because SageMaker does not offer a feature named 'Gradient Descent optimization'; gradient descent is an algorithm, not a SageMaker service, and this option represents a misconception that SageMaker provides a built-in optimizer for debugging. Option D is wrong because SageMaker Automatic Model Tuning (hyperparameter tuning) is used to find optimal hyperparameters, not to monitor or debug the training process in real time.

331
MCQmedium

A team has a large number of models that need to be deployed for batch inference weekly. They want to minimize cost and management overhead. Which approach is MOST efficient?

A.Use SageMaker Pipelines to run inference as part of the pipeline.
B.Use SageMaker Batch Transform with separate jobs for each model.
C.Create a single SageMaker endpoint for all models and update the model periodically.
D.Deploy each model to a separate SageMaker endpoint and delete after use.
AnswerB

Batch Transform jobs are ephemeral and cost-effective for batch workloads.

Why this answer

SageMaker Batch Transform is the most efficient approach for weekly batch inference because it automatically provisions and terminates compute resources for each job, minimizing cost and management overhead. Running separate jobs for each model allows independent scaling and avoids the complexity of managing persistent endpoints or multi-model hosting for batch workloads.

Exam trap

AWS often tests the distinction between batch and real-time inference, where candidates mistakenly choose persistent endpoints (Option C or D) for batch workloads, overlooking that Batch Transform is purpose-built for cost-efficient, ephemeral batch processing.

How to eliminate wrong answers

Option A is wrong because SageMaker Pipelines is an orchestration service for building and managing ML workflows, not optimized for running batch inference; using it for inference would add unnecessary complexity and cost without the automatic resource teardown of Batch Transform. Option C is wrong because a single endpoint for all models would require frequent model updates and cannot efficiently handle batch inference at scale, leading to idle costs and management overhead. Option D is wrong because deploying each model to a separate endpoint and deleting after use incurs significant provisioning delays and cost for endpoint creation/teardown, whereas Batch Transform handles this automatically with managed instances.

332
MCQmedium

A company wants to deploy a foundation model from SageMaker JumpStart with the lowest possible inference cost, given that latency requirements are flexible. They have a mix of traffic volumes. Which approach should they take?

A.Use SageMaker Savings Plans to get a discount on on-demand instances
B.Deploy the model on the largest GPU instance to handle peak load
C.Deploy the model on a serverless inference endpoint
D.Select the smallest instance type that meets throughput requirements and enable automatic scaling
AnswerD

Smallest suitable instance reduces base cost; auto-scaling adds capacity only when needed, minimizing overall cost.

Why this answer

SageMaker JumpStart provides pre-built models; for cost optimization, choosing the smallest suitable instance type and enabling auto-scaling based on demand reduces cost while handling varying traffic.

333
MCQmedium

A company wants to deploy a machine learning model using infrastructure as code to ensure reproducibility. They need to define the SageMaker Studio domain, user profiles, and the endpoint configuration. Which tool should they use?

A.AWS CloudFormation or AWS CDK
B.SageMaker Pipelines
C.AWS Step Functions
D.SageMaker Studio
AnswerA

Both are IaC services that can define and provision SageMaker resources in a reproducible manner.

Why this answer

AWS CloudFormation and AWS CDK are infrastructure-as-code (IaC) tools that allow you to define, provision, and manage AWS resources declaratively. For this use case, they can model the entire SageMaker Studio domain, user profiles, and endpoint configuration in templates or code, ensuring reproducibility and version control. This aligns directly with the requirement to deploy ML infrastructure as code.

Exam trap

The trap here is that candidates confuse SageMaker Pipelines (a CI/CD service for ML steps) with infrastructure-as-code tools, forgetting that Pipelines does not manage underlying infrastructure resources like Studio domains or endpoint configurations.

How to eliminate wrong answers

Option B (SageMaker Pipelines) is wrong because it is a purpose-built CI/CD service for ML workflows (training, tuning, batch transforms), not for defining and provisioning infrastructure resources like Studio domains or endpoints. Option C (AWS Step Functions) is wrong because it is a serverless workflow orchestration service for coordinating distributed applications and microservices, not for defining infrastructure resources declaratively. Option D (SageMaker Studio) is wrong because it is the web-based IDE for ML development, not a tool for defining or deploying infrastructure as code.

334
MCQmedium

An ML engineer creates a SageMaker inference pipeline with two containers: a preprocessor and a predictor. The preprocessor is a lightweight Python script that transforms input data. How should the engineer structure the endpoints to ensure both containers run sequentially?

A.Use batch transform with two transform jobs chained together.
B.Use an AWS Lambda function as a proxy to invoke the preprocessor and then the predictor separately.
C.Combine the preprocessor and predictor into a single Docker container.
D.Create a PipelineModel in SageMaker with both containers listed in order: first preprocessor, then predictor.
AnswerD

PipelineModel automatically sends the output of the first container as input to the second.

Why this answer

SageMaker's PipelineModel allows you to define an ordered sequence of containers that are executed sequentially within a single HTTPS endpoint. When an inference request is made, the preprocessor container transforms the input, and the output is passed directly to the predictor container, all within the same endpoint invocation. This ensures low latency and tight coupling without needing external orchestration.

Exam trap

The trap here is that candidates often assume chaining containers requires external orchestration (like Lambda or separate jobs), but SageMaker's PipelineModel natively supports sequential container execution within a single endpoint, which is the simplest and most efficient approach.

How to eliminate wrong answers

Option A is wrong because Batch Transform runs separate transform jobs asynchronously, not as a real-time sequential pipeline; chaining two jobs introduces intermediate storage and latency, and is not designed for low-latency inference endpoints. Option B is wrong because using an AWS Lambda function as a proxy adds unnecessary network hops, cold-start latency, and complexity; SageMaker provides native PipelineModel support for sequential container execution without external orchestration. Option C is wrong because combining the preprocessor and predictor into a single container violates the separation of concerns and defeats the purpose of a modular inference pipeline; it also prevents independent scaling and updating of the preprocessing logic.

335
MCQeasy

Which SageMaker feature compiles a trained model into an optimized binary for a specific hardware target (e.g., Intel, ARM, NVIDIA, or edge devices) to improve inference performance?

A.SageMaker Model Monitor
B.SageMaker Neo
C.Amazon Elastic Inference
D.SageMaker Clarify
AnswerB

Neo compiles models to run efficiently on target hardware including edge devices.

Why this answer

SageMaker Neo is a model compilation service that optimizes models for specific hardware targets. Amazon Elastic Inference attaches GPU acceleration to endpoints, but does not compile models. Model Monitor monitors quality.

SageMaker Clarify explains predictions.

336
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

Model parallelism partitions the model across GPUs, enabling training of large models.

Why this answer

For large models that do not fit into GPU memory, model parallelism is required. Data parallelism replicates the model on each GPU, which would cause out-of-memory errors.

337
MCQmedium

A company uses SageMaker Model Registry to manage model versions. They want to automate the approval of models that pass automated evaluation, but require manual approval for others. Which Model Registry feature supports this workflow?

A.Approval workflow via pipeline Condition step
B.Cross-account deployment
C.Model versioning
D.Model lineage
AnswerA

A pipeline Condition step can set the model status to Approved or PendingManualApproval based on metrics.

Why this answer

Model Registry supports approval statuses (PendingManualApproval, Approved, Rejected). Automated evaluation can set status to Approved, while borderline cases can be set to PendingManualApproval.

338
MCQmedium

A company deploys a model for fraud detection. They want to monitor if the model's predictions become less accurate over time due to changes in the underlying data distribution, but they do not have immediate access to ground truth labels. Which type of drift should they monitor as a proxy?

A.Feature attribution drift
B.Model quality drift
C.Data drift
D.Concept drift
AnswerC

Data drift (input distribution change) can be monitored without labels; significant data drift may indicate potential concept drift.

Why this answer

Data drift (option C) is the correct proxy to monitor when ground truth labels are unavailable because it detects changes in the input feature distribution over time. If the underlying data distribution shifts, the model's predictions are likely to become less accurate even if the relationship between features and labels remains stable. This allows teams to trigger retraining or investigation before model quality degrades.

Exam trap

AWS often tests the distinction between data drift and concept drift, and the trap here is that candidates confuse 'changes in data distribution' (data drift) with 'changes in the relationship between features and labels' (concept drift), assuming both require labels when only concept drift does.

How to eliminate wrong answers

Option A is wrong because feature attribution drift measures changes in the importance of features to the model's predictions, not shifts in the input data distribution itself, and it still requires some form of baseline comparison that may not directly indicate accuracy loss without labels. Option B is wrong because model quality drift requires access to ground truth labels to compute metrics like accuracy or F1-score, which the scenario explicitly states are unavailable. Option D is wrong because concept drift refers to changes in the underlying relationship between features and the target variable (the function mapping inputs to outputs), which cannot be detected without labels to compare predicted vs. actual outcomes.

339
MCQmedium

A company needs to serve real-time predictions from a large ensemble of three deep learning models, each requiring different inference environments (PyTorch, TensorFlow, MXNet). Which SageMaker endpoint type supports running multiple inference containers together?

A.Multi-model endpoint
B.Real-time endpoint with a single container
C.Multi-container endpoint
D.Asynchronous endpoint
AnswerC

Multi-container endpoints support multiple inference containers, each with its own environment.

Why this answer

Amazon SageMaker multi-container endpoints allow you to run multiple inference containers (e.g., PyTorch, TensorFlow, MXNet) within a single endpoint, each handling different models or inference environments. This is achieved by deploying multiple containers behind a single endpoint with a serial or direct invocation pattern, enabling real-time predictions from the ensemble without managing separate endpoints.

Exam trap

The trap here is that candidates often confuse 'multi-model endpoint' (multiple models in one container) with 'multi-container endpoint' (multiple containers with different environments), leading them to incorrectly select Option A.

How to eliminate wrong answers

Option A is wrong because a multi-model endpoint hosts multiple models within a single container, not multiple containers with different inference environments; it uses a shared serving container and loads models dynamically from Amazon S3. Option B is wrong because a real-time endpoint with a single container can only run one inference environment, making it impossible to serve the three different deep learning frameworks required by the ensemble. Option D is wrong because an asynchronous endpoint is designed for large payloads and long processing times, not for real-time predictions, and it still uses a single container per endpoint.

340
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 document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

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

341
MCQeasy

An organization stores raw data in Amazon S3 as CSV files. They need to perform serverless data transformation and convert the data to Parquet format for efficient ML training. Which AWS service is most appropriate?

A.AWS Glue
B.Amazon EMR
C.Amazon Athena
D.Amazon Redshift
AnswerA

AWS Glue is a serverless ETL service that can transform data formats.

Why this answer

AWS Glue is the most appropriate service because it is a fully managed, serverless ETL service designed specifically for data transformation tasks like converting CSV to Parquet. It automatically handles schema inference, data partitioning, and optimization for ML training workloads without requiring infrastructure management.

Exam trap

The trap here is that candidates often confuse Amazon Athena's ability to query Parquet data with the ability to transform data into Parquet, but Athena is a query engine, not an ETL transformation service.

How to eliminate wrong answers

Option B (Amazon EMR) is wrong because it requires provisioning and managing clusters, which contradicts the 'serverless' requirement; it is better suited for large-scale big data processing with frameworks like Spark or Hadoop, not simple serverless transformations. Option C (Amazon Athena) is wrong because it is an interactive query service for analyzing data directly in S3 using SQL, not a transformation engine; it cannot convert file formats like CSV to Parquet. Option D (Amazon Redshift) is wrong because it is a data warehouse for analytics and SQL-based querying, not a serverless transformation service; it requires loading data into a cluster and does not natively convert CSV to Parquet in S3.

342
Multi-Selectmedium

A machine learning engineer wants to reduce costs for hyperparameter tuning jobs that run for several hours. The jobs are fault-tolerant and can be interrupted. Which TWO actions should they take? (Select TWO.)

Select 2 answers
A.Use on-demand instances for reliability
B.Enable SageMaker Managed Spot Training
C.Use spot instances for the training jobs
D.Use ml.c5 instances instead of ml.p3
E.Increase the number of parallel training jobs
AnswersB, C

Managed Spot Training automates the use of spot instances and handles interruptions.

343
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 is designed for anomaly detection on IP addresses and events.

Why this answer

IP Insights is a built-in algorithm for learning representations of IP addresses and detecting anomalous login patterns, commonly used for fraud detection.

344
MCQmedium

A data scientist is preparing text data for sentiment analysis. They need to convert the text into numerical features while reducing the impact of common words. Which feature extraction method should they use?

A.Word2Vec embeddings
B.TF-IDF vectorization
C.Label encoding of each word
D.CountVectorizer with n-grams
AnswerB

TF-IDF applies inverse document frequency weighting to reduce the influence of frequently occurring terms.

Why this answer

TF-IDF (Term Frequency-Inverse Document Frequency) downweights common words across documents, making it suitable for reducing the impact of stop words.

345
Multi-Selecthard

A machine learning engineer is designing a SageMaker Pipeline that includes a training step, a processing step for evaluation, and a condition step to decide whether to register the model. The pipeline should support caching to avoid redundant runs when inputs haven't changed. Which three steps must have caching enabled? (Select THREE.)

Select 3 answers
A.Training step
B.Transform step (if used)
C.Processing step (evaluation)
D.Condition step
E.RegisterModel step
AnswersA, C, E

Training outputs a model artifact; caching avoids retraining if inputs unchanged.

Why this answer

For caching to avoid redundant runs, the steps that produce outputs that can be reused must have caching enabled. The processing step (evaluation) and training step both generate outputs that can be cached if their inputs (code, data, hyperparameters) remain the same. The condition step does not produce outputs to cache; it just branches.

The RegisterModel step typically registers metadata, but its inputs (model artifact, metrics) may be generated by previous steps; enabling caching on the RegisterModel step can also avoid re-running if the same model artifact is already registered.

346
MCQhard

A financial services company operates a real-time inference endpoint for a fraud detection model on Amazon SageMaker. The model was trained on historical transaction data from 2023. Over the past month, the model's precision has dropped from 92% to 78%, while recall remains high at 95%. The data science team suspects data drift and has already enabled SageMaker Model Monitor with data capture and a baseline from the training data. The latest monitoring report indicates no statistically significant drift in any of the input features. The team also verified that the inference code and model artifact have not changed. Despite the stable feature distributions, the model is misclassifying an increasing number of legitimate transactions as fraudulent (false positives). The business is concerned about the impact on customer experience. What is the best course of action?

A.Replace the model with a more complex algorithm such as a gradient-boosted tree.
B.Retrain the model using the most recent 30 days of transaction data with automated retraining pipelines.
C.Increase the data capture sampling percentage from 10% to 100% for more detailed analysis.
D.Investigate recent ground truth labels to check for label drift or changes in the fraud definition.
AnswerD

Label drift occurs when the underlying relationship between features and labels changes. Collecting and analyzing recent labels can confirm if the fraud criteria have shifted.

Why this answer

The scenario describes a drop in precision without feature drift, which indicates label drift – the relationship between features and labels has changed. The most effective next step is to collect and analyze recent ground truth labels to confirm label drift. Retraining on recent data without addressing the root cause may not help if the new labels are also stale or incorrect.

Increasing data capture rate will not diagnose the issue. Changing the algorithm is unlikely to help without understanding the cause.

347
MCQeasy

Refer to the exhibit. The data scientist wants to update the endpoint to use a new model version without downtime. Which approach should they use?

A.Delete the existing endpoint and create a new one
B.Update the endpoint's model name directly
C.Create a new endpoint configuration with a second variant and update the endpoint
D.Use SageMaker Model Monitor to automatically switch
AnswerC

This allows a blue/green deployment with zero downtime by shifting traffic gradually or instantly.

Why this answer

It uses SageMaker's blue/green deployment pattern: creating a new endpoint configuration with a second variant (the new model version) and updating the endpoint shifts traffic gradually or instantly without downtime. This approach leverages the endpoint's ability to host multiple variants and route traffic between them, ensuring zero interruption during the update.

Exam trap

The trap here is that candidates confuse 'updating the endpoint' with 'modifying the existing configuration directly' (Option B), not realizing that SageMaker enforces immutability of endpoint configurations and requires a new configuration to change the model or variant.

How to eliminate wrong answers

Option A is wrong because deleting the existing endpoint and creating a new one causes downtime—the endpoint is unavailable during the deletion and recreation process. Option B is wrong because updating the endpoint's model name directly is not a supported operation; SageMaker endpoints are immutable once created, and you must use a new endpoint configuration to change the model. Option D is wrong because SageMaker Model Monitor is designed for monitoring data quality and drift, not for automatically switching model versions; it has no mechanism to update endpoint variants.

348
Multi-Selectmedium

A team wants to secure SageMaker endpoints for a healthcare application. They must ensure data is encrypted at rest and in transit, and that the endpoint can only be accessed from within a VPC. Which THREE steps should they take? (Select THREE)

Select 3 answers
A.Use AWS KMS to encrypt the model artifacts and endpoint data
B.Store encryption keys in a public S3 bucket
C.Set the endpoint to use network isolation mode
D.Configure the endpoint to use a VPC and disable public access
E.Enable inter-container traffic encryption using TLS
AnswersA, D, E

KMS provides encryption at rest for data and models.

349
MCQmedium

A data scientist is using Amazon SageMaker Data Wrangler to create a data preparation flow. After completing the flow, the scientist wants to export the processed data to a feature group in Amazon SageMaker Feature Store for reuse in multiple training jobs. Which export option should the scientist choose in Data Wrangler?

A.Export to S3
B.Export as a Python script
C.Save as a Jupyter notebook
D.Export to Feature Store
AnswerD

Data Wrangler has a built-in destination to export directly to a Feature Store feature group.

Why this answer

Data Wrangler can directly export processed data to a SageMaker Feature Store feature group, making it available for future training and inference. Exporting to S3 requires manual steps to ingest into Feature Store; saving as a Jupyter notebook or Python script does not directly create a feature group.

350
MCQhard

During data quality assessment, a data scientist discovers that a numeric feature has many missing values. The feature is expected to have a skewed distribution. The scientist wants to impute missing values in a way that preserves the distribution shape and does not introduce bias toward the center. Which imputation strategy is MOST appropriate?

A.Median imputation
B.Mode imputation
C.Mean imputation
D.Drop rows with missing values
AnswerA

Median imputation is robust to skewness and outliers, preserving the central tendency without distorting the distribution shape.

Why this answer

Median imputation is robust to skewness and does not pull imputed values toward the tail, preserving the overall distribution shape. Mean imputation can be affected by outliers and skewness. Mode imputation is for categorical data, and dropping rows may remove useful data.

351
Multi-Selectmedium

A data scientist is using Amazon SageMaker Data Wrangler to prepare a dataset. Which TWO features of Data Wrangler can be used to handle imbalanced classification problems? (Choose two.)

Select 2 answers
A.The Random Oversampling transform to duplicate minority class instances.
B.The SMOTE transform to generate synthetic samples for the minority class.
C.The Drop Duplicates transform to remove redundant rows.
D.Standardization to scale numerical features.
E.One-hot encoding for categorical variables.
AnswersA, B

Oversampling increases the minority class size.

Why this answer

Amazon SageMaker Data Wrangler includes a built-in Random Oversampling transform that duplicates instances of the minority class to balance the class distribution. This directly addresses imbalanced classification by increasing the representation of the underrepresented class without generating synthetic data.

Exam trap

The trap here is that candidates may confuse data preprocessing techniques (like scaling or encoding) with class imbalance handling methods, leading them to select Standardization or one-hot encoding as solutions for imbalanced data.

352
MCQmedium

A data scientist is using SageMaker Autopilot to automatically build a binary classification model. The dataset is imbalanced. Which action will Autopilot take by default to address class imbalance?

A.Perform random undersampling of the majority class
B.Ignore the imbalance and proceed with raw data
C.Apply SMOTE oversampling
D.Use class balancing weights
AnswerD

Autopilot automatically uses class weights when imbalance is detected.

Why this answer

Autopilot automatically applies techniques to handle imbalanced data, such as class balancing weights, when it detects imbalance. It does not require manual configuration. Ensemble selection is part of Autopilot but not specifically for imbalance.

SMOTE and undersampling are not built-in defaults.

353
MCQeasy

A company uses Amazon SageMaker to train and deploy machine learning models. They need to run batch predictions on 10 TB of data stored in Amazon S3 every night. The model is a PyTorch neural network that fits in GPU memory. The predictions are not time-sensitive, but the job must complete within 8 hours. Which approach would be the MOST cost-effective?

A.Use SageMaker processing job with a script to load the model and run inference.
B.Create a real-time endpoint and send all data as a large batch.
C.Use multiple ml.c5.4xlarge instances in a batch transform job with custom partitioning.
D.Use SageMaker batch transform with a single ml.p3.2xlarge instance.
AnswerD

A single GPU instance can handle the workload within 8 hours, minimizing cost. Batch transform is designed for high-throughput inference.

Why this answer

The most cost-effective because SageMaker batch transform with a single ml.p3.2xlarge instance provides GPU acceleration for the PyTorch neural network, which fits in GPU memory, and can process 10 TB of data within 8 hours. Batch transform automatically handles data partitioning and inference, eliminating the need for custom orchestration, and the single instance avoids the overhead and cost of multiple instances. The ml.p3.2xlarge offers a balance of GPU compute and cost, making it ideal for non-time-sensitive nightly batch jobs.

Exam trap

AWS often tests the misconception that multiple CPU instances are more cost-effective than a single GPU instance for batch inference, but the trap here is that GPU acceleration dramatically reduces processing time and instance count for neural networks, making a single GPU instance cheaper overall than a cluster of CPU instances.

How to eliminate wrong answers

Option A is wrong because SageMaker processing jobs are designed for data preprocessing and postprocessing, not optimized for running inference on large datasets; they lack built-in inference features like automatic data partitioning and model loading, leading to higher development effort and potential inefficiency. Option B is wrong because real-time endpoints are intended for low-latency, synchronous requests and are not designed for batch processing; sending 10 TB of data as a large batch would overwhelm the endpoint, cause timeouts, and incur high costs due to per-inference pricing and idle time. Option C is wrong because using multiple ml.c5.4xlarge instances (CPU-only) for a GPU-optimized PyTorch neural network would be significantly slower and more expensive per inference compared to a single GPU instance, as CPU instances lack the parallel processing power needed for neural network inference, and custom partitioning adds unnecessary complexity.

354
MCQmedium

A company ingests streaming transaction data from multiple sources using Amazon Kinesis Data Streams. The data must be transformed (e.g., JSON parsing, data type conversions) and then stored in Amazon S3 for ML training. The transformation logic may change over time. Which approach provides the greatest flexibility and ease of maintenance?

A.Use a custom application running on Amazon EC2 with the Kinesis Client Library to transform and write to S3.
B.Use Kinesis Data Firehose with a Lambda function for transformation and delivery to S3.
C.Use Kinesis Data Analytics with SQL queries to transform data and output to S3.
D.Use Kinesis Data Streams directly with a Lambda consumer to transform and store in S3.
AnswerB

Firehose with Lambda provides serverless, customizable transformation and automatic delivery to S3, with easy logic updates.

Why this answer

Amazon Kinesis Data Firehose can invoke an AWS Lambda function for data transformation before delivering to S3. Lambda allows custom, easily updatable transformation logic. Using a Kinesis Client Library (KCL) on EC2 requires managing servers, and Kinesis Data Analytics is more suited for real-time analytics, not simple transformations.

355
MCQmedium

A company uses SageMaker Processing jobs to clean customer transaction data. The processing script runs on a single ml.m5.large instance and takes 30 minutes to process 50 GB of data in CSV format. To reduce processing time, the company wants to process 200 GB of data within 1 hour. Which combination of changes should the company make?

A.Run the job in local mode with a larger EBS volume.
B.Increase VolumeSizeInGB to 100 and use gzip compression.
C.Increase InstanceCount to 4 and convert the data to Parquet format.
D.Use a larger instance type (e.g., ml.r5.4xlarge) and keep the same script.
AnswerC

Multiple instances provide parallelism, and Parquet reduces I/O.

Why this answer

Increasing InstanceCount to 4 allows parallel processing of the 200 GB dataset across multiple ml.m5.large instances, each handling 50 GB, which directly reduces processing time. Converting the data from CSV to Parquet format further accelerates processing by enabling columnar storage and predicate pushdown, reducing I/O and CPU overhead. Together, these changes can achieve the goal of processing 200 GB within 1 hour, as the original 50 GB took 30 minutes on a single instance.

Exam trap

The trap here is that candidates often assume vertical scaling (larger instance) is sufficient, but the MLA-C01 exam tests understanding that horizontal scaling combined with data format optimization (Parquet) is required to meet strict time constraints for large datasets.

How to eliminate wrong answers

Option A is wrong because running the job in local mode with a larger EBS volume does not distribute the workload; it still uses a single instance, and local mode is typically for testing, not scaling to handle 4x the data within a shorter time. Option B is wrong because increasing VolumeSizeInGB to 100 and using gzip compression only addresses storage and reduces file size, but does not parallelize the processing; gzip compression is not splittable for parallel reads, so it can actually slow down distributed processing. Option D is wrong because using a larger instance type (e.g., ml.r5.4xlarge) provides more CPU and memory but does not scale horizontally; a single instance, even a larger one, would likely still take longer than 1 hour to process 200 GB, as the original 50 GB took 30 minutes on a smaller instance, and scaling vertically has diminishing returns for I/O-bound CSV processing.

356
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

The base model is the starting point for RLHF fine-tuning.

Why this answer

RLHF typically requires: a pre-trained base model to start, a reward model trained on human preferences, and a reinforcement learning algorithm (like PPO) to update the base model. A LoRA adapter is optional but not required. A classifier is not the same as a reward model.

357
MCQeasy

A data scientist is using Amazon SageMaker Data Wrangler to prepare a dataset. They need to identify potential bias in the data before training. Which SageMaker feature should they use?

A.Amazon SageMaker Model Monitor
B.Amazon SageMaker Debugger
C.Amazon SageMaker Clarify
D.Amazon SageMaker Pipelines
AnswerC

Clarify provides bias detection and explainability, and is available in Data Wrangler.

Why this answer

Amazon SageMaker Clarify is the correct feature because it is specifically designed to detect bias in datasets and machine learning models. It provides built-in bias metrics (e.g., pre-training bias) and can generate bias reports during data preparation, directly addressing the need to identify potential bias before training.

Exam trap

The trap here is that candidates confuse SageMaker Clarify with SageMaker Model Monitor or Debugger, assuming any monitoring or debugging tool can detect bias, but only Clarify provides dedicated bias analysis for both data and models.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker Model Monitor is used to monitor deployed models for data drift and quality issues in production, not for detecting bias in training data. Option B is wrong because Amazon SageMaker Debugger is designed to debug training jobs by capturing tensors and metrics, not for bias detection in datasets. Option D is wrong because Amazon SageMaker Pipelines is a workflow orchestration service for building and managing ML pipelines, not a tool for bias analysis.

358
MCQmedium

A company uses SageMaker Ground Truth to label a dataset for object detection. They set up a labeling job with a private workforce. After labeling, they export the dataset and train a model using SageMaker's built-in object detection algorithm. The model achieves high accuracy on the test set but low accuracy on a small holdout set that was manually labeled by an expert. What might be the issue?

A.The dataset size is too small.
B.The object detection algorithm is not suitable.
C.The holdout set uses a different labeling schema.
D.The labeling job had insufficient worker consensus.
AnswerD

Correct: Low consensus leads to noisy training labels, degrading model quality.

Why this answer

Low worker consensus in a Ground Truth labeling job indicates inconsistent annotations among workers, leading to noisy labels. When the model trains on these inconsistent labels, it learns patterns that may not generalize to a clean, expert-labeled holdout set, causing a significant accuracy drop despite high performance on the test set (which likely shares the same labeling noise). Ground Truth uses a 'consensus' mechanism to finalize labels, and insufficient consensus means the final labels may be unreliable for training a robust object detection model.

Exam trap

The trap here is that candidates may assume 'high accuracy on the test set' always indicates a good model, but the question tests the understanding that label quality from Ground Truth (especially with low worker consensus) can create a false sense of performance when the test set shares the same labeling errors.

How to eliminate wrong answers

Option A is wrong because dataset size alone does not explain the discrepancy between high test accuracy and low holdout accuracy; a small dataset would typically cause poor performance across both sets, not a selective drop. Option B is wrong because SageMaker's built-in object detection algorithm (e.g., SSD or Faster R-CNN) is well-suited for object detection tasks and achieved high accuracy on the test set, indicating it is appropriate for the problem. Option C is wrong because a different labeling schema would affect the label format or classes, but the question states the holdout set was manually labeled by an expert, implying it follows the same schema; the issue is label quality, not schema mismatch.

359
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 uses adaptive resource allocation and early stopping to efficiently explore the hyperparameter space.

Why this answer

SageMaker Automatic Model Tuner supports Bayesian, Random, and Hyperband strategies. Hyperband is an early stopping-based method that allocates resources adaptively. The 'Hyperband' strategy should be selected explicitly.

360
MCQeasy

A data science team deploys a real-time inference endpoint on Amazon SageMaker. They want to monitor for data drift in the input features over time. Which AWS service should they use to capture and analyze the input data distribution?

A.Amazon Athena
B.AWS CloudTrail
C.Amazon SageMaker Model Monitor
D.Amazon CloudWatch Logs
AnswerC

Model Monitor captures input data and computes statistics to detect drift.

Why this answer

Amazon SageMaker Model Monitor is the correct service because it is specifically designed to continuously monitor machine learning models in production for data drift and quality issues. It automatically captures input data distributions from real-time inference endpoints and compares them against a baseline to detect statistical changes, alerting the team when drift occurs.

Exam trap

The trap here is that candidates confuse general logging and monitoring services (CloudWatch Logs, CloudTrail) with the specialized model monitoring service, overlooking that SageMaker Model Monitor provides built-in statistical drift detection rather than just raw log storage.

How to eliminate wrong answers

Option A is wrong because Amazon Athena is an interactive query service for analyzing data in Amazon S3 using standard SQL, not a tool for capturing or monitoring data drift from SageMaker endpoints. Option B is wrong because AWS CloudTrail records API activity for auditing and governance, not input data distributions or model performance metrics. Option D is wrong because Amazon CloudWatch Logs stores and monitors log files and metrics, but it lacks built-in capabilities for statistical drift detection or baseline comparison of feature distributions.

361
MCQeasy

A data science team needs to deploy a PyTorch model for real-time inference with low latency. The model requires GPU acceleration. Which SageMaker endpoint configuration should they use?

A.Create a multi-model endpoint using ml.m5.large instances
B.Create a serverless endpoint with memory set to 6144 MB
C.Create a batch transform job using an ml.c5.xlarge instance
D.Create a real-time endpoint using an ml.p3.2xlarge instance
AnswerD

Real-time endpoints support GPU instances for low-latency inference.

Why this answer

Real-time SageMaker endpoints with GPU instances like ml.p3.2xlarge are specifically designed for low-latency, synchronous inference with GPU acceleration. PyTorch models requiring GPU must use instance types that support NVIDIA CUDA, and the ml.p3 family provides the necessary GPU compute for real-time predictions.

Exam trap

The trap here is that candidates may confuse batch transform jobs or serverless endpoints with real-time inference, overlooking the explicit GPU requirement and the need for persistent, low-latency compute resources.

How to eliminate wrong answers

Option A is wrong because multi-model endpoints using ml.m5.large instances are CPU-based and lack GPU acceleration, making them unsuitable for PyTorch models that require GPU for low-latency inference. Option B is wrong because serverless endpoints do not support GPU acceleration; they are limited to CPU compute and cannot meet the GPU requirement. Option C is wrong because batch transform jobs are designed for asynchronous, offline inference on large datasets, not for real-time, low-latency predictions.

362
MCQmedium

An ML team uses SageMaker Model Registry to manage model versions. They want to automatically deploy a model to a staging endpoint when a new version is approved. Which AWS service can orchestrate this?

A.Amazon EventBridge
B.AWS Lambda
C.SageMaker Pipelines
D.AWS Step Functions
AnswerD

Step Functions can coordinate multiple steps including approval and deployment.

Why this answer

AWS Step Functions is the correct choice because it can orchestrate a workflow that triggers on a Model Registry event (e.g., model version approval) and then deploys the model to a staging endpoint using SageMaker SDK calls. Step Functions provides built-in integration with SageMaker via service integrations, allowing you to chain approval checks, model creation, and endpoint deployment without custom code.

Exam trap

The trap here is that candidates often pick SageMaker Pipelines (Option C) because it is associated with model workflows, but Pipelines is for training and registration, not for post-approval deployment orchestration, which requires a state machine like Step Functions.

How to eliminate wrong answers

Option A is wrong because Amazon EventBridge can detect the approval event but cannot directly orchestrate the deployment workflow; it would need to invoke another service like Step Functions or Lambda to perform the deployment steps. Option B is wrong because AWS Lambda can execute deployment logic but lacks native workflow orchestration features like retries, branching, or state management, making it less suitable for multi-step orchestration. Option C is wrong because SageMaker Pipelines is designed for building, training, and registering ML models, not for orchestrating post-approval deployment to a staging endpoint; it does not natively trigger on Model Registry approval events.

363
MCQhard

A practitioner is using SageMaker Automatic Model Tuning with Hyperband strategy. They want to stop underperforming trials early to save compute. Which Hyperband parameter controls the aggressiveness of early stopping?

A.strategy
B.max_jobs
C.max_parallel_jobs
D.early_stopping_type
AnswerD

Hyperband uses early stopping; the 'early_stopping_type' parameter controls whether to apply it.

364
MCQeasy

A data scientist discovers that a dataset for binary classification contains 95% negative samples and 5% positive samples. Which technique is MOST appropriate to address the class imbalance?

A.Use SMOTE to generate synthetic samples for the minority class
B.Remove all samples from the majority class
C.Increase the learning rate of the model
D.Downsample the majority class to 5% of the original size
AnswerA

SMOTE creates synthetic examples, balancing the classes without losing data.

Why this answer

SMOTE (Synthetic Minority Oversampling Technique) creates synthetic samples for the minority class, effectively balancing the dataset without loss of information.

365
Multi-Selecthard

An organization is deploying a large language model on SageMaker and needs to optimize inference costs while maintaining low latency. Which three strategies should they consider? (Select THREE.)

Select 3 answers
A.Use SageMaker Inference Recommender to find optimal instance and configuration.
B.Enable SageMaker Model Parallelism for inference.
C.Use SageMaker Elastic Inference to attach GPU acceleration.
D.Deploy the model to a multi-model endpoint.
E.Use SageMaker Batch Transform for real-time requests.
AnswersA, C, D

Inference Recommender provides cost-performance recommendations.

Why this answer

A is correct because SageMaker Inference Recommender runs load tests against your model to recommend the most cost-effective instance type and configuration (e.g., instance count, container parameters) that meets your latency and throughput requirements. This eliminates guesswork and ensures you are not over-provisioning or under-provisioning resources, directly optimizing inference costs.

Exam trap

AWS often tests the distinction between training parallelism (Model Parallelism) and inference optimization, leading candidates to incorrectly select Model Parallelism for inference cost savings.

366
MCQmedium

An ML team is using Amazon SageMaker Feature Store to serve features for both real-time inference and batch training. They need to ensure that training data uses feature values as they were at the time of each event. Which type of query should they use?

A.Full table scan of the offline store
B.Join query across both stores
C.Latest record query from the online store
D.Point-in-time query from the offline store
AnswerD

Point-in-time queries return feature values exactly as they existed at the specified time, preventing data leakage.

Why this answer

Point-in-time queries retrieve the correct feature values as of a specific timestamp, ensuring consistency between training and inference.

367
MCQmedium

A data scientist needs to prepare a dataset for a binary classification model. The dataset has 10,000 samples with 100 features, and the target class is highly imbalanced (5% positive). Which combination of techniques should the data scientist use to address class imbalance and prepare the data for training?

A.Use random undersampling of the majority class, then apply MinMaxScaler to all features.
B.Use RandomOverSampler to duplicate minority samples, then perform a random train-test split.
C.Apply SMOTE to oversample the minority class, then use stratified splitting for train/test sets.
D.Apply Lasso regression for feature selection, then use k-fold cross-validation without stratification.
AnswerC

SMOTE handles imbalance by generating synthetic minority samples; stratified splitting preserves the imbalance ratio across splits.

Why this answer

SMOTE generates synthetic samples for the minority class, and stratified splitting ensures the same class proportion in train/test sets. Lasso regression can help with feature selection but is not directly for imbalance. Undersampling would discard too many majority samples.

Random splitting without stratification could lead to uneven class distribution.

368
MCQhard

A company deploys a real-time inference endpoint with auto-scaling using a target tracking policy based on average Invocations per instance. They notice that during a traffic spike, the endpoint scales out too late, causing increased latency. They want to scale proactively before the spike. Which strategy should they implement?

A.Enable provisioned concurrency on the endpoint
B.Pre-warm the endpoint by sending dummy requests
C.Use a scheduled scaling action to add capacity before the expected spike
D.Switch to a step scaling policy with a higher cooldown period
AnswerC

Scheduled scaling can increase the desired capacity in advance of known traffic patterns, reducing latency during the spike.

Why this answer

Scheduled scaling with Application Auto Scaling can anticipate traffic spikes. Pre-warming endpoints or using provisioned concurrency are not native SageMaker features. Step scaling reacts to deviations but still after the fact.

369
MCQmedium

A SageMaker training job has been running for several hours but shows no progress. The job is using a custom Docker container. The engineer suspects a bug in the training script. Which tool is BEST to debug the training job without stopping it?

A.Amazon CloudWatch Logs
B.SageMaker Local Mode
C.SageMaker Processing
D.SageMaker Debugger
E.SageMaker Profiler
AnswerD

Correct. Debugger provides real-time debugging, monitoring, and profiling capabilities.

Why this answer

SageMaker Debugger is the best tool because it can monitor and debug training jobs in real time without stopping them. It captures tensors, gradients, and other internal state from the training script, allowing you to inspect issues like vanishing gradients or infinite loops while the job continues running. This is ideal for diagnosing a suspected bug in a custom Docker container without interrupting the training process.

Exam trap

The trap here is that candidates often confuse Debugger with Profiler, assuming both are for debugging, but Profiler is strictly for performance optimization, not for diagnosing training script bugs like infinite loops or incorrect tensor values.

How to eliminate wrong answers

Option A is wrong because Amazon CloudWatch Logs only provides static log output after it is written; it cannot capture internal model state or debug a stuck training job without stopping it. Option B is wrong because SageMaker Local Mode runs the training job locally, not on the managed SageMaker infrastructure, and requires stopping the current job to switch. Option C is wrong because SageMaker Processing is designed for data processing and batch transformations, not for real-time debugging of a running training job.

Option E is wrong because SageMaker Profiler focuses on performance profiling (e.g., GPU utilization, I/O bottlenecks), not on debugging training script bugs like infinite loops or incorrect tensor values.

370
Multi-Selectmedium

A company wants to deploy a PyTorch model on SageMaker for real-time inference. Which two steps are required? (Select TWO.)

Select 2 answers
A.Upload the training data to an S3 bucket.
B.Register the model in the SageMaker Model Registry.
C.Package the model artifacts into a tar.gz file.
D.Create a SageMaker endpoint configuration with the desired instance type.
E.Set up a SageMaker Notebook instance.
AnswersC, D

SageMaker expects model artifacts in a tar.gz format.

Why this answer

SageMaker requires model artifacts to be packaged as a single tar.gz file (containing the model weights, serialized PyTorch model, and any dependencies) for deployment. This compressed archive is uploaded to S3 and referenced when creating the model object for real-time inference.

Exam trap

The trap here is that candidates often confuse the optional Model Registry step (B) as mandatory for deployment, or mistakenly think uploading training data (A) is needed for inference, when in fact only the model artifact packaging (C) and endpoint configuration (D) are the two required steps for real-time inference on SageMaker.

371
MCQmedium

A data science team wants to automate the retraining of a model whenever SageMaker Model Monitor detects a significant drift in data quality. They need the least amount of custom code. Which approach should they use?

A.Write a custom script on an EC2 instance that polls the Model Monitor endpoint every hour and triggers retraining if drift is detected
B.Configure an Amazon EventBridge rule that listens for Model Monitor violation events and directly triggers a SageMaker Pipeline execution
C.Set up a CloudWatch Alarm on the Model Monitor violation metric that sends a notification to an SNS topic, which triggers an AWS Lambda function to start a SageMaker pipeline
D.Use SageMaker Autopilot to automatically retrain the model when performance degrades
AnswerC

This uses native CloudWatch Alarms and SNS to invoke Lambda, which can start retraining. Minimal custom code needed.

Why this answer

CloudWatch Alarms can be set on Model Monitor violation metrics. The alarm triggers an SNS topic that invokes a Lambda function to start a retraining pipeline. This requires minimal custom code.

372
MCQmedium

A machine learning team is preparing data for a binary classification model. The target variable has a severe class imbalance (95% negative, 5% positive). The team wants to train a model that maximizes recall on the positive class while keeping training time manageable. Which approach should they use?

A.Use class weights inversely proportional to class frequencies
B.Use SMOTE to generate synthetic samples for the positive class
C.Oversample the positive class by simply duplicating existing records
D.Undersample the majority class to match the minority class size
AnswerB

SMOTE creates new synthetic minority samples by interpolating between existing ones, balancing the dataset and improving recall.

Why this answer

SMOTE (Synthetic Minority Oversampling Technique) creates synthetic samples of the minority class, increasing its representation without simply duplicating data. This often improves recall without drastically increasing training time compared to other methods.

373
MCQmedium

A company is building a sentiment analysis model for customer reviews. The text data contains many typos, abbreviations, and informal language. Which text preprocessing step would be most beneficial to support the ML model?

A.Apply stemming and lowercasing only
B.Remove all stop words
C.Tokenize using whitespace tokenizer
D.Apply spell-check and normalize abbreviations
AnswerD

Correcting typos and normalizing abbreviations reduces noise and improves model robustness.

Why this answer

Spell-checking and normalization (e.g., converting 'u' to 'you') reduces vocabulary size and helps the model generalize. Stop-word removal is common but less critical. Stemming/lowercasing are already standard.

Tokenization is necessary but not the most beneficial for this specific issue.

374
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

ExplodingGradients detects gradients becoming too large.

Why this answer

The ExplodingGradients rule monitors gradient norms and raises an alert if they exceed a threshold.

375
Multi-Selectmedium

A data engineer is using Amazon Athena to query a partitioned dataset stored in S3. Which THREE actions are necessary to ensure the queries can access the data and run efficiently?

Select 3 answers
A.Store the underlying data in a columnar format like Parquet
B.Create an AWS Glue DataBrew recipe to transform the data
C.Add each partition manually using ALTER TABLE ADD PARTITION
D.Enable partition projection on the table for automated partition management
E.Run MSCK REPAIR TABLE to load existing partitions into the metastore
AnswersA, D, E

Columnar storage improves scan efficiency.

Why this answer

Storing data in a columnar format like Parquet reduces the amount of data scanned by Athena because it reads only the columns required by the query, not entire rows. This directly lowers query cost and improves performance, especially on large datasets, as Parquet also supports compression and predicate pushdown.

Exam trap

The trap here is that candidates confuse data preparation tools (DataBrew) with query optimization techniques, or they assume manual partition management (ALTER TABLE ADD PARTITION) is required when automated methods like MSCK REPAIR TABLE or partition projection are the correct and efficient approaches for Athena.

Page 4

Page 5 of 12

Page 6