Courseiva

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

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

Page 6

Page 7 of 12

Page 8
451
Multi-Selectmedium

A company is building a recommender system using implicit feedback (clicks) and explicit feedback (ratings). They plan to use Amazon SageMaker to train a model. The data includes user ID, item ID, timestamp, and rating (if any). Which TWO data preparation steps should the team perform? (Choose TWO.)

Select 2 answers
A.Convert user ID and item ID to integer indices for matrix factorization
B.Use target encoding on user ID based on average rating
C.Normalize ratings using StandardScaler
D.One-hot encode user ID and item ID
E.Sort the data by timestamp and use a time-based split for training and validation
AnswersA, E

Matrix factorization algorithms (e.g., in SageMaker's built-in Factorization Machines) require user and item IDs as integers.

Why this answer

Matrix factorization algorithms in Amazon SageMaker (e.g., the built-in Factorization Machines algorithm or the Apache Spark-based collaborative filtering) require user and item identifiers to be converted to contiguous integer indices starting from 0. This is necessary for efficient embedding lookup and to avoid memory blowup from sparse categorical features. SageMaker's implementation expects the input data in recordIO-wrapped protobuf format with integer-encoded user and item columns.

Exam trap

The trap here is that candidates confuse one-hot encoding (which is common in linear models) with the integer indexing required for embedding-based models like matrix factorization, leading them to select Option D instead of Option A.

452
MCQmedium

A company is building a machine learning model on customer transaction data stored in Amazon S3. The data includes columns with missing values in the 'age' field. The data scientist wants to impute missing values with the median age across all customers. Which approach is MOST efficient for preparing the data at scale?

A.Use AWS Glue Transform with the FillMissingValues transform specifying the median strategy
B.Use a custom Python script with pandas to compute median and fill missing values, then upload to S3
C.Use a custom PySpark script in AWS Glue to compute median and fill missing values
D.Use Amazon Athena SQL query to compute median and update the table
AnswerC

PySpark provides the scalability of Spark with the ability to compute median (e.g., using approxQuantile) and fill missing values, making it efficient for large datasets.

Why this answer

AWS Glue with PySpark provides a distributed, scalable environment that can efficiently compute the median and fill missing values across large datasets stored in S3. PySpark's DataFrame API handles the median computation natively, and the Glue job runs on a managed Spark cluster, making it the most efficient approach for data preparation at scale without moving data out of the AWS ecosystem.

Exam trap

The trap here is that candidates often assume AWS Glue Transform's FillMissingValues supports median, but it only supports mean or static values, leading them to choose Option A without verifying the available strategies.

How to eliminate wrong answers

Option A is wrong because AWS Glue Transform's FillMissingValues transform does not support a 'median' strategy; it only supports filling with a static value or the mean, not the median. Option B is wrong because a custom Python script with pandas runs on a single machine, which cannot scale to handle large datasets efficiently and requires manual upload to S3, introducing unnecessary latency and complexity. Option D is wrong because Amazon Athena SQL does not have a built-in function to compute the median; while you could use percentile_approx, Athena is primarily an interactive query service and not designed for efficient in-place data transformation or writing back to S3 at scale.

453
Multi-Selecteasy

Which TWO actions are recommended best practices for securing an Amazon SageMaker notebook instance? (Select TWO.)

Select 2 answers
A.Use network ACLs to restrict API calls to the SageMaker API.
B.Enable Multi-AZ deployment for the notebook instance.
C.Use AWS KMS to encrypt the notebook instance's storage volume.
D.Associate the notebook instance with a public subnet that has an internet gateway.
E.Disable direct internet access for the notebook instance.
AnswersC, E

KMS encryption protects data at rest.

Why this answer

Encrypting the notebook instance's storage volume with AWS KMS ensures data-at-rest protection, which is a fundamental security best practice. SageMaker notebook instances use Amazon EBS volumes for storage, and KMS encryption safeguards sensitive code, datasets, and model artifacts stored on that volume against unauthorized access.

Exam trap

The trap here is that candidates often confuse network-level controls (network ACLs) with API-level controls (IAM/VPC endpoints), or they mistakenly think Multi-AZ applies to all AWS services, when in fact it is specific to database and high-availability services.

454
Multi-Selectmedium

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

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

Managed Spot Training automatically handles interruptions and relaunches jobs.

Why this answer

Checkpointing saves progress so training can resume from the last checkpoint. Managed Spot Training with `use_spot_instances=True` automates handling of interruptions. Using a single instance or increasing max runtime does not handle interruptions; `keep_alive_period` is for persistent notebooks, not training.

455
Multi-Selectmedium

A company wants to deploy a new model using a canary deployment strategy on SageMaker. Which two actions should they take? (Select TWO.)

Select 2 answers
A.Register both models in the Model Registry with 'Approved' status
B.Use SageMaker Model Monitor to compare model performance
C.Create a new endpoint with two production variants
D.Enable data capture on the endpoint
E.Set the initial traffic weights for the variants (e.g., 95% and 5%)
AnswersC, E

Two variants enable traffic splitting between current and new models.

Why this answer

To implement canary deployment, create two production variants (current and new) with initial traffic weights (e.g., 95% and 5%), then update the endpoint to gradually shift traffic. Using endpoint update with routing config adjusts traffic weights over time.

456
MCQmedium

A team has a SageMaker Pipeline that trains a model and registers it in the Model Registry. They want to automate the deployment of the approved model to a staging environment. Which event-driven approach should they use?

A.Use an SQS queue to store approval messages and have a cron job process them
B.Set up a CloudWatch alarm on the Model Registry's ApprovalStatus metric
C.Use Amazon EventBridge to listen for Model Registry approval events and trigger an AWS Lambda function that deploys the model
D.Configure an AWS Step Functions state machine to poll the Model Registry every minute
AnswerC

This is a serverless, event-driven pattern that reacts immediately to approval.

Why this answer

The Amazon EventBridge integration with SageMaker can trigger on Model Registry status changes (e.g., when a model version is approved). A Lambda function can then deploy the model to a staging endpoint. Step Functions can be used, but the trigger should be EventBridge.

CloudWatch alarms are for monitoring metrics.

457
MCQhard

A financial services company is developing a real-time fraud detection model using XGBoost on SageMaker. They have millions of transactions daily and train a model weekly on 6 months of historical data. The training dataset is 500 GB in CSV format stored in S3. The training job uses an ml.p3.16xlarge instance with 8 GPUs, but training takes over 12 hours, which is too long for the weekly cadence. The data scientist notices that GPU utilization averages only 15% during training. The training script uses the SageMaker XGBoost container with default hyperparameters. Which combination of actions would MOST likely reduce training time? (Choose the best answer.)

A.Increase the instance type to ml.p3dn.24xlarge and use EFA networking.
B.Tune hyperparameters using SageMaker Automatic Model Tuning to reduce training epochs.
C.Use SageMaker Debugger to profile the training and adjust the batch size to maximize GPU memory usage.
D.Convert the training data to Parquet format, use Pipe input mode in the training job, and increase the instance count to run distributed training.
AnswerD

Parquet reduces data size and improves I/O; Pipe mode streams data efficiently; distributed training scales out to reduce time.

Why this answer

Converting CSV to Parquet reduces data size and improves I/O efficiency, Pipe input mode streams data directly to the algorithm without downloading, and increasing instance count enables distributed training across multiple GPUs. These changes directly address the low GPU utilization (15%) by reducing data loading bottlenecks and parallelizing computation, which is the core issue with the current single-instance, CSV-based training.

Exam trap

The trap here is that candidates focus on GPU hardware upgrades (Option A) or hyperparameter tuning (Option B) without recognizing that the root cause is data I/O inefficiency from CSV format and single-instance training, which is a classic SageMaker optimization scenario.

How to eliminate wrong answers

Option A is wrong because upgrading to ml.p3dn.24xlarge with EFA networking improves inter-node communication but does not fix the fundamental data loading bottleneck causing low GPU utilization; the single-instance setup still suffers from CSV parsing overhead and disk I/O stalls. Option B is wrong because SageMaker Automatic Model Tuning optimizes hyperparameters for model accuracy, not training speed, and XGBoost does not have 'epochs' as a hyperparameter (it uses boosting rounds, which are already controlled by default settings). Option C is wrong because SageMaker Debugger profiles training but does not automatically adjust batch size; manually increasing batch size may improve GPU utilization but does not address the I/O bottleneck from CSV format and File input mode, and the default XGBoost container already manages batch size internally.

458
MCQmedium

A retail company is preparing a dataset for a machine learning model to predict customer churn. The dataset includes customer_id, signup_date, last_purchase_date, total_purchases, average_order_value, and churn_label. The data scientist notices that the 'total_purchases' column has missing values for 15% of the records. The company wants to use AWS Glue for data preparation. Which approach should the data scientist take to handle the missing values while minimizing bias and preserving data integrity?

A.Use AWS Glue DataBrew to fill missing values with the median of total_purchases.
B.Drop all records with missing total_purchases values.
C.Use AWS Glue DynamicFrame to perform model-based imputation, predicting missing total_purchases using other features like average_order_value and signup_date.
D.Replace missing total_purchases with the mean of the non-missing values.
AnswerC

Model-based imputation leverages correlated features to estimate missing values more accurately, reducing bias.

Why this answer

Model-based imputation uses relationships between features (e.g., average_order_value and signup_date) to predict missing total_purchases values, minimizing bias compared to simple mean/median imputation. AWS Glue DynamicFrames support custom transformation logic, allowing you to implement a predictive model (e.g., using Spark MLlib) directly within the Glue ETL job. This approach preserves data integrity by leveraging existing data patterns rather than discarding records or introducing arbitrary constants.

Exam trap

The trap here is that candidates often choose simple imputation (mean/median) or deletion without considering the bias introduced when missing data is not MCAR, and they overlook that AWS Glue DynamicFrames can support custom model-based imputation within the ETL pipeline.

How to eliminate wrong answers

Option A is wrong because filling with the median is a univariate imputation method that ignores correlations with other features, potentially introducing bias when missingness is not completely at random (MCAR). Option B is wrong because dropping 15% of records reduces sample size and can introduce selection bias, especially if missingness is related to churn behavior. Option D is wrong because replacing with the mean is sensitive to outliers and also ignores feature relationships, leading to distorted distributions and biased model predictions.

459
MCQmedium

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

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

Narrowing the search space concentrates trials in regions that previously yielded lower RMSE, potentially finding better values.

Why this answer

Reducing the search space can help the tuner focus on more promising regions. Increasing parallelism or max jobs may explore the same plateau, while switching to a different algorithm altogether might not be necessary.

460
Multi-Selectmedium

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

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

LoRA enables efficient fine-tuning with much lower memory requirements.

Why this answer

LoRA reduces trainable parameters, enabling fine-tuning on smaller instances. HuggingFace estimator is the standard for HF models. Spot instances reduce cost.

DeepSpeed ZeRO-3 is for large models but not necessary with LoRA. BYOC is overkill.

461
Multi-Selectmedium

A data team is preparing data for a machine learning pipeline. Which TWO practices are best for ensuring data quality and reproducibility? (Choose two.)

Select 2 answers
A.Use a fixed random seed when sampling data to ensure repeatability.
B.Shuffle the dataset before splitting into train and test sets.
C.Implement automated data validation checks to catch anomalies in new data.
D.Manually inspect and clean data to remove outliers.
E.Save cleaned and transformed datasets to S3 with versioning enabled.
AnswersC, E

Automated validation ensures data quality by catching issues early.

Why this answer

Automated data validation checks (e.g., using AWS Glue DataBrew or Deequ on Amazon EMR) proactively catch schema drift, missing values, and distribution anomalies in new data, ensuring that only high-quality data enters the ML pipeline. This practice is essential for maintaining data quality at scale without manual intervention.

Exam trap

AWS often tests the distinction between practices that improve data quality (automated validation, versioning) versus practices that improve model training stability (fixed seed, shuffling), leading candidates to mistakenly select options that only address repeatability of random processes.

462
MCQeasy

A company wants to reduce costs for a real-time inference endpoint that experiences predictable traffic spikes during business hours and low traffic at night. Which auto-scaling policy is MOST cost-effective while maintaining performance?

A.Step scaling based on CPU utilization
B.Manual scaling by the operations team
C.Scheduled scaling that increases instances before business hours and decreases after
D.Target tracking with a custom metric for response time
AnswerC

Scheduled scaling proactively adjusts capacity, minimizing idle instances during low traffic.

Why this answer

Scheduled scaling directly aligns capacity with the predictable traffic pattern (business hours vs. night), allowing you to proactively add instances before demand increases and remove them afterward. This avoids the cost of over-provisioning during low-traffic periods and the latency of reactive scaling, making it the most cost-effective approach for a known, recurring schedule.

Exam trap

The trap here is that candidates often choose reactive scaling options (like step scaling or target tracking) because they seem 'automated,' but they fail to recognize that for predictable, time-based traffic patterns, scheduled scaling is both more cost-effective and more performant than any reactive policy.

How to eliminate wrong answers

Option A is wrong because step scaling based on CPU utilization is reactive—it only adds capacity after a spike begins, which can cause latency or throttling during the initial surge, and it may keep instances running longer than needed due to cooldown periods, increasing cost. Option B is wrong because manual scaling by the operations team is error-prone, requires 24/7 staffing, and cannot react quickly enough to maintain performance during sudden traffic changes, leading to either over-provisioning or under-provisioning. Option D is wrong because target tracking with a custom metric for response time is also reactive and may cause oscillations (hunting) as the system tries to maintain a target, and it does not leverage the known schedule to pre-emptively scale, resulting in higher costs from delayed or excessive scaling actions.

463
Multi-Selectmedium

A machine learning team is preparing a dataset for a regression model. The dataset contains numerical features that are on different scales (e.g., age 0-100, income 0-1,000,000). The team plans to use Amazon SageMaker to train a linear regression model. Which THREE data preparation steps should the team take to ensure the model performs well? (Select THREE.)

Select 3 answers
A.Apply feature selection to reduce the number of features.
B.Remove outliers from the dataset.
C.Handle missing values by imputation or removal.
D.Encode categorical features using one-hot encoding.
E.Scale numerical features using standardization (z-score) or normalization (min-max scaling).
AnswersC, D, E

Missing values can cause errors or biased models; handling them is necessary.

Why this answer

Missing values can cause errors or biased estimates in linear regression models. Amazon SageMaker's built-in linear regression algorithm does not handle missing data automatically, so imputation (e.g., mean/median) or removal is necessary to ensure the training process completes and produces reliable coefficients.

Exam trap

AWS often tests the misconception that feature selection or outlier removal are mandatory preprocessing steps for linear regression, when in fact scaling and handling missing values are the core requirements for model convergence and performance.

464
MCQeasy

A company uses Amazon Rekognition to moderate user-generated images. They want to set up a monitoring system that alerts the team if the number of inappropriate images flagged by the model exceeds a threshold. Which combination of AWS services should they use?

A.Amazon CloudWatch Logs to store inference logs and create a metric filter.
B.Amazon CloudWatch to publish custom metrics and create an alarm, and AWS Lambda to process images and publish metrics.
C.AWS Config to track resource changes and trigger an SNS notification.
D.Amazon Simple Notification Service (SNS) to send alerts when threshold is exceeded.
AnswerB

Lambda can publish custom metrics to CloudWatch, which can trigger alarms.

Why this answer

Amazon Rekognition can be integrated with AWS Lambda to process images and publish custom metrics to Amazon CloudWatch. CloudWatch can then create an alarm based on a threshold for the number of inappropriate images flagged, and trigger an SNS notification to alert the team. This combination provides a complete monitoring and alerting pipeline without relying on inference logs or resource configuration changes.

Exam trap

The trap here is that candidates often confuse AWS Config (which tracks infrastructure changes) with monitoring model outputs, or assume CloudWatch Logs metric filters can directly capture Rekognition inference results without custom logging logic.

How to eliminate wrong answers

Option A is wrong because Amazon CloudWatch Logs stores inference logs, but Rekognition does not natively output inference logs to CloudWatch Logs; it returns results via API calls, and a metric filter on logs would require logging the inference results manually, which is less direct than publishing custom metrics. Option C is wrong because AWS Config tracks resource configuration changes (e.g., changes to an S3 bucket policy), not the number of inappropriate images flagged by a machine learning model; it is not designed for real-time monitoring of model outputs. Option D is wrong because Amazon SNS alone cannot monitor thresholds or publish metrics; it is a notification service that requires a trigger from another service (like CloudWatch Alarms) to send alerts when a threshold is exceeded.

465
Multi-Selectmedium

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

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

The list and search API allows filtering and comparing runs based on metrics.

Why this answer

SageMaker Experiments automatically tracks hyperparameters and metrics. The SDK allows logging custom metrics. The Experiments list and search interface can compare runs.

Autopilot is for AutoML, not for custom PyTorch. Model Monitor is for deployed models.

466
Multi-Selecthard

A data scientist is preparing a dataset for a multi-class classification problem. The dataset contains a categorical feature with 50,000 unique values (high cardinality). The scientist wants to reduce dimensionality while preserving predictive information. Which TWO approaches are appropriate? (Choose 2)

Select 2 answers
A.Target encoding
B.One-hot encoding
C.Count encoding (frequency encoding)
D.Ordinal encoding based on alphabetical order
E.Label encoding
AnswersA, C

Target encoding replaces each category with the mean target value, reducing to a single column.

Why this answer

Target encoding replaces high-cardinality categories with the target mean, compressing the feature. Count encoding replaces categories with frequency counts. Both reduce dimensionality to one column.

One-hot encoding would create 50,000 columns. Label encoding imposes order. Feature hashing can also work but is less common; count encoding is a valid option.

467
MCQeasy

A data science team uses SageMaker notebooks to develop models. They want to automate the process of training and registering models whenever new data arrives in an S3 bucket. The team has limited DevOps experience and needs a solution that requires minimal maintenance. Which approach should the team use?

A.Configure an S3 event notification to trigger an AWS Step Functions state machine that runs a SageMaker Pipeline.
B.Use AWS Glue to detect new data and trigger a SageMaker training job via a Lambda function.
C.Write a Python script that runs on a scheduled EC2 instance to check S3 for new data and trigger training.
D.Use Amazon EventBridge to schedule a SageMaker training job every hour, regardless of whether new data exists.
AnswerA

Step Functions orchestrates training and model registration serverlessly, triggered by new data.

Why this answer

S3 event notifications can directly trigger an AWS Step Functions state machine, which orchestrates a SageMaker Pipeline to automate model training and registration when new data arrives. This serverless approach requires minimal maintenance and aligns with the team's limited DevOps experience, as Step Functions handles retries, error handling, and workflow coordination without custom infrastructure.

Exam trap

The trap here is that candidates often choose a scheduled approach (Option D) or a Lambda-based trigger (Option B) because they seem simpler, but the exam tests the ability to select the fully managed, event-driven orchestration (Step Functions + SageMaker Pipeline) that minimizes operational burden while ensuring conditional execution based on new data.

How to eliminate wrong answers

Option B is wrong because AWS Glue is primarily an ETL service, not designed to detect new S3 objects; using it for this purpose adds unnecessary complexity and cost, and the Lambda trigger for training jobs would still require custom orchestration. Option C is wrong because running a Python script on a scheduled EC2 instance introduces manual maintenance overhead (patching, scaling, monitoring) and violates the 'minimal maintenance' requirement. Option D is wrong because scheduling a training job every hour with EventBridge ignores the condition of new data, leading to wasteful training runs and potential model versioning issues when no new data exists.

468
MCQhard

A financial services company uses a custom container on Amazon SageMaker to serve a fraud detection model. The model's inference latency has recently increased, causing timeouts for some requests. The team reviews the SageMaker logs and finds that the container is consuming more memory than allocated. What should the team do to maintain service quality while ensuring cost-effectiveness?

A.Decrease the model's batch size to reduce memory usage
B.Increase the number of instances in the endpoint to distribute the load
C.Implement an auto-scaling policy based on memory utilization
D.Change the instance type to a memory-optimized instance, such as r5.large
AnswerD

Switching to a memory-optimized instance provides more memory per instance, resolving the issue cost-effectively.

Why this answer

The root cause is that the container is consuming more memory than allocated, leading to increased latency and timeouts. Switching to a memory-optimized instance like r5.large directly addresses the memory constraint by providing more memory per vCPU, which resolves the performance issue without over-provisioning compute resources. This approach is cost-effective because it targets the specific bottleneck (memory) rather than scaling out or changing unrelated parameters.

Exam trap

The trap here is that candidates often confuse scaling out (adding instances) with scaling up (choosing a larger instance type), and they may incorrectly assume that auto-scaling based on memory utilization will prevent timeouts, when in fact it only reacts after the problem occurs.

How to eliminate wrong answers

Option A is wrong because decreasing the batch size reduces throughput and may lower memory usage per request, but it does not fix the underlying memory allocation issue; it could also increase latency due to more frequent inference calls. Option B is wrong because increasing the number of instances distributes the load but does not solve the per-instance memory shortage; each container would still run out of memory, leading to continued timeouts and higher costs from additional instances. Option C is wrong because implementing auto-scaling based on memory utilization would only add more instances after the memory is already exhausted, causing intermittent failures and unpredictable costs; it does not prevent the memory exhaustion in the first place.

469
Multi-Selectmedium

A company uses SageMaker Pipelines for model training and wants to incorporate model evaluation before deployment into production. Which THREE components are essential? (Choose three.)

Select 3 answers
A.A model registry approval step
B.A batch transform step for evaluation
C.A condition step in the pipeline
D.A human review step
E.A SageMaker Processing step for evaluation
AnswersA, C, E

Approval step creates a model version with approval status to gate deployment.

Why this answer

A model registry approval step is essential because it gates the deployment of a model based on its evaluation results. In SageMaker Pipelines, you register the model to the Model Registry after training, and the approval status (e.g., Approved or Rejected) determines whether downstream deployment steps execute. This ensures only models meeting quality thresholds are promoted to production.

Exam trap

The trap here is that candidates confuse batch transform (used for inference) with model evaluation (which requires a Processing step to compute metrics), and they overlook that a condition step is the core decision-making component, not a human review step.

470
MCQmedium

A machine learning engineer is setting up a retraining pipeline that triggers when concept drift is detected. They plan to use CloudWatch Alarms to monitor the model's accuracy metric. When drift is detected, they want to automatically start a SageMaker training job. Which architecture should they use?

A.CloudWatch Alarm → SQS → Lambda → SageMaker Training Job
B.CloudWatch Alarm → EventBridge → SageMaker Training Job
C.CloudWatch Alarm → SNS → Lambda → SageMaker Training Job
D.CloudWatch Alarm → Lambda directly (without SNS)
AnswerC

This architecture allows the alarm to trigger a notification, which Lambda processes to start a training job.

Why this answer

CloudWatch Alarms cannot directly invoke SageMaker training jobs; they require an intermediary like SNS to trigger a Lambda function, which then calls the SageMaker API to start the training job. This pattern ensures reliable decoupling and allows the Lambda function to handle any preprocessing or conditional logic before launching the job.

Exam trap

The trap here is that candidates assume CloudWatch Alarms can directly trigger Lambda or SageMaker, but AWS documentation explicitly limits alarm actions to SNS, Auto Scaling, EC2, and Systems Manager, requiring an intermediary like SNS for Lambda invocation.

How to eliminate wrong answers

Option A is wrong because SQS is a message queue service designed for asynchronous decoupling and worker processing, not for directly triggering a Lambda function from a CloudWatch Alarm; the alarm can publish to SNS but not directly to SQS, and SQS would require a consumer like Lambda to poll, adding unnecessary latency and complexity. Option B is wrong because CloudWatch Alarms cannot directly invoke EventBridge; they can publish to an SNS topic or use a CloudWatch Events rule (now part of EventBridge) to trigger a target, but the alarm itself does not have a direct integration with EventBridge for starting SageMaker training jobs. Option D is wrong because CloudWatch Alarms cannot directly invoke Lambda functions; they must go through SNS or a CloudWatch Events rule (EventBridge) to trigger Lambda, as the alarm's action targets are limited to SNS, Auto Scaling, EC2, and Systems Manager, not Lambda directly.

471
MCQeasy

A team wants to automatically retrain a model when new labeled data arrives. Which SageMaker feature can orchestrate this workflow?

A.SageMaker Pipelines
B.SageMaker Model Monitor
C.SageMaker Debugger
D.SageMaker Autopilot
AnswerA

Pipelines can orchestrate a retraining workflow when triggered.

Why this answer

SageMaker Pipelines is a purpose-built CI/CD service for machine learning that allows you to define, orchestrate, and automate end-to-end ML workflows, including retraining models when new labeled data arrives. You can create a pipeline that triggers on new data events (e.g., via an S3 event notification or a Lambda function) and automatically executes steps such as data processing, training, evaluation, and model registration. This makes it the correct choice for orchestrating an automated retraining workflow.

Exam trap

The trap here is that candidates confuse monitoring services (Model Monitor, Debugger) with orchestration services, or assume Autopilot's automation includes workflow orchestration, when in fact only Pipelines provides the explicit DAG-based orchestration needed to chain retraining steps on new data events.

How to eliminate wrong answers

Option B (SageMaker Model Monitor) is wrong because it is designed for detecting data drift, model drift, and bias in production, not for orchestrating retraining workflows; it can alert you to drift but cannot automatically trigger a retraining pipeline. Option C (SageMaker Debugger) is wrong because it provides real-time monitoring and debugging of training jobs (e.g., capturing tensors, gradients, and metrics) but has no capability to orchestrate multi-step workflows or trigger retraining. Option D (SageMaker Autopilot) is wrong because it automates the process of building, training, and tuning models from a tabular dataset, but it does not provide a programmable orchestration framework for chaining steps or reacting to new data events.

472
MCQmedium

A team uses SageMaker ML Lineage Tracking to capture the metadata of their ML workflow. They want to query the lineage to see which model version was trained from a specific dataset. Which Lineage Tracking entity represents the dataset?

A.Association
B.Action
C.Context
D.Artifact
AnswerD

Artifacts represent data objects such as datasets, models, and output files.

Why this answer

In SageMaker ML Lineage Tracking, datasets are represented as Artifacts. Actions represent processes like training, and Contexts group related entities.

473
MCQmedium

A machine learning engineer is preparing a dataset for a binary classification model. The dataset has 10,000 samples with a 1:100 class imbalance. The engineer needs to balance the classes before training. Which technique would create a balanced dataset without discarding majority class samples and without generating synthetic data?

A.Cost-sensitive learning with class weights
B.Random oversampling of the minority class
C.Synthetic Minority Over-sampling Technique (SMOTE)
D.Random undersampling of the majority class
AnswerB

Oversampling duplicates minority instances without discarding majority samples or creating synthetic data.

Why this answer

Random oversampling duplicates minority class samples until classes are balanced. It does not discard majority samples (unlike undersampling) and does not generate synthetic data (unlike SMOTE).

474
MCQhard

A data scientist is building a time-series forecasting model for daily sales data. The data spans two years. To evaluate the model's performance, the data scientist needs to simulate a realistic rolling forecast scenario. Which data splitting strategy should be used?

A.Walk-forward validation
B.Random 80/20 train-test split
C.Stratified k-fold cross-validation
D.Hold-out split based on time (e.g., train on first 18 months, test on last 6 months)
AnswerA

Walk-forward validation respects temporal order by training on past data and testing on the next time period, simulating a realistic forecasting scenario.

Why this answer

Walk-forward validation (also known as time-series cross-validation) trains on an expanding window of past data and evaluates on the next time step, preserving temporal order. Standard k-fold or stratified splits would shuffle data and leak future information.

475
MCQeasy

A machine learning engineer needs to standardize features to have zero mean and unit variance before training a support vector machine. Which scaling method should they apply?

A.StandardScaler
B.Normalizer
C.RobustScaler
D.MinMaxScaler
AnswerA

StandardScaler standardizes features by removing the mean and scaling to unit variance.

Why this answer

StandardScaler transforms data to have zero mean and unit variance, which is required for SVM and many other algorithms.

476
MCQeasy

A company has a SageMaker endpoint that uses a trained model to classify images. The endpoint is experiencing high latency and the team suspects it is due to the model size. Which action can the team take to reduce latency without significantly impacting accuracy?

A.Switch to a compute-optimized instance type
B.Use SageMaker Neo to compile the model for the target instance
C.Reduce the batch size of inference requests
D.Convert the model to ONNX format
AnswerB

Neo optimizes model inference for specific hardware, reducing latency.

Why this answer

SageMaker Neo compiles trained models into an optimized binary for the target hardware, applying techniques like operator fusion, memory layout optimization, and quantization. This reduces model size and inference latency while preserving accuracy, making it the correct choice for addressing high latency caused by model size.

Exam trap

AWS often tests the misconception that converting to an open format like ONNX inherently optimizes performance, when in reality it is just a serialization format and requires a separate compilation step (e.g., Neo) to reduce latency.

How to eliminate wrong answers

Option A is wrong because switching to a compute-optimized instance (e.g., c5) may improve CPU-bound processing but does not reduce model size or memory footprint; the latency issue stems from the model itself, not insufficient compute. Option C is wrong because reducing batch size can lower throughput and increase per-request overhead, potentially worsening latency; it does not address the root cause of model size. Option D is wrong because converting to ONNX format alone does not guarantee latency reduction; ONNX is an interchange format that requires a compatible runtime (e.g., ONNX Runtime) and may still need optimization like Neo to achieve performance gains.

477
MCQhard

A hospital deploys a model to predict patient readmission risk. To comply with regulations, they must ensure that the model's predictions do not show bias against any demographic group over time. Which service should they use for ongoing monitoring?

A.SageMaker Clarify
B.AWS Audit Manager
C.SageMaker Model Monitor
D.Amazon Macie
AnswerA

SageMaker Clarify provides bias metrics and can be scheduled to monitor predictions after deployment.

Why this answer

SageMaker Clarify is the correct service because it is specifically designed to detect bias in ML model predictions and can be configured for ongoing monitoring. It provides bias metrics (e.g., difference in positive proportion, disparate impact) and can run on a schedule to continuously evaluate predictions against demographic groups, ensuring regulatory compliance over time.

Exam trap

The trap here is confusing SageMaker Model Monitor (which tracks data drift) with SageMaker Clarify (which tracks bias), leading candidates to choose Model Monitor because they think 'monitoring' covers all aspects of model health, but bias detection requires a separate, specialized tool.

How to eliminate wrong answers

Option B (AWS Audit Manager) is wrong because it is designed to audit AWS resource usage and compliance against frameworks (e.g., SOC 2, PCI DSS), not to monitor ML model bias. Option C (SageMaker Model Monitor) is wrong because it focuses on detecting data drift and feature distribution changes, not bias in predictions against demographic groups. Option D (Amazon Macie) is wrong because it is a data security service that discovers and protects sensitive data using machine learning, not a tool for monitoring model bias.

478
MCQmedium

A company uses Amazon SageMaker Pipelines to automate its ML workflow. The pipeline includes a training step and a model evaluation step. If the evaluation step fails, the pipeline should stop and notify the team. How should the company configure the pipeline?

A.Define a ConditionStep that checks the evaluation metric and fail the pipeline if the metric is below a threshold.
B.Use Amazon SageMaker Model Monitor to detect failures in the evaluation step.
C.Create an AWS Step Function state machine that monitors the pipeline and stops it on failure.
D.Configure an Amazon CloudWatch alarm on the evaluation step's execution time to stop the pipeline.
AnswerA

A ConditionStep can be used to evaluate metrics and fail the pipeline if conditions are not met.

Why this answer

SageMaker Pipelines natively supports a ConditionStep that can evaluate a metric (e.g., model accuracy) and branch the pipeline execution. By configuring the ConditionStep to check if the evaluation metric falls below a threshold, you can explicitly fail the pipeline and trigger a notification (e.g., via SNS) when the condition is not met. This is the idiomatic, pipeline-native way to halt execution on evaluation failure without external dependencies.

Exam trap

The trap here is that candidates confuse SageMaker Pipelines' built-in conditional branching (ConditionStep) with external monitoring services like Model Monitor or Step Functions, assuming that pipeline failures must be handled outside the pipeline itself.

How to eliminate wrong answers

Option B is wrong because Amazon SageMaker Model Monitor is designed for detecting data drift and model quality degradation in production endpoints, not for halting a pipeline execution step. Option C is wrong because while AWS Step Functions can orchestrate SageMaker Pipelines, creating a separate state machine to monitor and stop the pipeline adds unnecessary complexity and latency; the pipeline itself should handle conditional failures internally. Option D is wrong because a CloudWatch alarm on execution time would only stop the pipeline based on a timeout, not on the actual evaluation metric result, and it cannot directly fail the pipeline step based on model performance.

479
Multi-Selectmedium

A data scientist is using SageMaker Data Wrangler to prepare features for a classification model. Which TWO statements about feature engineering in Data Wrangler are correct?

Select 2 answers
A.Data Wrangler only supports CSV and Parquet input formats
B.Data Wrangler enables writing custom PySpark transformations
C.Transformations created in Data Wrangler can be exported as a SageMaker Processing script
D.Data Wrangler automatically scales features for XGBoost models
E.Data Wrangler can export features to SageMaker Feature Store
AnswersC, E

Data Wrangler can generate a processing script for reuse.

Why this answer

SageMaker Data Wrangler allows you to export the entire data flow, including all transformations, as a SageMaker Processing script. This script can be run at scale on managed infrastructure, enabling you to operationalize the feature engineering pipeline for training or inference without manual rework.

Exam trap

The trap here is that candidates assume Data Wrangler supports custom PySpark transformations (Option B) because it integrates with Spark, but in reality, custom code must be written outside the visual interface, and only built-in transforms are available within Data Wrangler itself.

480
MCQmedium

A data scientist is using SageMaker Data Wrangler to prepare a large dataset. The data contains duplicate rows, which could bias the model. Which built-in step in Data Wrangler can automatically detect and remove duplicates?

A.Amazon QuickSight duplicate detection
B.Handle Duplicates transform in Data Wrangler
C.AWS Glue Studio FindDuplicates transform
D.Amazon DataZone catalog
AnswerB

Data Wrangler provides a built-in transform to drop duplicate rows.

Why this answer

The Handle Duplicates transform is a built-in step in SageMaker Data Wrangler specifically designed to detect and remove duplicate rows from a dataset. It provides configurable options such as selecting a subset of columns for duplicate detection and choosing whether to keep the first or last occurrence, directly addressing the bias risk from duplicate rows in ML training data.

Exam trap

The trap here is that candidates confuse AWS Glue Studio transforms (like FindDuplicates) with SageMaker Data Wrangler's built-in steps, as both are AWS data preparation services but operate in different environments and have distinct feature sets.

How to eliminate wrong answers

Option A is wrong because Amazon QuickSight is a business intelligence (BI) service for visualization and dashboards, not a data preparation tool with built-in duplicate detection for ML pipelines. Option C is wrong because AWS Glue Studio FindDuplicates is a transform available in AWS Glue Studio (a separate ETL service), not within SageMaker Data Wrangler's interface or step library. Option D is wrong because Amazon DataZone is a data catalog and governance service for managing data assets across an organization, not a data preparation tool that detects or removes duplicates.

481
MCQhard

A financial services company is developing a fraud detection model using Amazon SageMaker. They have a dataset with 10 million transactions, each with 300 features. The dataset is highly imbalanced (0.1% fraud). They have performed feature engineering and now need to split the data for training, validation, and test sets. The data is stored in CSV files in Amazon S3. They plan to use SageMaker's built-in XGBoost algorithm. To ensure proper evaluation and avoid data leakage, which data splitting strategy should they use?

A.Randomly shuffle the entire dataset and then split into 80% training, 10% validation, 10% test.
B.Use k-fold cross-validation on the entire dataset and average the results.
C.Perform a stratified split on the target variable to ensure each set has the same fraud ratio.
D.Apply SMOTE to balance the dataset first, then split randomly into training, validation, and test sets.
AnswerC

Stratified splitting preserves class proportions, enabling reliable evaluation.

Why this answer

A stratified split preserves the original 0.1% fraud ratio across training, validation, and test sets, which is critical for imbalanced datasets. This ensures each subset is representative of the population, allowing SageMaker's XGBoost to be evaluated fairly without data leakage. Random splits (Option A) could accidentally create a validation or test set with zero fraud cases, making evaluation meaningless.

Exam trap

The trap here is that candidates often choose random splitting (Option A) out of habit, forgetting that imbalanced datasets require stratified sampling to avoid evaluation sets with zero positive cases, which would render metrics like precision and recall undefined.

How to eliminate wrong answers

Option A is wrong because random shuffling and splitting an imbalanced dataset (0.1% fraud) risks producing validation or test sets with no fraud examples, leading to misleading accuracy metrics and inability to detect model overfitting. Option B is wrong because k-fold cross-validation on the entire dataset would leak information from future folds into training when used for final model selection, and it does not provide a held-out test set for unbiased final evaluation. Option D is wrong because applying SMOTE before splitting introduces synthetic data that can leak information across the split boundaries, causing data leakage and overly optimistic performance estimates; SMOTE should only be applied to the training set after splitting.

482
Multi-Selecthard

A team is using SageMaker Pipelines to automate a training workflow. They need to ensure that if a step fails, the pipeline can resume from the failed step without reprocessing prior steps. Which TWO configurations are necessary? (Choose TWO.)

Select 2 answers
A.Set the Pipeline's parallel flag to True
B.Set a retry policy on the step
C.Use a Lambda step for retry logic
D.Store intermediate artifacts in S3
E.Enable caching on each step
AnswersB, E

Correct: Retry policies automatically retry a step upon failure.

Why this answer

A retry policy on a SageMaker Pipeline step allows the pipeline to automatically re-attempt the failed step without manual intervention, enabling the pipeline to resume from the point of failure. Option E is correct because enabling caching on each step stores the results of previously executed steps; if a step fails and is retried, the pipeline can reuse cached outputs from prior steps, avoiding reprocessing them. Together, these configurations ensure that the pipeline can resume from the failed step efficiently.

Exam trap

The trap here is that candidates often confuse caching with simply storing artifacts in S3, but caching is an explicit configuration that enables automatic reuse of step outputs, whereas S3 storage alone does not provide any resumption logic.

483
MCQhard

A machine learning team is building a model to predict customer churn. They have historical data that includes customer activity logs, each with a timestamp. The team wants to ensure that the training data does not contain any data leakage from the future. Which approach should they take when preparing the training and validation datasets?

A.Use stratified sampling based on churn label
B.Randomly split the data 80/20 for training and validation
C.Use k-fold cross-validation with shuffling
D.Split the data by time, using data before a certain date for training and after for validation
AnswerD

Time-based split ensures no future data influences training.

Why this answer

Splitting by time (chronological split) prevents data leakage by ensuring that the validation set contains only future data relative to the training set. In time-series or timestamped data, random splits can allow the model to learn from future patterns, artificially inflating performance. This approach respects the temporal dependency inherent in customer churn prediction.

Exam trap

AWS often tests the concept of data leakage in time-series contexts, where candidates mistakenly choose random splits or cross-validation with shuffling, overlooking that temporal order must be preserved to avoid future data leaking into training.

How to eliminate wrong answers

Option A is wrong because stratified sampling based on churn label preserves class distribution but does not address temporal leakage; it can still mix future and past data. Option B is wrong because random splitting ignores the timestamp order, allowing future data to leak into the training set and causing the model to learn from events that haven't occurred yet. Option C is wrong because k-fold cross-validation with shuffling randomly reorders the data, which breaks the time sequence and introduces future information into training folds.

484
MCQeasy

A company stores its raw IoT sensor data in Amazon S3. The data is in CSV format and contains timestamps, sensor IDs, and readings. A data engineer needs to catalog this data for discoverability and querying by other team members. Which AWS service should they use to create a searchable metadata catalog?

A.Amazon DynamoDB
B.Amazon Athena data catalog
C.Amazon RDS
D.AWS Glue Data Catalog
AnswerD

The Data Catalog is the central metadata repository for AWS data lakes, automatically crawling S3 to populate table definitions.

Why this answer

The AWS Glue Data Catalog is a managed metadata repository that stores table definitions, schema information, and locations. It integrates with other services like Athena, EMR, and Redshift Spectrum for querying.

485
MCQmedium

A company is using SageMaker to train a neural network for image classification. The training job is taking too long. The team wants to reduce training time without sacrificing model accuracy. Which approach should they recommend?

A.Increase the batch size to the maximum possible
B.Use a GPU-based instance such as ml.p3.2xlarge
C.Use a learning rate scheduler that reduces the learning rate over time
D.Add more convolutional layers to the model
AnswerB

GPUs accelerate matrix operations in neural networks, reducing training time.

Why this answer

GPU-based instances like ml.p3.2xlarge are specifically designed for parallel processing of matrix operations, which are fundamental to neural network training. By offloading compute-intensive tensor operations to GPU cores, training time can be significantly reduced without altering the model architecture or data, thus preserving accuracy.

Exam trap

AWS often tests the misconception that any change to hyperparameters or architecture can reduce training time without side effects, but the trap here is that candidates confuse 'reducing training time' with 'improving convergence speed'—only hardware acceleration (GPU) directly reduces wall-clock time without risking accuracy degradation.

How to eliminate wrong answers

Option A is wrong because increasing batch size to the maximum possible can lead to degraded model accuracy due to reduced gradient noise, causing the model to converge to sharp minima or even fail to converge; it also risks out-of-memory errors. Option C is wrong because a learning rate scheduler that reduces the learning rate over time helps with convergence stability and final accuracy, but it does not directly reduce training time—it may even extend it if the learning rate becomes too small too early. Option D is wrong because adding more convolutional layers increases model complexity and the number of parameters, which typically increases training time and can lead to overfitting without guaranteeing improved accuracy.

486
MCQhard

A model deployed on SageMaker is returning inaccurate predictions for certain customer segments. The team suspects data drift. Which SageMaker feature should they use to continuously monitor input data distribution?

A.SageMaker Clarify
B.SageMaker Debugger
C.SageMaker Model Monitor
D.SageMaker Feature Store
AnswerC

Model Monitor can track input data distributions and alert on drift.

Why this answer

SageMaker Model Monitor is the correct choice because it is specifically designed to continuously monitor the input data distribution of a deployed model and detect data drift over time. It automatically captures and analyzes the statistical properties of incoming inference requests against a baseline, alerting you when significant deviations occur.

Exam trap

The trap here is that candidates often confuse SageMaker Clarify's bias detection capabilities with data drift monitoring, but Clarify analyzes static datasets for fairness and explainability, not continuous production data distribution shifts.

How to eliminate wrong answers

Option A is wrong because SageMaker Clarify is used for bias detection and explainability of model predictions, not for monitoring input data distributions over time. Option B is wrong because SageMaker Debugger is designed to debug training jobs by capturing tensors and metrics during training, not to monitor inference data drift in production. Option D is wrong because SageMaker Feature Store is a centralized repository for storing, sharing, and managing features for ML training and inference, not a monitoring tool for data drift.

487
MCQeasy

A team wants to apply a custom container for inference on SageMaker. The container needs to implement a web server that responds to API requests. Which protocol and port must the container listen on to be compatible with SageMaker hosting?

A.The container must listen on port 8080 and use HTTPS protocol.
B.The container must listen on port 8080 and use HTTP protocol.
C.The container can listen on any port as long as the port is specified in the endpoint configuration.
D.The container must listen on port 8000 and use HTTP protocol.
AnswerB

SageMaker expects HTTP on port 8080 for /invocations and /ping.

Why this answer

SageMaker requires custom inference containers to listen on port 8080 and communicate over HTTP (not HTTPS). The SageMaker hosting service uses a proxy that terminates HTTPS and forwards plain HTTP requests to the container on port 8080. This ensures compatibility with the built-in model serving infrastructure.

Exam trap

The trap here is that candidates assume SageMaker requires HTTPS for security, but the service actually handles encryption externally, so the container must use plain HTTP on port 8080.

How to eliminate wrong answers

Option A is wrong because SageMaker's proxy handles TLS termination, so the container must use HTTP, not HTTPS; using HTTPS would cause a protocol mismatch and connection failure. Option C is wrong because SageMaker mandates port 8080 for custom containers; the endpoint configuration does not allow overriding this port. Option D is wrong because the required port is 8080, not 8000; port 8000 is not recognized by SageMaker's hosting proxy.

488
MCQmedium

A startup wants to deploy a containerized ML application that includes both a model inference server and a preprocessing component in the same endpoint. Which SageMaker endpoint type supports running multiple containers?

A.Asynchronous Inference
B.Multi-container endpoint
C.Multi-model endpoint
D.Real-time endpoint
AnswerB

Supports multiple containers sharing the same instance, e.g., preprocessing and inference.

Why this answer

Multi-container endpoints allow running multiple containers, enabling preprocessing and inference in the same endpoint.

489
Multi-Selectmedium

An ML team is running multiple SageMaker endpoints for various models. The monthly cost is higher than expected. Which TWO actions would help reduce costs without negatively impacting performance?

Select 2 answers
A.Consolidate multiple small models into a single Multi-Model Endpoint on a larger instance.
B.Increase the number of minimum instances to handle traffic spikes without scaling.
C.Right-size the instances by analyzing CloudWatch metrics and reducing instance size for underutilized endpoints.
D.Limit the maximum number of concurrent invocations per endpoint.
E.Use a scheduled scaling to turn off endpoints during non-business hours.
AnswersA, C

Multi-Model Endpoints reduce cost by sharing an instance among multiple models.

Why this answer

SageMaker Multi-Model Endpoints allow you to host multiple small models on a single endpoint behind a common serving container, sharing the underlying instance resources. This reduces the number of endpoints and instances needed, lowering costs without degrading performance, as models are loaded and unloaded dynamically based on traffic.

Exam trap

The trap here is that candidates may confuse cost reduction with availability or scaling strategies, incorrectly assuming that reducing instance count or limiting concurrency is always beneficial, without considering the impact on performance or the specific capabilities of SageMaker Multi-Model Endpoints.

490
MCQmedium

A machine learning engineer is using SageMaker Processing to run a scikit-learn preprocessing script. The script reads a CSV file from S3, applies a StandardScaler, and writes the output. The job fails with a 'MemoryError'. Which change should the engineer make to the data preparation process?

A.Use a SageMaker Spark container instead of scikit-learn
B.Increase the instance memory size for the processing job
C.Write the output as Parquet instead of CSV
D.Standardize the features before loading into the DataFrame
AnswerB

More memory allows larger datasets to be processed in memory.

Why this answer

The MemoryError indicates that the processing job's instance does not have enough RAM to hold the dataset and the intermediate results of the StandardScaler (which computes mean and variance in memory). Increasing the instance memory size (Option B) directly resolves this by providing more RAM for the scikit-learn operations. SageMaker Processing jobs allow you to choose instances with larger memory, such as the r5 or r6i families, to accommodate larger datasets.

Exam trap

The trap here is that candidates may confuse a memory error with a storage or format issue, leading them to choose Parquet (Option C) or Spark (Option A), when the actual fix is to allocate more RAM to the processing instance.

How to eliminate wrong answers

Option A is wrong because switching to a Spark container does not inherently fix a memory error; Spark also requires sufficient memory per executor and may introduce overhead without addressing the root cause of insufficient RAM. Option C is wrong because writing output as Parquet instead of CSV reduces disk I/O and storage size but does not reduce the memory footprint of the in-memory DataFrame or the StandardScaler computation. Option D is wrong because standardizing features before loading into the DataFrame is not a valid operation—standardization requires the entire dataset's statistics (mean and variance), which must be computed in memory after loading.

491
MCQmedium

A data engineer is using Amazon SageMaker Data Wrangler to prepare a dataset. The dataset contains a column 'review_date' with timestamps. The engineer wants to extract the day of the week as a new feature. How should this transformation be performed in Data Wrangler?

A.Write a custom Python script using pandas dt.day_name()
B.Use one-hot encoding on the timestamp
C.Use the 'extract' transform with format '%A'
D.Use the 'day_of_week' transform on the 'review_date' column
AnswerD

Built-in transform extracts day of week (Monday=0, etc.).

Why this answer

Amazon SageMaker Data Wrangler includes a built-in 'day_of_week' transform that directly extracts the day of the week (e.g., Monday, Tuesday) from a timestamp column without requiring custom code or additional formatting. This transform is optimized for Data Wrangler's visual interface and integrates seamlessly with its processing pipeline.

Exam trap

AWS often tests the distinction between built-in transforms and custom scripting, and the trap here is that candidates may assume they need to write a Python script (Option A) because they are familiar with pandas, overlooking Data Wrangler's native 'day_of_week' transform that is simpler and more appropriate for the visual workflow.

How to eliminate wrong answers

Option A is wrong because while a custom Python script using pandas dt.day_name() could technically extract the day of the week, Data Wrangler provides a native transform that avoids the overhead of writing and maintaining custom code, and the question asks how the transformation 'should be performed' in Data Wrangler, implying use of its built-in features. Option B is wrong because one-hot encoding is a technique for converting categorical variables into binary columns, not for extracting temporal features like the day of the week from a timestamp. Option C is wrong because the 'extract' transform in Data Wrangler is used to extract substrings or patterns from text columns using regular expressions, not to interpret timestamps; the format '%A' is a Python strftime directive, but Data Wrangler's 'extract' transform does not support strftime-style parsing for timestamps.

492
MCQeasy

A company uses Amazon SageMaker to deploy a real-time inference endpoint. They notice increased latency in predictions during peak hours. Which should they investigate first to address the issue?

A.Review the endpoint auto-scaling policy
B.Check the data labeling job status
C.Modify the training instance type
D.Increase the model artifact size
AnswerA

Auto-scaling policy determines how instances are added/removed; insufficient capacity causes high latency.

Why this answer

Increased latency during peak hours is a classic symptom of insufficient compute capacity to handle the request volume. The first step is to review the endpoint's auto-scaling policy to ensure it is configured to scale out instances proactively or reactively based on a relevant metric like 'SageMakerVariantInvocationsPerInstance'. If the policy has a high cooldown period or a low target metric value, it may not add instances quickly enough, causing requests to queue and latency to spike.

Exam trap

The trap here is that candidates confuse training infrastructure (instance type, artifact size) with inference infrastructure, or assume that data labeling quality affects inference speed, when the immediate cause of peak-hour latency is almost always insufficient endpoint capacity due to misconfigured auto-scaling.

How to eliminate wrong answers

Option B is wrong because data labeling job status has no impact on the runtime performance of a deployed inference endpoint; labeling is a separate offline process. Option C is wrong because modifying the training instance type affects model training time and cost, not the inference endpoint's serving capacity or latency during peak hours. Option D is wrong because increasing the model artifact size would likely increase latency further due to longer load times and larger memory footprint, not reduce it.

493
Multi-Selectmedium

A company is using an Amazon SageMaker pipeline for automated retraining. The pipeline fails intermittently due to transient errors in the training job. Which steps should the team take to ensure the pipeline completes successfully? (Choose THREE.)

Select 3 answers
A.Enable managed spot training for cost savings and use checkpointing to resume from interruptions.
B.Use a larger instance type for the training job to reduce the chance of failure.
C.Implement automatic model checkpointing by setting the CheckpointConfig in the pipeline step.
D.Configure the SageMaker pipeline step to retry on failure with a maximum number of attempts.
E.Add exponential backoff in any custom Python code that makes API calls to AWS services.
AnswersA, D, E

Spot instances can be interrupted; checkpointing helps.

Why this answer

Enabling managed spot training with checkpointing allows the training job to resume from the last saved state if it is interrupted due to spot instance reclaimation. This directly addresses transient errors by providing fault tolerance, ensuring the pipeline can complete even if the underlying compute is preempted.

Exam trap

The trap here is that candidates often confuse 'checkpointing' (which enables resumption after interruption) with 'retry logic' (which re-runs the step on failure), and fail to recognize that both are needed together to handle transient errors in a SageMaker pipeline.

494
Multi-Selecthard

A company uses SageMaker to train a model. They want to ensure that training data is encrypted at rest and in transit, and that only authorized users can access the training artifacts. Which three steps should they take? (Choose three.)

Select 3 answers
A.Configure IAM policies to restrict access to SageMaker resources
B.Use SageMaker Model Monitor
C.Use a VPC with private subnets and VPC endpoints
D.Enable S3 server-side encryption for training data
E.Use SageMaker Network Isolation
AnswersA, C, D

Controls who can create, modify, and access SageMaker resources.

Why this answer

IAM policies allow you to define fine-grained permissions to control which users or roles can create, describe, or delete SageMaker resources (e.g., training jobs, endpoints). By restricting access via IAM, you ensure that only authorized principals can interact with training artifacts, such as model output in S3 or logs in CloudWatch. This directly addresses the requirement of limiting access to authorized users.

Exam trap

The trap here is that candidates often confuse network isolation (Option E) with encryption or access control, but network isolation only restricts network connectivity, not data encryption or authorization.

495
MCQeasy

A retail company is building a machine learning model to predict customer churn. The data engineering team has extracted customer transaction data from Amazon Aurora and stored it as CSV files in Amazon S3. The data includes customer IDs, transaction amounts, timestamps, and product categories. A data scientist discovers that the dataset contains several missing values in the 'transaction_amount' column for about 15% of the records. The data scientist also notices that the 'customer_id' column has some duplicate entries. The team wants to prepare the data for training a churn model using Amazon SageMaker. The data is approximately 50 GB in size. What should the data scientist do to handle the missing values and duplicates efficiently while preparing the data for training?

A.Use a SageMaker notebook instance with Pandas to load the entire dataset into memory, fill missing values with the median, and drop duplicate customer IDs.
B.Use an AWS Glue ETL job to read the data from S3, apply transformations to fill missing values with the mean or median, and drop duplicate customer IDs, then write the cleaned data back to S3.
C.Drop all records with missing values in the transaction_amount column and remove duplicate customer IDs using an Athena SQL query, then store the result in S3.
D.Use an Amazon EMR cluster with Spark to read the CSV files, impute missing transaction amounts with the mean or median, and remove duplicate customers.
AnswerB

Glue is serverless, scales automatically, and is suitable for 50 GB. It can efficiently handle missing value imputation and deduplication.

Why this answer

AWS Glue ETL jobs are serverless and designed to handle large-scale data transformations (like 50 GB) without requiring manual cluster management. Glue can read CSV files from S3, apply transformations to impute missing values with the mean or median, drop duplicate customer IDs, and write the cleaned data back to S3, all while scaling automatically to handle the data volume efficiently.

Exam trap

The trap here is that candidates often choose Option A (Pandas in a notebook) because it seems simple, but they overlook the memory limitations of a single-instance notebook when processing 50 GB of data, which is a classic 'scale vs. simplicity' trick in the MLA-C01 exam.

How to eliminate wrong answers

Option A is wrong because loading a 50 GB dataset into memory using Pandas in a SageMaker notebook instance is inefficient and likely to cause out-of-memory errors, as Pandas is single-threaded and not designed for distributed processing of large datasets. Option C is wrong because dropping all records with missing values (15% of data) would discard a significant portion of the dataset, potentially biasing the model, and Athena SQL queries do not natively support imputation of missing values with mean or median without complex workarounds. Option D is wrong because while Amazon EMR with Spark could handle the task, it requires provisioning and managing a cluster, which is more complex and less cost-effective than the serverless AWS Glue approach for this specific data preparation task.

496
MCQhard

A data scientist trained a logistic regression model on a dataset with 100 features. After training, the training accuracy is 0.99 but validation accuracy is 0.75. Which action is MOST likely to reduce overfitting?

A.Increase the number of features
B.Increase the regularization strength
C.Use a more complex model like XGBoost
D.Use stratified cross-validation
AnswerB

Stronger regularization (e.g., higher L2 penalty) shrinks coefficients and reduces overfitting.

Why this answer

The model shows high training accuracy (0.99) but significantly lower validation accuracy (0.75), which is a classic sign of overfitting. Increasing the regularization strength (e.g., L1 or L2 penalty) in logistic regression directly penalizes large coefficients, reducing the model's complexity and improving generalization. This is the most direct way to address overfitting in a logistic regression model.

Exam trap

AWS often tests the misconception that adding more data or using more complex models always improves performance, but here the correct answer is to increase regularization strength, which directly counters overfitting in a logistic regression model.

How to eliminate wrong answers

Option A is wrong because increasing the number of features would give the model more parameters to fit the training data even more closely, worsening overfitting rather than reducing it. Option C is wrong because using a more complex model like XGBoost would increase the model's capacity to memorize noise, which typically exacerbates overfitting unless accompanied by strong regularization or pruning. Option D is wrong because stratified cross-validation ensures class distribution balance across folds but does not directly reduce overfitting; it improves the reliability of validation metrics but does not change the model's tendency to overfit.

497
MCQeasy

A data scientist is preparing a large dataset for training a machine learning model. The dataset contains missing values in several columns. Which approach is the MOST efficient for handling missing values in a large dataset using AWS services?

A.Use AWS Glue ETL to write a custom Python script that imputes missing values with the mean.
B.Use Amazon SageMaker Data Wrangler to impute missing values using built-in transforms.
C.Use pandas in a SageMaker notebook to impute missing values with the median.
D.Remove all rows with missing values from the dataset.
AnswerB

Data Wrangler provides efficient, scalable, and visual data preparation without custom code.

Why this answer

Amazon SageMaker Data Wrangler provides a visual interface and built-in transforms for handling missing values efficiently at scale, without writing custom code. Glue ETL is more code-heavy, and imputation with pandas is not scalable for large datasets. Removing all rows with missing values is not always optimal and may not be efficient.

498
MCQhard

A team deploys a model on a SageMaker real-time endpoint using an ml.m5.xlarge instance. The model has high latency due to a large neural network. The team wants to reduce latency without changing the model code. Which option should they use?

A.Increase the instance size to ml.m5.4xlarge
B.Attach Amazon Elastic Inference to the endpoint
C.Use SageMaker Neo to compile the model
D.Switch to a GPU instance like ml.g4dn.xlarge
AnswerB

Elastic Inference provides GPU acceleration at lower cost than a full GPU instance, reducing inference latency.

Why this answer

Amazon Elastic Inference attaches a fixed amount of GPU acceleration to an EC2 instance, providing cost-effective acceleration for deep learning inference without needing a full GPU instance.

499
Multi-Selectmedium

A team is using SageMaker Automatic Model Tuning to optimize hyperparameters for an XGBoost model. They want to find the best configuration as quickly as possible, with a maximum of 50 training jobs. Which TWO strategies should they choose? (Choose TWO.)

Select 2 answers
A.Use the same objective metric but with different strategies
B.Use Hyperband with early stopping
C.Use random search
D.Use grid search
E.Use Bayesian optimization
AnswersB, E

Hyperband allocates resources to promising configurations and stops poor ones early, efficient for many jobs.

Why this answer

Bayesian optimization is efficient for few jobs. Hyperband can be more efficient but early stopping might miss good configurations. Random search is less efficient.

Grid search is too exhaustive.

500
MCQeasy

A data engineer needs to ingest streaming clickstream data from a website into an S3 data lake for ML training. The data arrives continuously and must be written to S3 in near real-time. Which AWS service is best suited for this task?

A.AWS Lambda function writing to S3 on every click event
B.Amazon Athena queries running on the website's source database
C.Amazon Kinesis Data Firehose with S3 as destination
D.AWS Glue ETL job triggered by a cron job every 5 minutes
AnswerC

Firehose is a fully managed service for loading streaming data into S3, Redshift, etc., with sub-minute latency.

Why this answer

Amazon Kinesis Data Firehose is the most appropriate service for loading streaming data into S3 with minimal effort and near-real-time latency. It can buffer, transform, and compress data before delivery.

501
MCQmedium

A machine learning team deploys a custom container image for an Amazon SageMaker training job. The container needs to access an S3 bucket that contains sensitive data. The team wants to follow the principle of least privilege. How should the team grant access?

A.Create an IAM role with S3 access and assign it as the SageMaker execution role for the training job.
B.Attach an IAM instance profile to the training instance with permissions to the bucket.
C.Configure an S3 bucket policy that grants access to the training job's ARN.
D.Store AWS access keys in the container image and use them to access the bucket.
AnswerA

This is the standard secure method.

Why this answer

SageMaker training jobs use an IAM execution role to grant permissions to AWS services like S3. By creating a dedicated IAM role with only the necessary S3 actions (e.g., s3:GetObject, s3:PutObject) and assigning it as the SageMaker execution role, the team follows the principle of least privilege. SageMaker automatically assumes this role via AWS Security Token Service (STS) to access the S3 bucket on behalf of the container, without embedding credentials.

Exam trap

The trap here is that candidates confuse SageMaker's execution role mechanism with EC2 instance profiles, assuming you can attach an IAM role directly to the underlying instance, but SageMaker abstracts instance management and only supports execution roles for granting permissions.

How to eliminate wrong answers

Option B is wrong because SageMaker training jobs do not support attaching an IAM instance profile directly to the training instance; SageMaker manages the underlying EC2 instances and uses the execution role instead. Option C is wrong because a training job does not have an ARN that can be used in an S3 bucket policy; bucket policies grant access to IAM principals (users, roles, accounts) or VPC endpoints, not to job ARNs. Option D is wrong because storing AWS access keys in a container image violates security best practices (e.g., AWS IAM recommends never embedding long-term credentials) and makes key rotation difficult, increasing the risk of exposure.

502
MCQhard

A company is deploying a large model (10GB) for real-time inference. The inference latency is too high. What optimization technique can help?

A.Increase the endpoint's memory allocation
B.Switch to a batch transform job
C.Use SageMaker Neo to compile the model for the target instance
D.Reduce the model size by quantization
AnswerC

Neo optimizes the model for inference speed on specific hardware.

Why this answer

SageMaker Neo compiles the model to optimize it for the target instance hardware, reducing inference latency without sacrificing accuracy. This is especially effective for large models (e.g., 10GB) where runtime performance gains come from hardware-specific optimizations like instruction set tuning and memory access pattern improvements.

Exam trap

The trap here is that candidates often assume quantization (Option D) is the only way to reduce latency for large models, but they overlook SageMaker Neo's compilation, which optimizes without accuracy loss and is specifically designed for deployment scenarios.

How to eliminate wrong answers

Option A is wrong because increasing memory allocation may help with out-of-memory errors but does not directly reduce inference latency; latency is more dependent on compute efficiency and model size. Option B is wrong because batch transform jobs are designed for offline, asynchronous processing, not real-time inference, and switching to batch would increase latency due to queuing and processing delays. Option D is wrong because quantization reduces model size and can improve latency, but it may degrade accuracy and is not a SageMaker-specific optimization; SageMaker Neo provides a more targeted, hardware-aware compilation that preserves accuracy while reducing latency.

503
MCQmedium

A company is deploying a multi-model endpoint using SageMaker to serve multiple models from a single endpoint. They notice that one model consumes excessive memory and impacts others. What is the BEST practice to isolate resource usage?

A.Configure instance type with more memory.
B.Use separate endpoints for each model.
C.Use SageMaker Model Parallelism.
D.Use multi-model endpoint with model cache size limit.
AnswerB

Separate endpoints provide complete isolation of compute resources.

Why this answer

Using separate endpoints for each model ensures complete resource isolation at the instance level. When one model consumes excessive memory, it cannot impact others because each model runs on its own dedicated endpoint with its own compute resources. This is the best practice for isolating resource usage in production environments where memory-intensive models are deployed.

Exam trap

The trap here is that candidates often assume multi-model endpoints are designed for resource isolation, but in reality they share memory and compute, so the correct answer is to use separate endpoints for strict isolation.

How to eliminate wrong answers

Option A is wrong because simply configuring an instance type with more memory does not isolate resource usage; all models on the same multi-model endpoint still share the same memory pool, so a memory spike in one model can still starve others. Option C is wrong because SageMaker Model Parallelism is designed for splitting large models across multiple GPUs for training, not for isolating resource usage during inference on a multi-model endpoint. Option D is wrong because setting a model cache size limit only controls how many models are cached in memory, but does not prevent a single model from consuming excessive memory once loaded; the memory usage of an individual model is not capped by this setting.

504
MCQeasy

A data scientist wants to train a binary classification model using Amazon SageMaker. The dataset has 10,000 rows and 50 features. Which SageMaker built-in algorithm is MOST appropriate for this task?

A.XGBoost
B.DeepAR
C.K-Means
D.Linear Learner
AnswerA

XGBoost is a gradient boosting algorithm that works well for classification and regression on tabular data.

Why this answer

XGBoost is a popular algorithm for classification and regression tasks. Linear Learner is more suited for linear models, K-Means is for clustering, and DeepAR is for time series forecasting.

505
MCQeasy

A company is deploying a real-time inference endpoint for a natural language processing model using Amazon SageMaker. The model is a fine-tuned BERT variant. The endpoint has been running for two weeks with acceptable latency (average 200 ms). However, over the past 24 hours, the latency has increased to an average of 800 ms, and the number of simultaneous requests has doubled. The team expects traffic to continue to grow. The current endpoint configuration uses a single ml.m5.large instance. The model is loaded into memory once, and the inference framework is PyTorch. The team needs to maintain latency under 500 ms. Which course of action should the team take to address the latency increase while minimizing cost?

A.Switch to ml.c5.large instances because CPU-optimized instances provide better inference performance for NLP models.
B.Increase the instance size to ml.m5.xlarge and keep a single instance.
C.Enable automatic scaling for the endpoint with a target average latency of 500 ms and use multiple ml.m5.large instances.
D.Implement a multi-model endpoint with multiple ml.m5.large instances and use Amazon Elastic Inference (EI) accelerators.
AnswerC

Correct: Auto scaling adds instances based on latency, distributing load and maintaining under 500 ms, and minimizes cost by scaling only when needed.

Why this answer

The latency increase is caused by a doubling of simultaneous requests overwhelming a single ml.m5.large instance. Enabling automatic scaling with a target average latency of 500 ms allows SageMaker to add more ml.m5.large instances as traffic grows, distributing the load and keeping latency under the threshold. This approach minimizes cost by scaling only when needed, rather than over-provisioning a larger instance.

Exam trap

The trap here is that candidates often assume a larger single instance (Option B) is the simplest fix, but they overlook that concurrency scaling requires horizontal scaling to avoid queue buildup, not just vertical scaling.

How to eliminate wrong answers

Option A is wrong because ml.c5.large instances are compute-optimized for CPU-bound workloads, but BERT inference is memory-bandwidth and memory-capacity intensive due to large model parameters and attention mechanisms; switching to a CPU-optimized instance would not address the root cause of increased concurrency and could worsen latency. Option B is wrong because increasing the instance size to ml.m5.xlarge provides more memory and compute, but a single instance still becomes a bottleneck under growing concurrent requests, leading to queuing delays and eventual latency spikes beyond 500 ms. Option D is wrong because multi-model endpoints are designed to host multiple models on shared instances, not to improve latency for a single model; Amazon Elastic Inference (EI) accelerators are deprecated and not recommended for new deployments, and they do not solve the concurrency issue.

506
MCQeasy

A data scientist wants to automate retraining of a model weekly and deploy the new model automatically after passing validation. Which AWS service combination is best?

A.SageMaker Pipelines + AWS Step Functions
B.Amazon EventBridge + SageMaker training job
C.Amazon SageMaker Autopilot
D.AWS Lambda + SageMaker training job
AnswerA

SageMaker Pipelines manages training and validation, Step Functions can orchestrate deployment on approval.

Why this answer

SageMaker Pipelines orchestrates the ML workflow including training and validation, and Step Functions can trigger deployment. SageMaker alone lacks native scheduling, and Lambda cannot orchestrate complex workflows.

507
MCQeasy

A team wants to track and compare multiple machine learning experiments, including hyperparameters, metrics, and artifacts. They are using Amazon SageMaker. Which AWS service or feature should they use to achieve this?

A.AWS CloudTrail
B.Amazon SageMaker Experiments
C.Amazon SageMaker Model Registry
D.Amazon SageMaker Studio
AnswerB

Experiments is the correct service for tracking.

Why this answer

Amazon SageMaker Experiments is the correct service because it is specifically designed to track and compare machine learning experiments, including hyperparameters, metrics, and artifacts. It provides a structured way to log, organize, and analyze multiple runs, enabling teams to identify the best-performing model configurations.

Exam trap

The trap here is that candidates confuse SageMaker Studio (the IDE) with SageMaker Experiments (the tracking service), assuming Studio alone provides experiment tracking, but Studio is merely the interface that can visualize experiment data stored by Experiments.

How to eliminate wrong answers

Option A is wrong because AWS CloudTrail records API activity for auditing and governance, not for tracking ML experiment metadata like hyperparameters or metrics. Option C is wrong because Amazon SageMaker Model Registry is used for cataloging and managing approved model versions, not for tracking the iterative experiments that produce them. Option D is wrong because Amazon SageMaker Studio is an integrated development environment (IDE) for ML workflows; while it can display experiment data, it is not the service that tracks experiments itself.

508
MCQmedium

A machine learning team is deploying a fraud detection model using SageMaker. They use the SageMaker Model Registry to track model versions. They want to automatically deploy the latest approved model to a production endpoint whenever a new model version is approved. The team uses a CI/CD pipeline with AWS CodePipeline. The pipeline currently includes a source stage (S3), a build stage (CodeBuild), and a deploy stage (manual approval). They want to automate the deployment of approved models. Which solution will meet these requirements with the least operational overhead?

A.Add a custom action to CodePipeline that uses a SageMaker deployment step.
B.Create a Lambda function that triggers on Model Registry approval events and updates the endpoint using the boto3 SDK.
C.Configure an EventBridge rule to trigger a CodePipeline execution when the model approval status changes.
D.Use SageMaker Pipelines to deploy the model directly upon training completion.
AnswerC

EventBridge natively integrates with Model Registry events and triggers the pipeline automatically.

Why this answer

It directly integrates SageMaker Model Registry approval events with CodePipeline via EventBridge, enabling fully automated deployment of the latest approved model to a production endpoint with minimal operational overhead. This approach avoids custom code or additional pipeline stages, leveraging native AWS event-driven architecture to trigger the pipeline only when a model version is approved.

Exam trap

AWS often tests the misconception that you must build a custom Lambda or pipeline action to integrate SageMaker Model Registry with CodePipeline, when in fact EventBridge provides a native, low-overhead solution for event-driven pipeline triggers.

How to eliminate wrong answers

Option A is wrong because adding a custom action to CodePipeline that uses a SageMaker deployment step would require significant custom development and maintenance, increasing operational overhead compared to a native EventBridge trigger. Option B is wrong because creating a Lambda function to poll or react to Model Registry approval events and update the endpoint directly bypasses the existing CodePipeline CI/CD process, losing pipeline visibility, approval gates, and rollback capabilities. Option D is wrong because SageMaker Pipelines are designed for orchestrating training and deployment workflows upon training completion, not for reacting to Model Registry approval events in a CI/CD pipeline, and would require additional integration to trigger on approval rather than training.

509
Multi-Selectmedium

A company uses Amazon SageMaker to deploy a model for real-time inference. They want to perform A/B testing between two model versions. Which TWO actions should the company take to set up A/B testing? (Choose TWO.)

Select 2 answers
A.Create an endpoint configuration with multiple production variants, each with a different model.
B.Use Amazon CloudWatch Evidently to split traffic between models.
C.Set the initial weight of each production variant to the desired traffic split.
D.Enable auto scaling for each production variant individually.
E.Set the second production variant's weight to 0 and update later to 100.
AnswersA, C

Production variants allow multiple models on the same endpoint.

Why this answer

In SageMaker, A/B testing between two model versions is achieved by creating an endpoint configuration with multiple production variants, each pointing to a different model. This allows the endpoint to host both models simultaneously and route traffic between them based on assigned weights.

Exam trap

The trap here is that candidates confuse the separate service Amazon CloudWatch Evidently with SageMaker's native traffic splitting, or think that auto scaling or zero-weight strategies are prerequisites for A/B testing.

510
MCQhard

A financial services company needs to deploy a SageMaker endpoint that processes sensitive customer data. The security policy requires that all data in transit between the endpoint and the application must be encrypted, and that the endpoint cannot be accessed from the public internet. Additionally, model containers must not be able to initiate outbound internet requests. Which combination of settings meets these requirements?

A.Attach a public endpoint with an SSL certificate and restrict access via IAM
B.Use a private subnet with a NAT Gateway and set EnableNetworkIsolation to True
C.Deploy on a multi-model endpoint with encryption at rest using KMS
D.Enable VPC-only mode for the endpoint and set EnableInterContainerTrafficEncryption to True
AnswerD

VPC-only removes public access and forces traffic through VPC; inter-container encryption secures container-to-container communication.

Why this answer

Enabling VPC-only mode for the SageMaker endpoint ensures the endpoint is not accessible from the public internet, and setting EnableInterContainerTrafficEncryption to True encrypts data in transit between containers within the endpoint. This combination directly satisfies the requirements for no public internet access and encrypted data in transit, while the model containers are isolated from outbound internet requests by the VPC configuration.

Exam trap

The trap here is that candidates confuse EnableInterContainerTrafficEncryption with general data-in-transit encryption, overlooking that it only applies to inter-container traffic, while VPC-only mode is needed to block public internet access and prevent outbound requests.

How to eliminate wrong answers

Option A is wrong because a public endpoint with an SSL certificate still exposes the endpoint to the public internet, violating the requirement that the endpoint cannot be accessed from the public internet; IAM alone does not prevent network-level public access. Option B is wrong because using a private subnet with a NAT Gateway actually allows outbound internet traffic from the model containers, contradicting the requirement that containers must not initiate outbound internet requests; EnableNetworkIsolation only restricts network access between containers, not outbound internet. Option C is wrong because a multi-model endpoint with encryption at rest using KMS addresses data at rest, not data in transit or public internet access; it does not prevent public endpoint exposure or encrypt inter-container traffic.

511
MCQeasy

A company wants to maintain multiple versions of a trained model in a central repository and track metadata such as training metrics, hyperparameters, and approval status. Which SageMaker feature should they use?

A.SageMaker Pipelines
B.SageMaker Feature Store
C.SageMaker Model Registry
D.SageMaker Experiments
E.SageMaker Studio
AnswerC

Correct. Model Registry provides a central repository for model versions, metadata, and approval status.

Why this answer

SageMaker Model Registry is the correct choice because it is specifically designed to serve as a central repository for managing multiple versions of trained models, tracking metadata such as training metrics, hyperparameters, and approval status. It integrates with SageMaker Pipelines and Experiments to automate model governance, enabling versioning, approval workflows, and lineage tracking.

Exam trap

The trap here is that candidates often confuse SageMaker Experiments (which tracks training runs) with the Model Registry (which manages model versions and approvals), leading them to select Experiments when the question explicitly asks for a central repository with versioning and approval workflows.

How to eliminate wrong answers

Option A is wrong because SageMaker Pipelines is a workflow orchestration service for building and automating ML pipelines, not a repository for storing model versions and metadata. Option B is wrong because SageMaker Feature Store is designed for storing, sharing, and managing feature data for training and inference, not for tracking model versions or approval status. Option D is wrong because SageMaker Experiments is used for tracking and comparing training runs, including metrics and hyperparameters, but it does not provide a centralized model registry with versioning and approval workflows.

Option E is wrong because SageMaker Studio is an integrated development environment (IDE) for ML, not a dedicated service for model version management and metadata tracking.

512
MCQmedium

A data engineer is designing a pipeline to process customer reviews for sentiment analysis. The text data contains punctuation, common words like 'the' and 'and', and emojis. Which sequence of preprocessing steps should they apply in Amazon SageMaker Data Wrangler?

A.Tokenization → Lowercase conversion → Remove punctuation
B.Lowercase conversion → Remove punctuation → Remove stop words → Tokenization
C.Remove stop words → Tokenization → Remove punctuation
D.Tokenization → Remove stop words → Lowercase conversion
AnswerB

Standard sequence: normalize case, clean punctuation, remove common words, then tokenize.

Why this answer

Standard text preprocessing: lowercase, remove punctuation, remove stop words, then tokenize. Emoji handling could be additional, but the basic sequence is as described.

513
MCQeasy

A company trained a model using SageMaker and wants to deploy it with low latency for real-time inference. Which SageMaker feature is MOST suitable?

A.SageMaker Endpoint with Auto Scaling
B.SageMaker Serverless Inference
C.SageMaker Real-Time Endpoint
D.SageMaker Batch Transform
AnswerC

Real-time endpoints provide low-latency inference suitable for online predictions.

Why this answer

SageMaker Real-Time Endpoint is the most suitable feature for low-latency real-time inference because it provisions dedicated, persistent instances that respond to requests synchronously with predictable latency. This option directly meets the requirement for serving individual predictions with minimal delay, unlike batch or serverless alternatives that introduce higher latency or are designed for asynchronous processing.

Exam trap

The trap here is that candidates confuse 'Auto Scaling' (a scaling mechanism) with a separate deployment option, or they assume 'Serverless' always provides low latency, ignoring the cold start penalty that makes it unsuitable for real-time inference.

How to eliminate wrong answers

Option A is wrong because SageMaker Endpoint with Auto Scaling is not a distinct feature; it is a configuration applied to a Real-Time Endpoint to adjust capacity based on load, but the core requirement for low-latency real-time inference is already met by the Real-Time Endpoint itself, and Auto Scaling does not change the fundamental synchronous nature. Option B is wrong because SageMaker Serverless Inference automatically scales from zero and incurs cold start latency (often seconds) when there is no prior traffic, making it unsuitable for applications requiring consistently low latency for real-time inference. Option D is wrong because SageMaker Batch Transform is designed for asynchronous, offline inference on large datasets where latency is not a concern, processing data in batches and writing results to S3, not for real-time, synchronous requests.

514
Multi-Selectmedium

A team wants to deploy a single SageMaker real-time endpoint that serves both a PyTorch model for NLP and a TensorFlow model for image classification. Each model requires a different inference container. Which two features can they use together to achieve this? (Select TWO.)

Select 2 answers
A.Multi-model endpoint
B.Multi-container endpoint
C.Production variants
D.SageMaker inference components
E.SageMaker Neo compilation
AnswersB, D

Multi-container endpoints can run different containers for different models.

Why this answer

A multi-container endpoint allows running multiple containers (e.g., PyTorch and TensorFlow) on the same endpoint. With inference components, each container can be associated with a specific model, and the routing logic directs requests to the appropriate container based on the model name.

515
Multi-Selectmedium

A company is building a real-time fraud detection system using Amazon Kinesis Data Streams. The data must be joined with a reference table (e.g., customer profile) that is stored in Amazon DynamoDB and updated frequently. The enriched data will be used for ML predictions. Which THREE AWS services should the company use to build this streaming pipeline? (Select THREE.)

Select 3 answers
A.Amazon Kinesis Data Analytics for Apache Flink
B.Amazon Kinesis Data Firehose
C.Amazon Kinesis Data Streams
D.AWS Glue ETL
E.Amazon DynamoDB
AnswersA, C, E

Kinesis Data Analytics for Flink can perform real-time stream enrichment by joining with DynamoDB.

Why this answer

Kinesis Data Streams ingests streaming data. Kinesis Data Analytics for Apache Flink can perform stream-stream joins and enrich data with DynamoDB lookups. The enriched output can be sent to a Kinesis Data Stream or Firehose.

Alternatively, using Lambda for enrichment is also valid, but the question asks for three services. The combination of Kinesis Data Streams, Kinesis Data Analytics (Flink), and DynamoDB covers ingestion, enrichment, and reference data. Kinesis Data Firehose is for delivery, not enrichment.

516
MCQhard

A model has high training accuracy but low validation accuracy. Which action is least likely to reduce overfitting?

A.Use dropout
B.Increase regularization strength
C.Add more training data
D.Increase model complexity
AnswerD

Increasing complexity makes the model more prone to overfitting.

Why this answer

Increasing model complexity (e.g., adding more layers or parameters) makes the model more flexible, which typically exacerbates overfitting by allowing it to memorize noise in the training data. Since the goal is to reduce overfitting, this action is counterproductive and therefore the least likely to help.

Exam trap

AWS often tests the misconception that 'more complex models always perform better,' leading candidates to incorrectly select increasing model complexity as a solution to overfitting rather than recognizing it as a cause.

How to eliminate wrong answers

Option A is wrong because dropout randomly deactivates neurons during training, which forces the network to learn redundant representations and reduces co-adaptation, directly combating overfitting. Option B is wrong because increasing regularization strength (e.g., L1/L2 penalty) adds a cost for large weights, shrinking the hypothesis space and preventing the model from fitting noise. Option C is wrong because adding more training data provides the model with more diverse examples, reducing the chance of memorizing spurious patterns and improving generalization.

517
MCQmedium

A company uses SageMaker Model Registry to manage model versions. They have a cross-account deployment requirement: models approved in the development account must be deployed to a production account. Which approach is the MOST secure and recommended?

A.Export the model from Model Registry to a tar.gz file and upload to the production account manually
B.Copy the model artifact to a public S3 bucket and then create the model in the production account
C.Use a Lambda function in the development account to call CreateEndpoint in the production account using cross-account IAM roles
D.Share the model package group from the development account to the production account using AWS RAM, then create a model version in the production account
AnswerD

AWS Resource Access Manager allows sharing model packages across accounts securely, and then the production account can deploy.

Why this answer

Cross-account deployment can be achieved by sharing the model package across accounts using AWS Resource Access Manager (RAM) or by exporting the model artifact to an S3 bucket with appropriate cross-account permissions, then creating the model in the target account.

518
MCQeasy

A company is using Amazon SageMaker to train a model on sensitive customer data. The security team requires that all data be encrypted in transit and at rest, and that the training job does not have internet access. Which configuration should the team use to meet these requirements?

A.Configure the training job to run in a public subnet with a security group that blocks outbound traffic
B.Configure the training job to run in a private subnet, but disable encryption to reduce latency
C.Configure the training job to run in a private subnet with no internet access, and use a KMS key for encryption
D.Configure the training job to run in a VPC with a NAT gateway, and use default SageMaker encryption
AnswerC

Private subnet restricts internet; KMS encrypts data.

Why this answer

Running the SageMaker training job in a private subnet with no internet access ensures the job cannot reach the public internet, satisfying the no-internet-access requirement. Using an AWS KMS key for encryption at rest (for the S3 bucket and EBS volumes) and enforcing encryption in transit (via HTTPS/TLS for SageMaker and S3 endpoints) meets the encryption requirements. SageMaker training jobs in a private subnet use VPC endpoints (e.g., S3 and SageMaker API endpoints) to communicate securely without internet access.

Exam trap

The trap here is that candidates often confuse a private subnet with a NAT gateway as providing no internet access, but a NAT gateway actually enables outbound internet connectivity, which violates the requirement.

How to eliminate wrong answers

Option A is wrong because a public subnet inherently provides internet access via an internet gateway, violating the no-internet-access requirement; blocking outbound traffic with a security group does not prevent the instance from having a public IP or being reachable from the internet. Option B is wrong because disabling encryption violates the requirement that all data be encrypted in transit and at rest; encryption does not inherently increase latency in a meaningful way for SageMaker training jobs. Option D is wrong because a NAT gateway provides outbound internet access for instances in a private subnet, which violates the no-internet-access requirement; default SageMaker encryption uses AWS-managed keys, not a customer-managed KMS key, which may not satisfy the security team's requirement for explicit encryption control.

519
MCQeasy

A machine learning engineer wants to deploy a pre-trained foundation model for text summarization using SageMaker JumpStart. Which of the following is a primary cost consideration when deploying such a model?

A.The cost of fine-tuning the model on custom data
B.The cost of GPU instances required for low-latency inference
C.The cost of data transfer for inference requests
D.The cost of storing the model artifacts in S3
AnswerB

GPU instances are expensive and the main cost driver for large model inference.

Why this answer

Foundation models are large and require GPU instances, which are more expensive. Inference cost is driven by instance type (GPU vs CPU) and the number of instances. While throughput and latency are performance considerations, the primary cost factor is the compute instance type.

Data transfer costs are secondary. Fine-tuning costs are separate.

520
MCQeasy

A data engineer is building a feature store using Amazon SageMaker Feature Store. The team needs to store features that are updated frequently and require low-latency retrieval for real-time inference. Which type of store should the engineer use?

A.Both online and offline store
B.Offline store
C.Online store
D.Amazon DynamoDB directly
AnswerC

Online store is designed for low-latency reads/writes for real-time applications.

Why this answer

Online store provides low-latency access for real-time inference. Offline store is for batch analytics.

521
MCQhard

A security team requires that all data used by a SageMaker training job be encrypted at rest using a customer-managed KMS key. The data is stored in an S3 bucket that is already encrypted with SSE-KMS. What additional configuration is needed on the SageMaker training job?

A.Specify the KMS key as the VolumeKmsKeyId and OutputKmsKeyId in the training job configuration
B.Enable inter-container traffic encryption
C.No additional configuration is required because S3 SSE-KMS automatically applies
D.Use network isolation mode
AnswerA

This ensures that the training volume and output are encrypted with the same key.

Why this answer

When the input data is encrypted with a customer-managed KMS key, you must specify the same KMS key in the VolumeKmsKeyId parameter of the training job to encrypt the ML storage volume, and also set the OutputKmsKeyId for output encryption.

522
Multi-Selectmedium

A data scientist is preparing a dataset for a multiclass classification problem. The dataset has a categorical feature with 50 unique values (medium cardinality) and a target variable with 5 classes. The scientist wants to encode the categorical feature in a way that captures the relationship with the target while keeping the number of output features manageable. Which TWO encoding methods should the scientist consider? (Select TWO.)

Select 2 answers
A.Frequency encoding
B.Label encoding
C.Ordinal encoding
D.Target encoding
E.One-hot encoding
AnswersD, E

Target encoding uses target mean per category, capturing predictive signal in one column.

Why this answer

Target encoding captures the target relationship and produces a single numeric column. Ordinal encoding assigns integers but may imply order. One-hot encoding creates 50 columns, which may be acceptable but increases dimensionality.

Frequency encoding loses target signal. The best choices are target encoding (directly uses target) and one-hot encoding (if dimensionality is acceptable).

523
MCQhard

A company uses SageMaker Ground Truth to create a labeled dataset, then trains a model using SageMaker Training. They want to automate the pipeline so that whenever a labeling job is completed, it triggers the training job. Which architecture meets this requirement with minimal latency?

A.Use AWS Step Functions to poll the labeling job status and then start training.
B.Configure an S3 event notification on the labeling job output bucket to trigger a Lambda function that starts training.
C.Use Amazon CloudWatch Events (EventBridge) to detect the completed labeling job and trigger a SageMaker Pipeline execution.
D.Set up a scheduled cron job in EventBridge to check for completed labeling jobs every hour and start training if found.
AnswerC

EventBridge directly supports SageMaker events and can start a pipeline execution with minimal latency.

Why this answer

Amazon EventBridge can natively capture SageMaker job state changes (e.g., `SageMaker Labeling Job State Change` to `Completed`) and directly trigger a SageMaker Pipeline execution. This event-driven approach eliminates polling overhead and provides the lowest latency by reacting immediately when the labeling job finishes.

Exam trap

The trap here is that candidates often assume S3 event notifications are the simplest event-driven trigger, but they overlook the fact that S3 events can fire on intermediate writes (e.g., partial output files) rather than waiting for the labeling job's definitive `Completed` state, leading to data integrity issues.

How to eliminate wrong answers

Option A is wrong because polling the labeling job status with AWS Step Functions introduces unnecessary latency and cost from repeated API calls, and it is not a true event-driven architecture. Option B is wrong because S3 event notifications on the labeling job output bucket may fire before the labeling job is fully complete (e.g., partial writes) and do not guarantee that the job has transitioned to the `Completed` state, risking training on incomplete data. Option D is wrong because a scheduled cron job running every hour introduces up to 60 minutes of latency, which fails the 'minimal latency' requirement and is inefficient compared to an event-driven trigger.

524
Multi-Selecthard

A healthcare company deploys a model to predict patient readmission risk. The model was trained on historical data and is now showing signs of concept drift. The team needs to implement a monitoring solution that can detect drift and automatically retrain the model when drift is detected. Which THREE steps should the team take to build this solution? (Choose THREE.)

Select 3 answers
A.Deploy SageMaker Model Monitor to track prediction quality over time
B.Disable the existing endpoint to prevent stale predictions during retraining
C.Set up a process to collect ground truth labels from patient outcomes
D.Manually compare the model's predictions against a holdout validation set each week
E.Use AWS Lambda to invoke a SageMaker training job when drift is detected
AnswersA, C, E

Model Monitor can detect drift using ground truth.

Why this answer

A is correct because Amazon SageMaker Model Monitor can continuously track prediction quality metrics (e.g., accuracy, precision) over time by analyzing data captured from the endpoint. This allows the team to detect concept drift by comparing live predictions against a baseline, triggering alerts when performance degrades. It provides a managed, automated way to monitor model quality without manual intervention.

Exam trap

The trap here is that candidates might think disabling the endpoint (Option B) is necessary to prevent stale predictions, but AWS best practice is to keep the endpoint live and use a separate pipeline (e.g., Lambda triggering a training job) to retrain and then update the endpoint without downtime.

525
MCQmedium

A team wants to use SageMaker Clarify to monitor bias in their production model predictions. They have configured a bias drift monitor. What does SageMaker Clarify compare to detect bias drift?

A.Current input data distribution against the training data distribution
B.Current bias metrics against a baseline bias metrics computed from training data
C.Current SHAP feature attributions against baseline SHAP values
D.Current predictions against ground truth labels collected in real-time
AnswerB

Bias drift monitor compares current bias metrics (e.g., DPPL, AD) to baseline values to detect change.

Why this answer

SageMaker Clarify bias drift monitor compares the bias metrics computed on current predictions against the baseline bias metrics computed from the training data or from an earlier period. It does not compare against model quality metrics or SHAP values. The baseline is typically established during the initial monitoring setup.

Page 6

Page 7 of 12

Page 8