Courseiva

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

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

Page 5

Page 6 of 12

Page 7
376
MCQeasy

A machine learning engineer is using Amazon SageMaker Experiments to track multiple training runs. They want to compare the performance of different hyperparameter configurations visually. Which SageMaker tool provides an interactive interface to compare experiments?

A.SageMaker Studio
B.SageMaker Model Monitor
C.SageMaker Experiments SDK
D.SageMaker Debugger Insights
AnswerA

SageMaker Studio offers a rich visual interface to browse, compare, and analyze experiments.

Why this answer

SageMaker Studio provides an interactive, web-based interface that allows you to visually compare experiment runs, including hyperparameter configurations and performance metrics, through built-in experiment management and visualization tools. This is the correct answer because the question specifically asks for an interactive interface, which Studio offers natively, unlike the other options which are programmatic or monitoring-focused.

Exam trap

The trap here is that candidates confuse the SageMaker Experiments SDK (a programmatic tool) with the interactive visual interface provided by SageMaker Studio, leading them to select option C because they think 'Experiments' implies a visual tool, but the SDK is code-only.

How to eliminate wrong answers

Option B is wrong because SageMaker Model Monitor is designed for detecting data drift and model quality degradation over time, not for comparing hyperparameter configurations across training runs. Option C is wrong because the SageMaker Experiments SDK is a programmatic API for logging and querying experiment data, not an interactive visual interface. Option D is wrong because SageMaker Debugger Insights provides debugging and profiling information during training, such as gradients and tensors, but lacks the interactive experiment comparison capabilities needed for hyperparameter analysis.

377
MCQmedium

A company has deployed a real-time inference endpoint using SageMaker. The endpoint latency is within acceptable limits, but the team notices that the Invocations metric shows occasional spikes. They want to investigate the source of the spikes. Which CloudWatch metric should they examine to isolate the time spent in SageMaker overhead versus model inference?

A.OverheadLatency
B.Latency
C.Both ModelLatency and OverheadLatency
D.ModelLatency
AnswerC

Comparing ModelLatency and OverheadLatency allows the team to determine whether the spike is due to model inference time or SageMaker infrastructure overhead.

378
MCQeasy

An ML engineer needs to deploy a model as an AWS Lambda function for serverless inference. The model is a scikit-learn pipeline serialized as a pickle file. What is the best way to include the model in the Lambda deployment?

A.Create a Lambda layer with the model file and use it in the function
B.Use API Gateway to proxy requests to the model stored in S3
C.Store the model in S3 and download it on every invocation
D.Mount an EFS file system containing the model
AnswerA

A layer allows the model to be included without increasing the function code size.

Why this answer

Lambda layers allow you to package and include large dependencies, such as a serialized scikit-learn pipeline, separately from your function code. Layers are extracted into the /opt directory and are available across function invocations without cold-start overhead from downloading, making them the most efficient and best-practice approach for bundling static model artifacts in serverless inference.

Exam trap

The trap here is that candidates may think downloading from S3 on every invocation (Option C) is acceptable for serverless, but they overlook the severe cold-start latency and cost implications, or they confuse API Gateway's role as a proxy (Option B) without realizing it still needs a compute backend.

How to eliminate wrong answers

Option B is wrong because API Gateway is a front-end service for creating RESTful APIs; it cannot proxy requests directly to a model stored in S3 — you would still need a compute layer (like Lambda) to load the model and run inference. Option C is wrong because downloading the model from S3 on every invocation introduces significant latency and cost, and may cause timeouts or throttling under load; models should be loaded once and reused across invocations. Option D is wrong because mounting an EFS file system adds complexity, cost, and potential cold-start delays, and is overkill for a static pickle file that can be included directly in a layer; EFS is better suited for large, dynamic datasets that need concurrent access across multiple functions.

379
MCQhard

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

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

A custom training job can implement the reward model training using PyTorch.

Why this answer

RLHF typically involves training a reward model on human preference data. SageMaker can be used to train any custom model, including a reward model, using its training jobs with a PyTorch or TensorFlow estimator.

380
MCQmedium

A team uses MLflow on SageMaker for experiment tracking. They want to automatically deploy the best-performing model from an MLflow run to a SageMaker endpoint for real-time inference. What is the MOST efficient way to achieve this?

A.Use AWS Step Functions to trigger an MLflow run and then call SageMaker CreateEndpoint
B.Use SageMaker Pipelines with the MLflow integration to register the model and deploy via a Transform step
C.Set up an EventBridge rule to trigger a Lambda that deploys the model whenever a new MLflow run is logged
D.Manually export the model artifact from MLflow and upload to S3, then create a SageMaker model and endpoint
AnswerB

SageMaker Pipelines can automate the workflow: get best run from MLflow, register model, and deploy using a Transform or endpoint deployment step.

Why this answer

The MLflow Model Registry can be integrated with SageMaker via the MLflow plugin for SageMaker, which allows direct deployment from the registry to an endpoint. Alternatively, using SageMaker Pipelines with the MLflow integration is more automated and production-grade.

381
MCQeasy

A data scientist needs to annotate a large dataset of images for an object detection model. The team wants to minimize manual labeling effort and cost. Which Amazon SageMaker feature should they use?

A.SageMaker Ground Truth
B.SageMaker Feature Store
C.SageMaker Studio Classic
D.SageMaker Data Wrangler
AnswerA

Ground Truth with active learning reduces manual labeling by pre-labeling data and only sending uncertain samples to humans.

Why this answer

SageMaker Ground Truth provides labeling workflows with built-in active learning, which automatically selects the most informative images for human review and uses machine learning to label the rest, reducing manual effort and cost.

382
MCQmedium

A data scientist is training an XGBoost model on a large tabular dataset using SageMaker. The training job is taking too long. The scientist wants to reduce training time while maintaining model quality. Which action should the scientist take?

A.Use SageMaker distributed data parallelism across multiple instances
B.Enable SageMaker managed spot training
C.Switch to Hyperband for hyperparameter tuning
D.Convert the XGBoost model to a Linear Learner model
AnswerA

Distributed data parallelism speeds up training by splitting data across multiple instances.

Why this answer

Using SageMaker's managed spot training can significantly reduce cost, but it may cause interruptions. The best approach to reduce training time is to use distributed data parallelism with multiple instances. Increasing instance type can also speed up training, but distributed training is more scalable.

Using Hyperband is for hyperparameter tuning, not for reducing training time directly. Converting to a different algorithm is not necessary.

383
MCQeasy

A company is setting up a data pipeline to ingest streaming clickstream data from their website for real-time analytics and machine learning. The data must be reliably ingested, transformed, and stored in Amazon S3 for batch processing. Which combination of AWS services should be used?

A.Amazon Kinesis Data Analytics to Amazon S3
B.AWS Glue ETL job to Amazon S3
C.Amazon Kinesis Data Firehose to Amazon S3
D.Amazon Kinesis Data Streams to Amazon SageMaker
AnswerC

Firehose directly delivers streaming data to S3 with optional transformations, making it ideal for this use case.

Why this answer

Amazon Kinesis Data Firehose is the correct choice because it is a fully managed service designed to reliably ingest streaming data, transform it (e.g., convert to Parquet/ORC, compress, or invoke AWS Lambda for custom transformations), and automatically deliver it to Amazon S3 without requiring custom code or manual scaling. This directly meets the requirement for real-time ingestion, transformation, and storage in S3 for batch processing.

Exam trap

The trap here is that candidates confuse Kinesis Data Streams (a raw streaming layer requiring custom consumers) with Kinesis Data Firehose (a managed delivery service to destinations like S3), often picking Data Streams because it is more commonly discussed, but it does not directly write to S3 without additional components.

How to eliminate wrong answers

Option A is wrong because Amazon Kinesis Data Analytics is used for real-time SQL or Apache Flink-based analytics on streaming data, not for reliably ingesting and storing raw data to S3; it lacks built-in delivery to S3. Option B is wrong because AWS Glue ETL jobs are batch-oriented processing tools that run on a schedule or trigger, not designed for real-time streaming ingestion from a website. Option D is wrong because Amazon Kinesis Data Streams is a real-time data streaming service that requires a separate consumer (e.g., Lambda, Kinesis Data Firehose, or custom application) to write to S3, and Amazon SageMaker is a machine learning platform, not a storage destination for raw clickstream data.

384
MCQmedium

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

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

A machine learning engineer needs to deploy a model that requires less than 100 ms inference latency for real-time predictions. The model is a small PyTorch model that fits in a single GPU. Which SageMaker inference option is MOST cost-effective for this scenario?

A.Asynchronous inference endpoint
B.Real-time endpoint on ml.g4dn.xlarge
C.Batch transform job
D.Serverless inference with max concurrency set to 10
AnswerD

Serverless inference scales to zero when idle and charges only for the compute time used, making it cost-effective for low and variable traffic.

Why this answer

For low latency and occasional traffic, serverless inference is cost-effective because it scales to zero when not in use and charges per inference. Real-time endpoints incur cost even when idle, batch transform is for offline processing, and asynchronous inference has higher latency.

386
Multi-Selectmedium

A machine learning team notices an increase in 5XXError count for a SageMaker endpoint. They want to set up automated remediation. Which THREE actions should they take? (Select THREE)

Select 3 answers
A.Add an SNS topic as the alarm action
B.Increase the endpoint instance count manually
C.Create a CloudWatch Alarm on the 5XXError metric
D.Enable detailed monitoring on the endpoint
E.Configure a Lambda function to restart the endpoint or scale out
AnswersA, C, E

SNS sends notifications to subscribers or triggers automation.

Why this answer

Adding an SNS topic as the alarm action enables automated notifications when the CloudWatch Alarm triggers on the 5XXError metric. This allows the team to receive alerts and trigger downstream remediation workflows, such as invoking a Lambda function, without manual intervention.

Exam trap

The trap here is that candidates often confuse enabling detailed monitoring (which only increases metric frequency) with automated remediation, or they mistakenly think manual scaling counts as automated remediation.

387
MCQhard

A company uses Amazon Kinesis Data Streams to ingest real-time user interactions and wants to store the data in Amazon S3 for historical analysis. They need to transform the data (e.g., add timestamps, filter records) before storage. Which approach is MOST cost-effective?

A.Use AWS Glue ETL to read from the stream in micro-batches and write to S3
B.Use Kinesis Data Analytics for SQL transformations and then output to Firehose
C.Use Kinesis Data Firehose with AWS Lambda transformation
D.Use Kinesis Client Library (KCL) to consume the stream, transform, and write to S3
AnswerC

Firehose can transform data using a Lambda function before delivering to S3, cost-effective and fully managed.

Why this answer

The most cost-effective because Kinesis Data Firehose natively integrates with AWS Lambda for near-real-time, per-record transformations, and directly writes to S3 without requiring a separate compute resource to manage. This serverless approach minimizes operational overhead and cost compared to running continuous ETL jobs or managing a custom consumer application.

Exam trap

The trap here is that candidates often over-engineer the solution by choosing a more complex analytics or ETL service (like Kinesis Data Analytics or AWS Glue) when a simple, serverless Lambda transformation within Firehose is sufficient and more cost-effective for basic per-record transformations.

How to eliminate wrong answers

Option A is wrong because AWS Glue ETL running in micro-batches incurs higher costs due to the need for a continuously running Spark environment, and it introduces latency that is unnecessary for simple per-record transformations. Option B is wrong because Kinesis Data Analytics for SQL is designed for complex streaming analytics (e.g., aggregations, windowed queries) and adds unnecessary complexity and cost for simple per-record transformations like adding timestamps or filtering. Option D is wrong because using the Kinesis Client Library (KCL) requires you to provision and manage your own compute (e.g., EC2 instances or containers) to run the consumer application, leading to higher operational overhead and cost compared to the fully managed Firehose + Lambda approach.

388
MCQeasy

A data scientist needs to version and manage multiple models for a team of five. The team frequently experiments with different algorithms and hyperparameters. They need a centralized registry to store, deploy, and compare model versions. Which AWS service should the data scientist use?

A.Store each model artifact in Amazon S3 with manual versioning in the key name.
B.Use AWS Config to track model version changes.
C.Use AWS CodeArtifact to store model packages.
D.Use Amazon SageMaker Model Registry.
AnswerD

Model Registry provides centralized version control, metadata, and stage transitions (Draft, Approved, Deployed).

Why this answer

Amazon SageMaker Model Registry is the correct choice because it provides a centralized repository specifically designed for cataloging, versioning, approving, and deploying machine learning models. It integrates natively with SageMaker pipelines and endpoints, enabling the team to compare model versions, manage metadata (e.g., hyperparameters, metrics), and promote models through stages (e.g., from staging to production) with approval workflows.

Exam trap

The trap here is that candidates confuse AWS CodeArtifact (a package manager for code libraries) with a model registry, overlooking that SageMaker Model Registry is purpose-built for ML model versioning, metadata tracking, and deployment orchestration.

How to eliminate wrong answers

Option A is wrong because manual versioning in S3 key names lacks built-in model metadata tracking, approval workflows, and deployment integration, making it error-prone and unscalable for a team of five. Option B is wrong because AWS Config is a service for auditing and evaluating resource configurations (e.g., compliance rules), not for versioning or managing ML model artifacts. Option C is wrong because AWS CodeArtifact is a package management service for software libraries (e.g., Python packages, Maven artifacts), not for storing and versioning trained ML model artifacts or their metadata.

389
MCQhard

Your team manages a SageMaker real-time endpoint for a financial services application that requires low latency for fraud detection. The model is a 1 GB XGBoost model. The endpoint is deployed on two ml.m5.xlarge instances with target tracking auto-scaling based on average CPU utilization at 70%. During peak hours, the endpoint receives a sudden burst of traffic that increases from 500 requests per second to 2000 requests per second within 30 seconds. Many requests start failing with 503 errors. The CPU utilization metric shows that the instances are at 90% before the scaling policy launches new instances. However, by the time the new instances are added (approximately 3 minutes), the burst has subsided. You need to prevent these failures during future bursts while keeping costs reasonable. Which action would be MOST effective?

A.Reduce the target tracking scaling metric to 45% CPU utilization and set a warm-up time of 120 seconds.
B.Change the scaling policy to step scaling with a lower cooldown (60 seconds) and add an alarm on invocation count.
C.Replace the two m5.xlarge instances with one m5.2xlarge instance and keep the same scaling policy.
D.Implement scheduled scaling to add two instances 5 minutes before the expected peak hour.
AnswerA

Lowering the threshold triggers scaling earlier, and warm-up ensures new instances are ready before receiving traffic.

Why this answer

Reducing the target tracking scaling metric to 45% CPU utilization triggers scaling actions earlier, before the burst pushes CPU to 90%. Setting a warm-up time of 120 seconds ensures new instances are fully initialized and ready to serve traffic, preventing the 503 errors caused by the 3-minute lag in instance availability.

Exam trap

AWS often tests the misconception that reducing the scaling metric threshold or changing scaling types (e.g., step scaling) alone can solve latency-related failures, when the real bottleneck is the time required for new instances to become fully operational (warm-up time).

How to eliminate wrong answers

Option B is wrong because step scaling with a lower cooldown (60 seconds) does not address the root cause: the scaling action still takes ~3 minutes to launch new instances, and reducing cooldown only affects how quickly subsequent scaling actions can occur, not the initial delay. Option C is wrong because replacing two m5.xlarge instances with one m5.2xlarge instance reduces total compute capacity (from 8 vCPUs to 4 vCPUs), making the endpoint more vulnerable to bursts and increasing the likelihood of 503 errors. Option D is wrong because scheduled scaling adds instances 5 minutes before the expected peak hour, but the burst is unpredictable and occurs within 30 seconds, so scheduled scaling cannot react to sudden, unplanned traffic spikes.

390
MCQmedium

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

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

The Overfit rule alerts when validation loss stops decreasing while training loss continues.

Why this answer

The overfit rule in SageMaker Debugger monitors training and validation loss divergence, a key indicator of overfitting.

391
MCQmedium

A machine learning engineer is monitoring a deployed model for data drift. The input features are a mix of categorical and numerical columns. The baseline is from the training data. Which SageMaker Model Monitor feature should they enable to detect changes in the distribution of each feature over time?

A.Bias drift monitoring
B.Data quality monitoring
C.Model quality monitoring
D.Feature attribution drift monitoring
AnswerB

Data quality monitoring compares the distributions of input features against a baseline to detect statistical and schema drift.

Why this answer

Data quality monitoring in SageMaker Model Monitor detects schema and statistical drift (including distribution changes) for input features. Model quality monitors predictions vs. ground truth, not input features.

392
Multi-Selecthard

A company wants to monitor their machine learning model for bias over time. Which THREE AWS services or features can they use to achieve this? (Choose THREE.)

Select 3 answers
A.Amazon SageMaker Experiments
B.AWS CloudTrail
C.Amazon SageMaker Clarify
D.Amazon SageMaker Model Monitor
E.Amazon SageMaker Pipelines
AnswersC, D, E

Clarify can detect bias and generate bias reports.

Why this answer

Amazon SageMaker Clarify is correct because it provides built-in capabilities to detect bias in machine learning models both before training (pre-training bias) and after deployment (post-training bias). It can generate bias reports for training data and predictions, making it a direct tool for monitoring bias over time.

Exam trap

The trap here is that candidates may confuse SageMaker Model Monitor (which tracks data drift and quality) with SageMaker Clarify (which specifically handles bias detection), or incorrectly assume that Experiments or CloudTrail can perform bias analysis when they are designed for different purposes.

393
MCQeasy

A data scientist is training a linear regression model on a dataset with 10 features. After training, the model shows high training accuracy but poor test accuracy. Which of the following is the most likely cause?

A.Data leakage
B.Feature scaling
C.Overfitting
D.Underfitting
AnswerC

Overfitting occurs when the model learns noise in the training data, leading to high training accuracy but poor generalization.

Why this answer

High training accuracy with poor test accuracy is the classic symptom of overfitting, where the model learns noise and specific patterns in the training data rather than generalizable relationships. With 10 features, the model has sufficient capacity to memorize the training set, leading to excellent in-sample performance but failure on unseen data.

Exam trap

AWS often tests the distinction between overfitting and data leakage by presenting a scenario with high training accuracy and low test accuracy, where candidates mistakenly attribute the gap to data leakage instead of recognizing the classic overfitting pattern.

How to eliminate wrong answers

Option A is wrong because data leakage typically causes both training and test accuracy to be artificially high or inconsistent, not a clear gap where training accuracy is high and test accuracy is low. Option B is wrong because feature scaling (e.g., normalization or standardization) does not cause overfitting; it is a preprocessing step that helps gradient descent converge and can improve model performance, but it does not create the described accuracy disparity. Option D is wrong because underfitting results in poor accuracy on both training and test sets, not high training accuracy with low test accuracy.

394
Multi-Selecteasy

A company wants to use SageMaker built-in algorithms for a time series forecasting task. Which TWO algorithms are appropriate for this task? (Choose TWO.)

Select 2 answers
A.DeepAR
B.PCA
C.Linear Learner
D.K-Means
E.XGBoost
AnswersA, C

DeepAR is a built-in algorithm for time series forecasting.

Why this answer

DeepAR is specifically designed for time series forecasting. Linear Learner can also be used for forecasting with engineered features. XGBoost can be used for forecasting but is not a built-in algorithm specifically for time series.

K-Means is clustering. PCA is dimensionality reduction.

395
MCQmedium

A company uses SageMaker Model Registry to manage model versions. They want to enforce that only models with an 'Approved' status can be deployed to production endpoints. How can they enforce this?

A.Use AWS Lambda to check the model status during deployment
B.Set IAM policies with a condition on sagemaker:ModelVersionStatus
C.Use SageMaker Pipelines to deploy only approved models
D.Configure SCPs to block deployment of unapproved models
AnswerB

IAM condition keys allow restricting CreateEndpointConfig to only approved models.

Why this answer

SageMaker Model Registry supports approval workflows. By using IAM policies that conditionally allow deployment only when the model version status is 'Approved', the company can enforce governance.

396
MCQmedium

A machine learning team deploys a model for loan approval. They want to monitor data drift on the real-time endpoint using SageMaker Model Monitor. Which set of actions should they take to set up data quality monitoring?

A.Use SageMaker Clarify to detect data drift on the endpoint
B.Enable data capture on the endpoint, generate a baseline from training data, create a data quality monitoring schedule, and set up a CloudWatch Alarm on violations
C.Create a model quality monitoring schedule directly on the endpoint without any baseline
D.Enable data capture and rely on SageMaker Model Monitor to automatically infer drift without a baseline
AnswerB

This is the standard procedure: capture live data, compute baseline statistics and constraints, schedule monitoring, and alarm on drift.

Why this answer

SageMaker Model Monitor requires a baseline from training data, then schedules monitoring jobs that compare live endpoint captures against that baseline. Alerts are sent via CloudWatch Alarms.

397
MCQmedium

A company uses SageMaker Studio and wants to restrict studio user access to only the VPC. They also need to encrypt the data exchanged between the Studio app and the kernel gateway. Which configuration should they apply?

A.Configure Studio to run in a private subnet and disable internet access
B.Use a VPC endpoint for SageMaker and enable KMS encryption
C.Enable VPC-only mode and inter-container traffic encryption
D.Enable network isolation and use a VPC with a NAT gateway
AnswerC

This restricts network access and encrypts traffic between Studio components.

Why this answer

Enabling VPC-only mode restricts all SageMaker Studio traffic to the VPC, preventing any internet-bound communication, while inter-container traffic encryption ensures that data exchanged between the Studio app and the kernel gateway is encrypted in transit using TLS. This combination satisfies both requirements: network confinement to the VPC and encryption of inter-component traffic.

Exam trap

The trap here is that candidates often confuse 'network isolation' (which only blocks internet access for the container) with 'VPC-only mode' (which restricts all Studio traffic to the VPC), and they overlook the specific need for inter-container traffic encryption, assuming KMS or endpoint encryption covers all data paths.

How to eliminate wrong answers

Option A is wrong because configuring Studio to run in a private subnet and disabling internet access only restricts internet-bound traffic but does not encrypt the data exchanged between the Studio app and the kernel gateway; it lacks the encryption requirement. Option B is wrong because using a VPC endpoint for SageMaker and enabling KMS encryption only encrypts data at rest and traffic through the endpoint, but does not encrypt the inter-container traffic between the Studio app and the kernel gateway, nor does it restrict all Studio traffic to the VPC. Option D is wrong because enabling network isolation and using a VPC with a NAT gateway isolates the container from the internet but does not encrypt inter-container traffic, and a NAT gateway actually allows outbound internet access, contradicting the requirement to restrict access to only the VPC.

398
Multi-Selectmedium

A company wants to test a new ML model in production with minimal risk before shifting full traffic. They have an existing real-time endpoint serving model version A. They need to route 5% of live traffic to model version B and monitor performance for 24 hours. Which TWO steps should they take? (Choose TWO.)

Select 2 answers
A.Deploy model B using SageMaker batch transform and compare offline metrics
B.Configure a CloudWatch alarm to roll back if error rate exceeds a threshold
C.Use SageMaker's blue/green deployment and shift 5% traffic initially
D.Create a new endpoint with model B and use Amazon Route 53 to split 5% of traffic
E.Update the existing endpoint to include two production variants: variant A with 95% traffic and variant B with 5% traffic
AnswersB, E

CloudWatch alarms can be set on endpoint metrics (e.g., error rate, latency) to trigger automatic rollback or alert the team.

Why this answer

Blue/green deployment creates a new endpoint with the new model and swaps all traffic at once, not a gradual shift. Canary deployment routes a small percentage of traffic to the new version for testing. SageMaker supports canary deployments by updating the endpoint with multiple production variants and specifying initial traffic weights.

The existing endpoint should be updated to include both variants.

399
MCQeasy

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

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

IP Insights is designed to detect anomalous IP usage.

Why this answer

IP Insights is a built-in algorithm for learning IP address usage patterns and detecting anomalous behavior. The other algorithms are for different purposes: XGBoost for classification, K-Means for clustering, and PCA for dimensionality reduction.

400
MCQeasy

A company needs to deploy a model that processes large payloads (up to 1 GB) asynchronously. The results should be written to S3, and the team needs SNS notifications upon completion. Which SageMaker inference option is MOST suitable?

A.Asynchronous Inference
B.Batch Transform
C.Real-time endpoint
D.Serverless Inference
AnswerA

Designed for large payloads, writes results to S3, and can send SNS notifications.

Why this answer

Asynchronous Inference is designed for large payloads, processes requests asynchronously, and supports SNS notifications on completion.

401
MCQeasy

A data engineer needs to ingest streaming data from IoT devices into Amazon S3 for machine learning. The data arrives continuously and must be available for querying within minutes. Which service should be used to collect and deliver the streaming data to S3?

A.AWS Database Migration Service (DMS)
B.AWS Glue ETL job triggered by an event
C.Amazon Kinesis Data Firehose
D.Amazon S3 Transfer Acceleration
AnswerC

Firehose is a fully managed service for loading streaming data into S3 with near-real-time delivery.

Why this answer

Amazon Kinesis Data Firehose is the correct choice because it is a fully managed service designed to ingest streaming data in real time and automatically deliver it to destinations like Amazon S3 with near-real-time latency (typically 60 seconds minimum buffering). It handles data transformation, compression, and partitioning without requiring custom code, making it ideal for continuously arriving IoT data that must be queryable within minutes.

Exam trap

The trap here is that candidates confuse AWS Glue (a batch ETL service) with a streaming ingestion tool, or mistakenly think S3 Transfer Acceleration can handle continuous streaming data, when in fact only Kinesis Data Firehose provides the necessary buffering and automatic delivery for near-real-time streaming to S3.

How to eliminate wrong answers

Option A is wrong because AWS Database Migration Service (DMS) is designed for migrating databases to AWS, not for ingesting streaming data from IoT devices. Option B is wrong because AWS Glue ETL jobs are batch-oriented and triggered by events (e.g., S3 PUT), not designed to continuously collect and deliver streaming data in near real time. Option D is wrong because Amazon S3 Transfer Acceleration speeds up uploads over long distances using edge locations but does not provide streaming ingestion or buffering capabilities.

402
MCQmedium

A company runs an online retail business and wants to build a product recommendation system. They have a dataset of customer purchases stored in Amazon S3 as CSV files. The dataset includes columns: 'customer_id', 'product_id', 'purchase_date', 'quantity', 'price', and 'category'. The data science team plans to use Amazon SageMaker to train a factorization machines model. During data exploration, they discover that the 'category' column has 1,200 unique values, and many categories appear only a few times. The 'product_id' column has 50,000 unique values. They want to include both features in the model. The team is concerned about the high cardinality of these features. Which approach should they take to prepare these features for the factorization machines model?

A.Apply one-hot encoding to both 'product_id' and 'category' columns.
B.Drop the 'category' column and only use 'product_id' since it has more granularity.
C.Encode both columns as integer indices and feed them directly to the factorization machines algorithm as categorical features.
D.Apply principal component analysis (PCA) to reduce the dimensionality of the categorical features.
AnswerC

Factorization machines natively handle sparse categorical data via feature interactions and do not require one-hot expansion.

Why this answer

Amazon SageMaker's factorization machines algorithm natively supports categorical features encoded as integer indices (0-based). This avoids the explosion of features from one-hot encoding (which would create 51,200 columns) and leverages the algorithm's ability to learn interactions between high-cardinality features via factorized parameters, making it both memory-efficient and effective for sparse data.

Exam trap

The trap here is that candidates default to one-hot encoding (Option A) as the standard categorical encoding technique, not realizing that factorization machines are specifically designed to avoid that explosion by accepting raw integer indices as categorical features.

How to eliminate wrong answers

Option A is wrong because one-hot encoding 1,200 categories and 50,000 products would create 51,200 binary columns, causing extreme sparsity and memory blowup, which undermines the factorization machine's efficiency and can lead to poor generalization. Option B is wrong because dropping the 'category' column discards valuable hierarchical information (e.g., product type) that could improve recommendation quality; factorization machines are designed to handle high-cardinality features, so there is no need to drop it. Option D is wrong because PCA is a linear dimensionality reduction technique for continuous features, not suitable for categorical data; applying PCA to one-hot encoded categories would destroy the interpretability of interactions and is not a standard preprocessing step for factorization machines.

403
Multi-Selecteasy

A company ingests daily log data into an S3 bucket. They need to update the existing ML training dataset with new data without reprocessing the entire history. Which two strategies should they adopt? (Choose two.)

Select 2 answers
A.Store all data in a single large file and use append operations
B.Use AWS Glue to incrementally process new partitions
C.Use a partition key such as date to add new partitions
D.Manually copy new files to the same S3 bucket
E.Overwrite the entire existing dataset with the new data
AnswersB, C

Glue can process only new partitions using job bookmarks.

Why this answer

AWS Glue can perform incremental processing by using job bookmarks to track previously processed data and only process new partitions or files. This avoids reprocessing the entire historical dataset, making it efficient for updating ML training datasets with daily log data.

Exam trap

AWS often tests the misconception that S3 supports append operations or that simply copying new files to the same bucket constitutes an incremental update strategy, when in reality S3 objects are immutable and a proper processing framework like AWS Glue with job bookmarks is required.

404
MCQmedium

An ML engineer is debugging a training job that is consistently failing due to an out-of-memory error. The engineer is using SageMaker's built-in XGBoost algorithm. Which Debugger rule can help identify the issue?

A.Exploding gradients
B.Overfit
C.Dead relu
D.OOM rule
AnswerA

Exploding gradients can cause memory spikes leading to OOM; Debugger can capture this.

Why this answer

The 'Exploding gradients' rule detects when gradients become too large, which is a common cause of training instability but not necessarily OOM. The 'Overfit' rule detects overfitting. The 'Dead relu' rule is for ReLU activation.

None of these directly address OOM. However, Debugger does not have a specific OOM rule; instead, the engineer should monitor memory utilization via CloudWatch or adjust instance type. Among the options, 'Exploding gradients' is the most relevant because large gradients can lead to memory spikes.

405
MCQhard

A team deploys a machine learning model using a SageMaker endpoint with an ML.T4 instance. After a week, they notice that the endpoint's CPU utilization is consistently below 10% and latency is low. However, the endpoint is incurring high costs. Which action should the team take to reduce costs while maintaining the ability to serve traffic?

A.Switch to a multi-model endpoint to share instances across models
B.Reduce the number of instances to one
C.Migrate to a SageMaker Serverless Inference endpoint
D.Implement an asynchronous inference endpoint
AnswerC

Serverless endpoints scale to zero when idle, reducing cost.

Why this answer

The endpoint's CPU utilization is consistently below 10% with low latency, indicating that traffic is sparse and the instance is severely underutilized. SageMaker Serverless Inference automatically scales compute resources based on request volume and charges only for the compute time consumed per inference, eliminating idle costs. This makes it the most cost-effective choice for low-utilization workloads while still maintaining the ability to serve traffic on demand.

Exam trap

The trap here is that candidates often assume reducing instance count or switching endpoint types (multi-model, async) will lower costs, but they overlook that provisioned instances always incur hourly charges, whereas serverless charges only for actual compute usage, making it the optimal choice for consistently low-utilization endpoints.

How to eliminate wrong answers

Option A is wrong because switching to a multi-model endpoint does not reduce costs when a single model is deployed; it shares instances across multiple models, but the underlying instance still incurs hourly charges regardless of utilization. Option B is wrong because reducing the number of instances to one may still leave the single instance idle most of the time, and the cost of that one instance (e.g., ml.t4.medium at ~$0.0468/hour) would still be significantly higher than serverless pay-per-inference pricing for low-traffic scenarios. Option D is wrong because asynchronous inference endpoints are designed for large payloads or long-running inferences, not for reducing costs on low-utilization endpoints; they still use provisioned instances with hourly billing.

406
MCQmedium

A machine learning model is deployed on SageMaker and its predictions are used in a production application. The model's accuracy has degraded over time. What is the most likely cause?

A.The training data was not shuffled properly.
B.The model was not compiled for inference.
C.The model experienced concept drift.
D.The endpoint instance type is too small.
AnswerC

Concept drift is a common cause of accuracy degradation in production.

Why this answer

Concept drift occurs when the statistical properties of the target variable change over time, causing the model's predictions to become less accurate. In production ML systems on SageMaker, this is a common issue as real-world data distributions evolve, and the model does not automatically adapt without retraining.

Exam trap

The trap here is that candidates confuse performance degradation due to resource constraints (e.g., instance size) with accuracy degradation caused by data distribution shifts, which is a core concept in ML monitoring.

How to eliminate wrong answers

Option A is wrong because not shuffling training data affects model training convergence and generalization, but it does not cause accuracy to degrade over time after deployment; it is a one-time training issue. Option B is wrong because compiling a model for inference (e.g., using SageMaker Neo) optimizes latency and throughput, not accuracy; it has no impact on prediction quality degradation. Option D is wrong because an endpoint instance type that is too small would cause performance issues like high latency or throttling, not a gradual decline in model accuracy.

407
MCQmedium

A company's SageMaker endpoint is experiencing increased latency during peak hours. The endpoint uses a single ml.m5.large instance. The deployment is critical and must maintain low latency. Which action is MOST effective to reduce latency without sacrificing cost efficiency?

A.Deploy multiple variants with A/B testing
B.Use Elastic Inference to attach an accelerator
C.Switch to a ml.c5.large instance
D.Add an auto-scaling policy based on request count
E.Enable SageMaker Model Monitor
AnswerD

Auto-scaling adjusts instance count to match demand, reducing latency during spikes while minimizing cost.

Why this answer

Adding an auto-scaling policy based on request count directly addresses the root cause of increased latency during peak hours: insufficient compute capacity. Auto-scaling dynamically adds more ml.m5.large instances when request count rises, distributing the load and reducing latency, while scaling down during off-peak hours to maintain cost efficiency. This is the most effective solution for a critical deployment that must maintain low latency without sacrificing cost.

Exam trap

The trap here is that candidates often confuse Elastic Inference (Option B) as a cost-effective latency fix, but it does not address the capacity bottleneck from a single instance; the exam tests whether you recognize that scaling out is the correct approach for handling variable traffic loads.

How to eliminate wrong answers

Option A is wrong because deploying multiple variants with A/B testing is used for comparing model performance or features, not for reducing latency under load; it does not increase compute capacity. Option B is wrong because Elastic Inference attaches an accelerator for inference, which reduces per-request latency but does not address the bottleneck of a single instance being overwhelmed by high request volume; it also incurs additional cost without solving the scaling issue. Option C is wrong because switching to a ml.c5.large instance (compute-optimized) provides similar vCPU and memory to ml.m5.large, offering negligible latency improvement for inference workloads, and does not increase capacity to handle peak traffic.

Option E is wrong because enabling SageMaker Model Monitor is for detecting data drift and model quality issues, not for reducing inference latency; it adds monitoring overhead without addressing the capacity problem.

408
MCQmedium

A data scientist is training a model on text data from customer reviews. The dataset contains a mix of English and Spanish reviews. The scientist wants to convert the text into numerical features for a classification model. Which approach is MOST appropriate for this multilingual dataset?

A.Translate all Spanish reviews to English using Amazon Translate, then apply TF-IDF on the English text
B.Use pre-trained multilingual word embeddings (e.g., multilingual BERT or FastText) to generate feature vectors
C.Apply TF-IDF separately for English and Spanish reviews, then concatenate the feature matrices
D.Use one-hot encoding on character n-grams for both languages
AnswerB

Multilingual embeddings map words from different languages to the same semantic space, enabling the model to learn from both languages together.

Why this answer

Using pre-trained word embeddings (e.g., multilingual BERT or FastText) captures semantic meaning across languages without requiring separate pipelines. TF-IDF would produce separate sparse vectors for each language, not capturing cross-lingual similarity.

409
Multi-Selecthard

A team is optimizing a deep learning model for deployment on SageMaker using SageMaker Neo. Which THREE of the following are valid optimization techniques that Neo can apply? (Choose THREE.)

Select 3 answers
A.Pruning (removing redundant weights)
B.Operator fusion (combining adjacent operations)
C.Knowledge distillation
D.Hyperparameter tuning
E.Quantisation (e.g., FP16, INT8)
AnswersA, B, E

Neo can prune model weights to reduce model size and computational cost.

Why this answer

SageMaker Neo performs hardware-specific optimizations including quantisation (reducing precision), pruning (removing redundant weights), and operator fusion (combining operations). Knowledge distillation is a training-time technique, not part of Neo. Hyperparameter tuning is done by SageMaker Tuning jobs, not Neo.

410
MCQmedium

A machine learning engineer has configured a SageMaker Model Monitor schedule for data quality monitoring as shown in the exhibit. The schedule is set to run hourly. However, the engineer notices that the monitoring jobs are not producing output in the specified S3 bucket. What is the most likely cause?

A.The output_path is incorrectly placed; it should be under the MonitoringOutputConfig.
B.The DataAnalysisStartTime and DataAnalysisEndTime are set to a past date, so no data is analyzed.
C.The MonitoringType should be 'ModelQuality' to enable data quality monitoring.
D.The cron expression is incorrectly formatted for an hourly schedule.
AnswerB

The monitoring job looks for data within the specified time range; if it's in the past and no data exists, no output is produced.

Why this answer

The DataAnalysisStartTime and DataAnalysisEndTime parameters define the time window for which SageMaker Model Monitor analyzes data. When both are set to a past date that has already passed, the monitoring job finds no new data to analyze within that window, resulting in no output being written to the S3 bucket. The schedule runs hourly, but the analysis window is fixed to a historical period, so each execution produces no results.

Exam trap

The trap here is that candidates often overlook the significance of the DataAnalysisStartTime and DataAnalysisEndTime parameters, assuming they are optional or default to the current time, when in fact they strictly define the data range and can cause silent failures if set to a past date.

How to eliminate wrong answers

Option A is wrong because the output_path is correctly placed under the MonitoringOutputConfig in the exhibit; SageMaker Model Monitor requires the output location to be specified within MonitoringOutputConfig, not as a separate top-level parameter. Option C is wrong because the MonitoringType should be 'DataQuality' for data quality monitoring, not 'ModelQuality'; 'ModelQuality' is used for model quality monitoring (e.g., accuracy, precision), which is a different monitoring type. Option D is wrong because the cron expression 'cron(0 * * * ? *)' is correctly formatted for an hourly schedule at the start of each hour; there is no syntax error in the expression.

411
Multi-Selectmedium

A data scientist is using SageMaker to train a model and wants to reduce training costs without sacrificing performance. Which TWO actions should the scientist take? (Select TWO.)

Select 2 answers
A.Use a larger instance type to finish faster
B.Use SageMaker managed spot training
C.Enable SageMaker Debugger hooks to monitor training
D.Enable SageMaker Model Monitor for the training job
E.Use distributed training across multiple smaller instances
AnswersB, E

Spot training reduces cost significantly.

Why this answer

Using spot instances can reduce costs up to 90%. SageMaker managed spot training handles interruptions automatically. Using distributed training across multiple smaller instances can be cost-effective compared to a single large instance.

Using Provisioned Concurrency is for inference, not training. Debugger hooks do not reduce cost.

412
MCQeasy

An ML engineer needs to monitor the operational health of a SageMaker endpoint, specifically the time taken for the container to process an inference request and the overhead added by SageMaker. Which two CloudWatch metrics should they examine?

A.ModelLatency and 4XXError
B.Latency and 5XXError
C.ModelLatency and OverheadLatency
D.Invocations and Latency
AnswerC

ModelLatency measures container processing time; OverheadLatency measures SageMaker overhead. Together they give a full picture.

Why this answer

ModelLatency is the time taken by the model to respond, and OverheadLatency is the additional time added by SageMaker infrastructure. Invocations is count, not duration; Latency is total latency (ModelLatency + OverheadLatency).

413
MCQhard

A company wants to share a trained model across multiple AWS accounts for inference. The model is stored in a central account's S3 bucket and needs to be deployed in other accounts' SageMaker endpoints. What is the recommended approach?

A.Use AWS RAM to share the model artifact S3 bucket
B.Attach a resource policy to the model in the central account allowing the other accounts' SageMaker service principals to access it
C.Use SageMaker Model Registry with cross-account sharing enabled
D.Copy the model artifacts to each account's S3 bucket and create separate models
AnswerB

Resource policies enable cross-account access without moving artifacts.

Why this answer

SageMaker allows you to attach a resource-based policy directly to the model resource in the central account, granting the SageMaker service principal from other accounts permission to call `sagemaker:CreateModel` and `sagemaker:CreateEndpointConfig` using the shared model. This approach avoids copying artifacts and leverages AWS Identity and Access Management (IAM) cross-account trust, where the central account's model policy explicitly allows the remote account's SageMaker service role to access the model and its underlying S3 objects.

Exam trap

The trap here is that candidates confuse AWS RAM (which shares VPCs and subnets) with resource-based policies (which share IAM-accessible resources like SageMaker models), leading them to pick Option A, even though RAM cannot share S3 objects or SageMaker model resources.

How to eliminate wrong answers

Option A is wrong because AWS RAM is used to share resources like VPC subnets, Transit Gateways, or License Manager configurations, not S3 buckets or SageMaker models; S3 bucket policies or IAM roles are required for cross-account S3 access. Option C is wrong because SageMaker Model Registry does not natively support cross-account sharing; it is a metadata and versioning service within a single account, and sharing models across accounts still requires manual artifact replication or resource policies. Option D is wrong because copying model artifacts to each account's S3 bucket is inefficient, introduces synchronization overhead, and violates the principle of a single source of truth; the recommended approach uses resource-based policies to avoid duplication.

414
MCQeasy

Refer to the exhibit. A data scientist is trying to use AWS Glue to read data from the S3 bucket `ml-data-bucket`. The Glue job fails with an access denied error. What is the most likely cause?

A.The policy allows s3:PutObject but the job only reads
B.The policy does not specify the bucket ARN without /*
C.The Glue job role does not have the required permissions
D.The policy does not include s3:ListBucket permission on the bucket
AnswerD

Glue needs ListBucket to discover objects in the bucket.

Why this answer

The error occurs because the IAM policy attached to the Glue job role grants s3:GetObject on the bucket objects (via the `arn:aws:s3:::ml-data-bucket/*` resource) but does not include the s3:ListBucket permission on the bucket itself (`arn:aws:s3:::ml-data-bucket`). When AWS Glue reads data from S3, it first performs a ListBucket operation to enumerate objects in the bucket or prefix, and without that permission, the request is denied even if GetObject is allowed.

Exam trap

AWS often tests the subtle distinction between bucket-level permissions (like s3:ListBucket) and object-level permissions (like s3:GetObject), where candidates assume that granting GetObject on objects is sufficient for reading data, forgetting that listing the bucket is a prerequisite for discovering those objects.

How to eliminate wrong answers

Option A is wrong because the error is an access denied on a read operation, not a write operation; s3:PutObject is irrelevant to reading data. Option B is wrong because the policy does specify the bucket ARN without `/*` for the s3:ListBucket permission (as required), but the issue is that the s3:ListBucket permission itself is missing entirely. Option C is wrong because the Glue job role does have some permissions (as shown in the exhibit), but the specific missing permission is s3:ListBucket, not a general lack of permissions.

415
MCQmedium

A team is evaluating classification models for a medical diagnosis application. The cost of a false negative is much higher than the cost of a false positive. Which metric should be optimized during model selection?

A.Recall
B.Accuracy
C.F1 score
D.Precision
AnswerA

Recall minimizes false negatives, directly addressing the high cost of missed diagnoses.

Why this answer

Recall (sensitivity) measures the proportion of actual positives correctly identified, which directly minimizes false negatives. In medical diagnosis, missing a disease (false negative) is far more costly than a false alarm, so optimizing recall ensures the model captures as many true positive cases as possible.

Exam trap

The trap here is that candidates often default to F1 score as a 'balanced' metric, forgetting that when costs are asymmetric, the metric must reflect the specific business or clinical cost structure, not a generic harmonic mean.

How to eliminate wrong answers

Option B (Accuracy) is wrong because accuracy treats false positives and false negatives equally, which is inappropriate when the cost of false negatives is much higher; a model with high accuracy could still miss many positive cases. Option C (F1 score) is wrong because it balances precision and recall, but when false negatives are far more costly, the optimal trade-off should heavily favor recall over precision, not balance them equally. Option D (Precision) is wrong because precision focuses on minimizing false positives, which is the opposite of the requirement; optimizing precision would reduce false alarms but could increase false negatives.

416
MCQeasy

A data scientist is using Amazon SageMaker to train a linear regression model. After training, the scientist notices that the training and validation errors are both low, but the model performs poorly on new test data. What is the MOST likely cause?

A.There is data leakage from the validation set into the training set
B.The features are not scaled properly
C.The model is overfitting the training data
D.The model has high bias
AnswerA

Data leakage artificially inflates performance on validation but fails on true unseen data.

Why this answer

Data leakage from the validation set into the training set would allow the model to learn patterns that are not present in truly unseen data, leading to artificially low training and validation errors but poor generalization to new test data. In SageMaker, this can occur if the dataset is not properly split before feature engineering or if preprocessing (e.g., scaling or imputation) is applied to the entire dataset before splitting, causing the validation set to influence the training process.

Exam trap

The trap here is that candidates often confuse overfitting (low training error, high validation error) with data leakage (low training and validation errors, but poor test performance), so they incorrectly select Option C without recognizing that the validation error is also low.

How to eliminate wrong answers

Option B is wrong because improper feature scaling typically leads to slow convergence or suboptimal performance during training, but it would not cause low training and validation errors with poor test performance; scaling issues usually affect both training and validation errors similarly. Option C is wrong because overfitting would result in low training error but high validation error, not low validation error as described in the scenario. Option D is wrong because high bias (underfitting) would cause both training and validation errors to be high, not low.

417
MCQeasy

A healthcare startup is building a model to predict patient readmission within 30 days. The data is stored in Amazon Redshift and includes patient demographics, admission history, lab results, and medication records. The data scientist extracts a sample of 10,000 records to Amazon S3 as CSV files for initial prototyping. During exploratory data analysis, they find that the 'age' column has values like '150', '0', and negative numbers. The 'diagnosis_code' column contains codes like 'E11', 'E11.9', and 'e11' (inconsistent formatting). The 'readmitted' target column has 60% 'Yes' and 40% 'No'. The data scientist wants to use AWS Glue DataBrew for data cleaning. Which combination of steps should they use?

A.In AWS Glue DataBrew: 1) Filter age between 0 and 120 to remove invalid values. 2) Standardize diagnosis_code to uppercase using a formula. 3) Apply Random Oversampling to balance the target column.
B.In AWS Glue DataBrew: 1) Impute age with the mean. 2) Apply Standard Scaler to all numeric columns. 3) Use Random Oversampling to balance the target column.
C.In AWS Glue DataBrew: 1) Replace age with median. 2) Convert diagnosis_code to uppercase. 3) Apply SMOTE to balance the target column.
D.In AWS Glue DataBrew: 1) Remove rows where age is outside 0-120. 2) Drop diagnosis_code column. 3) Use Random Undersampling to balance the target column.
AnswerA

Filtering removes invalid ages, standardizing codes ensures consistency, and oversampling addresses imbalance.

Why this answer

It uses AWS Glue DataBrew's built-in capabilities to filter invalid age values (0–120), standardize the diagnosis_code to uppercase via a formula, and apply Random Oversampling to address the 60/40 class imbalance. DataBrew supports filtering, formula-based transformations, and built-in ML transforms like Random Oversampling, making this combination valid and efficient for data cleaning.

Exam trap

The trap here is that candidates may assume SMOTE or Standard Scaler are available in DataBrew, but AWS Glue DataBrew has a limited set of built-in ML transforms (e.g., Random Oversampling, Random Undersampling) and does not include SMOTE or Standard Scaler, which are typically handled in Amazon SageMaker or custom scripts.

How to eliminate wrong answers

Option B is wrong because imputing age with the mean is inappropriate when values include '150', '0', and negative numbers, which would skew the mean and introduce bias; also, Standard Scaler should be applied after cleaning and splitting, not during initial prototyping, and DataBrew does not natively support Standard Scaler as a built-in transform. Option C is wrong because replacing age with median still contaminates the dataset with invalid values (e.g., negative numbers) and DataBrew does not support SMOTE (Synthetic Minority Oversampling Technique) as a built-in transform; SMOTE is typically applied in SageMaker or custom scripts. Option D is wrong because dropping the diagnosis_code column removes potentially predictive information without attempting to standardize it, and Random Undersampling would discard 20% of the majority class, which may lead to loss of valuable data and is less preferred than oversampling for a 60/40 imbalance.

418
MCQmedium

A machine learning team trains a model in SageMaker and wants to track every step — from dataset version to hyperparameters to final model artifact — for reproducibility and audit compliance. Which SageMaker feature should they use?

A.SageMaker Feature Store
B.SageMaker ML Lineage Tracking
C.SageMaker Experiments
D.SageMaker Model Registry
AnswerB

ML Lineage Tracking creates a directed acyclic graph of artifacts, actions, and contexts, enabling full reproducibility and audit trails.

Why this answer

SageMaker ML Lineage Tracking is the correct choice because it is specifically designed to create a directed acyclic graph (DAG) of every step in the ML workflow, including dataset versions, hyperparameters, training jobs, and model artifacts. This enables full reproducibility and audit compliance by capturing the provenance of each entity and their relationships, which is exactly what the question requires.

Exam trap

The trap here is that candidates confuse SageMaker Experiments (which tracks trial metrics and parameters) with ML Lineage Tracking (which captures the full end-to-end provenance graph), leading them to pick Experiments when the question explicitly asks for tracking every step from dataset to final artifact for audit compliance.

How to eliminate wrong answers

Option A is wrong because SageMaker Feature Store is a centralized repository for storing, managing, and sharing features (input data) for ML models, but it does not track the lineage of training steps, hyperparameters, or model artifacts. Option C is wrong because SageMaker Experiments focuses on organizing and comparing multiple training runs (trials) with their parameters and metrics, but it does not automatically capture the full lineage graph connecting datasets, models, and endpoints for audit trails. Option D is wrong because SageMaker Model Registry is a catalog for managing model versions, approvals, and deployments, but it does not track the upstream lineage of how a model was trained (e.g., which dataset version and hyperparameters were used).

419
MCQeasy

A data scientist trained a model using SageMaker and wants to automate the retraining process when new data becomes available. Which AWS service is best suited to trigger a SageMaker training job based on an S3 event?

A.AWS Step Functions with a scheduled trigger.
B.Amazon Simple Workflow Service (SWF) decider.
C.Amazon EventBridge with a rule matching S3 object creation.
D.Amazon Simple Queue Service (SQS) with a polling script.
AnswerC

EventBridge can invoke a Lambda function that starts the training job.

Why this answer

Amazon EventBridge is the correct choice because it can directly capture S3 events (such as ObjectCreated) via a rule and invoke a SageMaker training job as a target. This event-driven architecture eliminates the need for polling or scheduled checks, enabling immediate retraining when new data arrives in S3.

Exam trap

The trap here is that candidates often confuse scheduled triggers (Step Functions) with event-driven triggers, overlooking that EventBridge is the native AWS service for reacting to S3 events in real time without polling or custom scripts.

How to eliminate wrong answers

Option A is wrong because AWS Step Functions with a scheduled trigger relies on a fixed time interval (e.g., cron expression), not on real-time S3 events, so it cannot react immediately to new data. Option B is wrong because Amazon Simple Workflow Service (SWF) is a legacy workflow orchestration service designed for human-in-the-loop tasks and does not natively integrate with S3 events to trigger SageMaker jobs. Option D is wrong because Amazon Simple Queue Service (SQS) with a polling script requires a separate compute resource (e.g., EC2 or Lambda) to poll the queue and trigger the job, adding latency and complexity compared to EventBridge's direct push-based integration.

420
Multi-Selectmedium

A financial services company uses SageMaker Studio. They require that all Studio traffic remains within the corporate network and that user notebooks cannot access the internet. Which TWO configurations should they implement? (Select TWO.)

Select 2 answers
A.Use security groups to block outbound traffic from Studio notebooks
B.Enable network isolation mode for all training jobs
C.Enable KMS encryption for Studio data
D.Create the SageMaker Studio domain in a VPC with VPC endpoints for SageMaker and other services
E.Configure SageMaker Studio to use VPC-only mode
AnswersD, E

Using VPC endpoints ensures Studio traffic stays within the AWS network.

Why this answer

To keep all traffic within the corporate network, SageMaker Studio must be configured with a VPC-only mode (no public internet access). Additionally, creating the Studio domain with a VPC and optionally using VPC endpoints for Studio and other services ensures traffic stays within AWS network. Network isolation mode applies to training jobs, not Studio.

Security groups control traffic but do not prevent internet access. KMS encryption is for data at rest, not network.

421
MCQmedium

A team wants to use AWS Step Functions to orchestrate a retraining workflow that is triggered when new data arrives in an S3 bucket. They also need to monitor model drift. Which event-driven approach should they use?

A.Configure EventBridge to capture S3 PutObject events and target an AWS Step Functions state machine that runs the retraining pipeline
B.Use a cron-based Step Function schedule that checks for new data every hour
C.Set up an S3 event notification to invoke a Lambda function that starts a SageMaker training job directly
D.Use SageMaker Pipelines with a schedule trigger
AnswerA

EventBridge triggers the Step Functions workflow upon new data arrival, allowing orchestration of retraining and drift monitoring.

Why this answer

AWS EventBridge can capture S3 PutObject events (via S3's default event notifications or a more granular EventBridge rule) and directly target a Step Functions state machine as a target. This creates a fully event-driven, serverless orchestration for the retraining pipeline without polling or custom code. Step Functions then coordinates the retraining steps, including model drift monitoring, in a reliable and auditable manner.

Exam trap

The trap here is that candidates often confuse S3 event notifications (which directly invoke Lambda) with EventBridge (which can target Step Functions), and they overlook that Step Functions is the recommended orchestration service for complex ML workflows, not just Lambda or SageMaker Pipelines alone.

How to eliminate wrong answers

Option B is wrong because a cron-based schedule polls for new data on a fixed interval, which is not event-driven; it introduces latency and unnecessary invocations when no new data has arrived, and it does not react immediately to S3 events. Option C is wrong because while S3 event notifications can invoke a Lambda function, this approach bypasses Step Functions orchestration, making it harder to manage complex retraining workflows, error handling, and monitoring model drift as part of a coordinated pipeline. Option D is wrong because SageMaker Pipelines with a schedule trigger is not event-driven; it relies on a time-based trigger rather than reacting to new data arrival in S3, and it lacks the flexibility of Step Functions for integrating with other AWS services for drift monitoring.

422
MCQmedium

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

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

Metrics are used to track performance values like F1.

Why this answer

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

423
Multi-Selecthard

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

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

A machine learning team is preparing a dataset for training a deep learning model. They notice that some features have very different scales: one feature ranges from 0 to 1, another from 0 to 100,000, and a third is a binary indicator (0/1). The model uses gradient descent. Which scaling method should be applied to ALL features to ensure stable and efficient training?

A.MinMaxScaler to scale all features to [0,1]
B.RobustScaler to scale based on percentiles
C.No scaling is needed because gradient descent can handle different scales
D.StandardScaler to standardize all features to zero mean and unit variance
AnswerD

StandardScaler handles varying scales well and is less affected by outliers than MinMaxScaler. It is a common choice for gradient-based optimization.

Why this answer

StandardScaler (z-score standardization) centers features to mean 0 and unit variance. It is robust to outliers (compared to MinMaxScaler which is sensitive to extreme values) and works well with gradient descent when features have varying scales.

425
Multi-Selectmedium

A company wants to secure data in transit between the client and SageMaker endpoint, and between containers in the same endpoint. Which THREE configurations should they apply? (Choose three.)

Select 3 answers
A.Enable data encryption at rest using KMS
B.Enable network isolation for the model containers
C.Use a VPC-only endpoint configuration
D.Configure the endpoint to use HTTPS (TLS)
E.Enable inter-container traffic encryption
AnswersB, D, E

Network isolation prevents containers from accessing the internet, reducing attack surface.

Why this answer

Enforce inter-container traffic encryption, use HTTPS for the endpoint, and enable network isolation to prevent internet exposure. VPC-only mode controls network access but does not directly encrypt traffic.

426
MCQeasy

A company deploys a deep learning model to a real-time SageMaker endpoint. After deployment, users report high inference latency. Which action is the MOST effective first step to reduce latency?

A.Switch to a larger instance type with more GPU memory.
B.Compile the model using SageMaker Neo to optimize for the target instance.
C.Enable SageMaker Model Monitor to capture inference data.
D.Increase the number of instances in the endpoint to handle more requests.
AnswerB

Neo optimizes the model for the specific hardware, reducing inference latency with minimal accuracy loss.

Why this answer

SageMaker Neo compiles the trained model to optimize it for the target instance hardware, reducing inference latency without requiring additional resources. This is the most effective first step because it directly addresses model execution efficiency, often yielding significant speedups for deep learning models.

Exam trap

The trap here is that candidates often confuse latency reduction with throughput improvement, incorrectly choosing horizontal scaling (Option D) or vertical scaling (Option A) as the first step, when model optimization via compilation is the most direct and cost-effective approach.

How to eliminate wrong answers

Option A is wrong because switching to a larger instance type with more GPU memory may reduce latency if the model is memory-bound, but it is not the most effective first step—it increases cost and does not address software-level inefficiencies. Option C is wrong because SageMaker Model Monitor is used for capturing inference data to detect data drift and model quality issues, not for reducing latency. Option D is wrong because increasing the number of instances (horizontal scaling) improves throughput and handles more concurrent requests, but it does not reduce the latency of individual inference requests; it may even add network overhead.

427
MCQeasy

A company has a dataset of 2 billion records stored as text files in Amazon S3. The data is partitioned by year and month. The data science team wants to read only the last 6 months of data for model training using SageMaker. To minimize data scanned and reduce costs, which approach should the team use?

A.Use S3 Select to retrieve only the last 6 months of data by applying an SQL expression on each object.
B.Use AWS Glue to create a catalog table with partitions, then query with Athena to create a filtered dataset in S3.
C.Use SageMaker Processing with a script that lists all objects in the bucket and reads only those with the desired prefixes.
D.Use SageMaker Processing with Input Mode 'File' and specify the S3 prefix for the last 6 months.
AnswerB

Partition pruning ensures only relevant data is scanned.

Why this answer

AWS Glue can crawl the S3 data to create a catalog table with partitions by year and month. Athena can then query only the partitions corresponding to the last 6 months, scanning minimal data and writing the filtered results back to S3 for SageMaker training. This approach leverages partition pruning to reduce costs and avoids loading or processing the full 2 billion records.

Exam trap

AWS often tests the misconception that SageMaker's Input Mode 'File' or S3 Select can efficiently filter partitioned data, but the key trap is that partition pruning requires a catalog service (like Glue) and a query engine (like Athena) to avoid scanning all objects or listing the entire bucket.

How to eliminate wrong answers

Option A is wrong because S3 Select operates on a single object at a time and cannot filter across multiple objects or partitions; applying it to 2 billion records would require iterating over all objects, negating cost savings. Option C is wrong because listing all objects in the bucket and reading only those with desired prefixes still requires enumerating the entire bucket, which incurs significant API costs and does not minimize data scanned (the script must still list all objects). Option D is wrong because SageMaker Processing with Input Mode 'File' downloads the entire dataset to the training instance; specifying a prefix for the last 6 months would still download all files under that prefix, but the data is partitioned by year and month, so using the prefix alone does not guarantee partition pruning—the team would need to explicitly list only the relevant prefixes, which is inefficient compared to Glue+Athena.

428
Multi-Selecteasy

A company uses SageMaker Model Monitor to detect drift. They want to receive notifications when drift is detected. Which TWO services can be used together to send notifications? (Choose TWO.)

Select 2 answers
A.Amazon SNS topics to send email or SMS.
B.Amazon EventBridge to trigger a notification.
C.AWS Lambda to process the drift and send an email via SES.
D.Amazon SQS to queue the notification.
E.Amazon CloudWatch Alarms set on the drift metric.
AnswersA, E

SNS is used for sending notifications.

Why this answer

Amazon SNS (Simple Notification Service) is the correct service to send notifications via email or SMS when drift is detected. Amazon CloudWatch Alarms can be set on the drift metrics emitted by SageMaker Model Monitor (e.g., `feature_baseline_drift` or `data_quality_drift`), and when the alarm state changes to ALARM, it can trigger an SNS topic to deliver the notification. This combination provides a fully managed, serverless notification pipeline without custom code.

Exam trap

The trap here is that candidates often overcomplicate the solution by choosing Lambda or EventBridge, not realizing that CloudWatch Alarms can directly trigger SNS topics for drift metrics emitted by SageMaker Model Monitor, making those extra services unnecessary.

429
Multi-Selectmedium

A machine learning team wants to detect concept drift in a production model. Which TWO actions should they take? (Choose TWO)

Select 2 answers
A.Set up SageMaker Model Monitor data quality monitoring schedule
B.Use SageMaker Clarify for feature attribution drift
C.Enable daily retraining to automatically correct drift
D.Enable data capture on the endpoint to collect ground truth labels
E.Set up SageMaker Model Monitor model quality monitoring schedule
AnswersD, E

Ground truth labels are needed for comparison.

Why this answer

Concept drift is detected by comparing model predictions to actual outcomes (ground truth). Capturing ground truth and using model quality monitoring is essential. Data quality monitoring would not detect concept drift.

430
MCQmedium

A company is building a binary classifier for credit default prediction. The dataset is highly imbalanced (98% no default). They want to maximize recall for the minority class while maintaining reasonable precision. Which metric should be optimized during hyperparameter tuning?

A.AUC-ROC
B.F1 score
C.Accuracy
D.Precision
AnswerB

F1 score is the harmonic mean of precision and recall, addressing both metrics.

Why this answer

F1 score balances precision and recall, making it suitable for imbalanced datasets when both metrics are important. Other options are less appropriate because accuracy is misleading due to imbalance, precision ignores recall, and AUC-ROC does not directly optimize recall at a decision threshold.

431
MCQeasy

A data scientist is performing feature selection for a linear regression model and wants to remove features that are highly correlated with each other to reduce multicollinearity. Which technique is BEST suited for this purpose?

A.Correlation analysis
B.Lasso regularization
C.Mutual information
D.Recursive Feature Elimination (RFE)
AnswerA

Correlation analysis directly identifies highly correlated feature pairs, allowing the engineer to remove redundant features.

Why this answer

Correlation analysis measures pairwise linear relationships between features. By identifying pairs with high correlation (e.g., >0.9), the scientist can remove one feature from each pair to reduce multicollinearity.

432
Multi-Selecthard

A team uses SageMaker Pipelines to train and evaluate a model. They want to run the training step only if the data quality check passes, otherwise skip. Which TWO pipeline step types are required? (Select TWO.)

Select 2 answers
A.RegisterModel step
B.Condition step
C.Processing step
D.Training step
E.Transform step
AnswersB, D

Evaluates the condition and determines the next step.

Why this answer

The Condition step (B) is required because SageMaker Pipelines uses a Condition step to evaluate a boolean expression—such as whether a data quality check passed—and then conditionally execute subsequent steps. The Training step (D) is required because it is the step that actually runs the model training job, and it must be placed inside the 'If' branch of the Condition step to run only when the condition is true.

Exam trap

The trap here is that candidates often think a Processing step (C) can handle conditional logic because it runs custom code, but SageMaker Pipelines requires a dedicated Condition step for branching; the Processing step is only for data processing, not for pipeline control flow.

433
Multi-Selecthard

A company is building a real-time inference pipeline for an ML model. The raw data arrives in JSON format via Amazon Kinesis Data Streams. Before invoking the SageMaker endpoint, the data must be preprocessed to match the training data format. Which THREE steps should be included in the preprocessing function? (Select THREE)

Select 3 answers
A.Ensure that missing values are handled consistently with the training phase
B.Convert the data to a CSV string for model input
C.Apply the same feature engineering transformations (e.g., scaling, encoding) that were used during training
D.Re-train the model periodically using new data
E.Parse the JSON payload
AnswersA, C, E

Missing value handling must be identical to training to avoid errors.

Why this answer

The preprocessing function must handle missing values identically to how they were handled during training to maintain data consistency. If the training phase used mean imputation for a numeric feature, the inference pipeline must apply the same mean value; otherwise, the model will receive unexpected input distributions, degrading prediction accuracy.

Exam trap

The trap here is that candidates confuse the preprocessing function's scope with broader MLOps tasks like model retraining, or assume a specific serialization format like CSV is required when JSON is natively supported by SageMaker endpoints.

434
MCQmedium

A team uses SageMaker Clarify to monitor bias drift in production. They schedule weekly analysis. After a month, Clarify reports a significant increase in a bias metric. What should the team do first?

A.Disable the bias monitor because the metric may be noisy.
B.Immediately retrain the model with a balanced dataset.
C.Increase the frequency of analysis to daily.
D.Review the analysis report to understand which feature and segment contributed to the drift.
AnswerD

The Clarify report provides details on which features and segments are driving the bias, guiding appropriate action.

Why this answer

Reviewing the report helps understand which feature and segment contributed to the drift. Option A is premature without understanding the cause. Option B is ignoring the issue.

Option C does not address the drift source.

435
MCQhard

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

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

Recall focuses on capturing positive cases, which is critical in fraud detection.

Why this answer

Recall (true positive rate) measures the proportion of actual positives correctly identified. For fraud detection, catching fraud is critical; accuracy is misleading due to class imbalance.

436
MCQhard

A data engineer is ingesting streaming clickstream data from a website into Amazon S3 for ML training. The data arrives at a rate of 10,000 events per second, and the team needs near-real-time availability with minimal transformation. Which AWS service should the engineer use to ingest the data into S3 with the LEAST operational overhead?

A.Amazon Kinesis Data Streams with a custom consumer application writing to S3
B.Amazon Kinesis Data Firehose with S3 as the destination
C.AWS Glue ETL job running on a schedule to pull data from a message queue
D.AWS Database Migration Service (DMS) with S3 as target
AnswerB

Firehose automatically writes to S3 with near-real-time delivery and low overhead.

Why this answer

Amazon Kinesis Data Firehose is a fully managed service that can deliver streaming data directly to S3 with optional transformations, requiring no server management. Kinesis Data Streams requires custom consumers; DMS is for databases; Glue ETL is batch-oriented.

437
Multi-Selecthard

An ML team is building a churn prediction model using customer data stored in Amazon S3. The data includes a high-cardinality categorical feature (customer_id) and several numerical features with missing values. The team wants to use Amazon SageMaker Data Wrangler for data preparation and then export the transformed data to Amazon SageMaker Feature Store. Which THREE steps should the team take?

Select 3 answers
A.Apply one-hot encoding to customer_id to preserve its identity.
B.Use Data Wrangler to directly write to SageMaker Feature Store's online store for historical backfill.
C.Export the Data Wrangler flow as a SageMaker Pipeline for reproducibility.
D.Encode customer_id using target encoding based on the churn target.
E.Use Data Wrangler to impute missing numerical values with the median.
AnswersC, D, E

Data Wrangler can generate a SageMaker Pipeline that reproduces the transformations.

Why this answer

Data Wrangler can impute missing values and create feature groups. For high-cardinality categorical features, target encoding is appropriate. Data Wrangler can export a SageMaker Pipeline that includes the transformation steps.

Feature Store supports both offline (for training) and online (for inference) stores. One-hot encoding is unsuitable for high cardinality. Data Wrangler does not run on SageMaker Studio notebooks by default; it's a visual interface.

438
MCQeasy

A company has deployed a machine learning model on Amazon SageMaker and wants to automatically detect when the distribution of input features deviates significantly from the training data distribution. Which SageMaker feature should they use?

A.SageMaker Clarify
B.SageMaker Edge Manager
C.SageMaker Model Monitor – Model Quality Monitoring
D.SageMaker Model Monitor – Data Quality Monitoring
AnswerD

Data quality monitoring detects schema drift and statistical drift by comparing live data to a baseline.

Why this answer

SageMaker Model Monitor – Data Quality Monitoring is the correct choice because it is specifically designed to detect deviations in the distribution of input features compared to the training data distribution. It continuously monitors incoming inference requests and compares statistical properties (e.g., mean, variance, or histogram) against a baseline computed from the training dataset, alerting when drift is detected.

Exam trap

The trap here is that candidates often confuse 'Data Quality Monitoring' with 'Model Quality Monitoring', mistakenly thinking that monitoring prediction accuracy covers input distribution drift, whereas Data Quality Monitoring is explicitly for input features and Model Quality Monitoring is for output predictions.

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 feature distribution drift. Option B is wrong because SageMaker Edge Manager manages and optimizes models on edge devices, focusing on deployment and inference at the edge, not on monitoring input data quality in a cloud-based SageMaker endpoint. Option C is wrong because SageMaker Model Monitor – Model Quality Monitoring tracks prediction quality metrics (e.g., accuracy, precision) against a ground truth, not the distribution of input features.

439
MCQmedium

A company uses SageMaker Pipelines to train and register models. They want to automate the deployment of approved models from the model registry to a staging endpoint. Which service should they use to orchestrate the deployment workflow?

A.AWS Step Functions
B.AWS CloudFormation
C.Amazon EventBridge
D.AWS CodePipeline
AnswerA

Step Functions can orchestrate SageMaker API calls and integrate with Model Registry.

Why this answer

AWS Step Functions is the correct choice because it is a serverless orchestration service designed to coordinate multiple AWS services into flexible, event-driven workflows. For SageMaker Pipelines, Step Functions can trigger model deployment from the registry to a staging endpoint by chaining actions like invoking a Lambda function for approval checks, calling SageMaker's CreateEndpoint API, and handling rollback logic on failure.

Exam trap

AWS often tests the distinction between orchestration (Step Functions) and event routing (EventBridge) or CI/CD (CodePipeline), leading candidates to pick EventBridge because they confuse event-driven triggers with the need for sequential workflow coordination.

How to eliminate wrong answers

Option B (AWS CloudFormation) is wrong because it is an Infrastructure as Code (IaC) service for provisioning and managing AWS resources declaratively, not for orchestrating event-driven deployment workflows with conditional logic and error handling. Option C (Amazon EventBridge) is wrong because it is a serverless event bus for routing events between services, but it lacks built-in workflow orchestration capabilities like sequencing, branching, and human approval steps required for deployment pipelines. Option D (AWS CodePipeline) is wrong because it is a CI/CD service focused on source code build, test, and deploy stages, but it does not natively integrate with SageMaker model registry approval workflows or provide the granular orchestration needed for ML model deployment from registry to endpoint.

440
MCQmedium

A media company uses SageMaker to host a real-time video recommendation model. The model is deployed on a single ml.c5.xlarge endpoint. During a major live event, traffic surges to 10 times the normal load, and the endpoint becomes unresponsive, causing high latency and errors. The team had set up an Application Auto Scaling target tracking policy based on CPU utilization with a target of 70%. However, scaling did not trigger quickly enough. After the event, the team reviews CloudWatch metrics and notices that CPU utilization never exceeded 70% during the surge, but memory utilization peaked at 95%. The model is memory-bound. The team wants to ensure the endpoint scales automatically before performance degrades during future events. What should the team do?

A.Change the target tracking metric to memory utilization and set a target of 70%
B.Increase the target CPU utilization to 90% so that scaling triggers at higher load
C.Change the endpoint instance type to ml.c5.4xlarge to provide more memory per instance
D.Create a scheduled scaling policy to add instances during the known event time
AnswerA

Memory is the bottleneck; scaling on memory utilization will trigger before memory runs out.

Why this answer

The model is memory-bound, and the current CPU-based target tracking policy failed to trigger scaling since CPU utilization never exceeded 70% during the surge. By switching to a memory utilization metric with a target of 70%, scaling will activate based on the actual resource constraint (memory), preventing performance degradation before the endpoint becomes unresponsive.

Exam trap

The trap here is that candidates assume CPU utilization is always the correct metric for scaling, but the question explicitly states the model is memory-bound, so the scaling policy must match the actual bottleneck to be effective.

How to eliminate wrong answers

Option B is wrong because increasing the CPU target to 90% does not address the root cause: CPU utilization never exceeded 70% during the surge, so the policy would still not trigger scaling. Option C is wrong because changing to a larger instance type (ml.c5.4xlarge) provides more memory per instance but does not enable automatic scaling; the endpoint would still be a single instance and could become overwhelmed under similar traffic spikes. Option D is wrong because a scheduled scaling policy assumes predictable event timing, but the question describes a major live event where the timing may be known; however, the team wants a reactive scaling mechanism that triggers automatically before performance degrades, not a pre-scheduled one that may not align with actual traffic patterns.

441
MCQhard

A company is training a deep learning model on Amazon SageMaker using a dataset stored in Amazon S3. The training job is taking a long time due to I/O bottlenecks. The data is in JSON lines format. Which data preparation step combined with SageMaker's best practices would most effectively reduce training time?

A.Convert the JSON lines files to CSV format and use SageMaker's File mode for training.
B.Compress the JSON lines files using gzip and use File mode with local caching.
C.Convert the data to RecordIO-Protobuf format and use SageMaker's Pipe mode for training.
D.Split the data into multiple smaller files and use multiple training instances to parallelize.
AnswerC

RecordIO-Protobuf allows streaming data to the algorithm, minimizing I/O wait.

Why this answer

Converting JSON lines data to RecordIO-Protobuf format allows SageMaker's Pipe mode to stream data directly from Amazon S3 to the training algorithm without writing to disk, eliminating I/O bottlenecks. Pipe mode uses a FIFO pipe (named pipe) to feed data sequentially, which significantly reduces training time for deep learning models that iterate over the dataset multiple times.

Exam trap

The trap here is that candidates assume File mode is always faster because it caches data locally, but they overlook that Pipe mode eliminates the initial download latency entirely, which is the primary cause of I/O bottlenecks in large-scale deep learning training.

How to eliminate wrong answers

Option A is wrong because converting to CSV does not address the I/O bottleneck; File mode still downloads the entire dataset to the training instance's local storage before training begins, causing high latency. Option B is wrong because gzip compression reduces file size but File mode with local caching still requires a full download to disk, and decompression adds CPU overhead without eliminating the I/O bottleneck. Option D is wrong because splitting data into smaller files and using multiple instances parallelizes computation but does not reduce per-instance I/O latency; each instance still uses File mode by default, so the bottleneck persists.

442
Multi-Selecteasy

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

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

Clarify analyzes data for bias before training.

Why this answer

SageMaker Clarify can detect pre-training bias (in the data) and post-training bias (in the model predictions).

443
MCQmedium

A data science team is using Amazon SageMaker to train and deploy a binary classification model. They want to continuously monitor the model for data drift in production. Which combination of AWS services and SageMaker features should they use to implement automated drift detection with minimal operational overhead?

A.SageMaker Debugger and Amazon SNS
B.SageMaker Pipelines and AWS Lambda
C.SageMaker Clarify and AWS Config
D.SageMaker Model Monitor and Amazon CloudWatch
AnswerD

SageMaker Model Monitor detects drift and sends metrics to CloudWatch for alerting.

Why this answer

SageMaker Model Monitor is the native SageMaker feature designed specifically for continuously monitoring deployed models for data drift, bias drift, and feature attribution drift. It automatically captures inference requests and responses, computes statistics, and publishes metrics to Amazon CloudWatch, which can trigger alarms for drift detection. This combination provides automated drift detection with minimal operational overhead because it requires no custom infrastructure or manual scheduling.

Exam trap

The trap here is that candidates confuse SageMaker Debugger (training debugging) with SageMaker Model Monitor (production drift detection), or they overcomplicate the solution by adding unnecessary services like Lambda or Config when the native integration with CloudWatch already provides automated alerting.

How to eliminate wrong answers

Option A is wrong because SageMaker Debugger is used for debugging training jobs (e.g., monitoring gradients, weights, and loss during training), not for monitoring data drift in production inference. Option B is wrong because SageMaker Pipelines is a CI/CD orchestration tool for building and managing ML workflows, not a continuous monitoring service; while AWS Lambda could be used to process drift alerts, the core drift detection capability is missing. Option C is wrong because SageMaker Clarify is designed for bias detection and explainability (SHAP values) on datasets or during training, not for real-time drift monitoring of production endpoints; AWS Config tracks resource configuration changes, not model performance or data drift.

444
MCQmedium

A data scientist is using Amazon SageMaker Data Wrangler to prepare a dataset. The dataset contains a column with date strings in the format 'YYYY-MM-DD'. The data scientist wants to extract the year, month, and day as separate features. Which Data Wrangler transform should be used?

A.Encode categorical transform.
B.Scale values transform.
C.Parse date transform.
D.Handle missing transform.
AnswerC

Parse date allows extracting date components from date strings.

Why this answer

The 'Parse date' transform in Amazon SageMaker Data Wrangler is specifically designed to convert date strings into structured datetime components. By applying this transform to the 'YYYY-MM-DD' column, the data scientist can automatically extract year, month, and day as separate features, enabling downstream feature engineering without manual string parsing.

Exam trap

The trap here is that candidates may confuse 'Parse date' with 'Encode categorical' because dates can be treated as categorical features, but the question specifically asks for extracting year, month, and day as separate features, which requires parsing the date string into its components, not encoding the entire date as a category.

How to eliminate wrong answers

Option A is wrong because 'Encode categorical' transform is used to convert categorical variables into numerical representations (e.g., one-hot encoding), not to parse date strings. Option B is wrong because 'Scale values' transform normalizes or standardizes numerical features (e.g., min-max scaling, z-score), which is irrelevant for extracting date components. Option D is wrong because 'Handle missing' transform addresses null or missing values through imputation or deletion, not date parsing.

445
MCQhard

A company deploys a model for fraud detection. They need to monitor for bias after deployment, specifically whether the model's false positive rate changes across demographic groups over time. Which SageMaker feature should they use?

A.SageMaker Model Monitor – Model Quality
B.SageMaker Model Monitor – Feature Attribution Drift
C.SageMaker Clarify (post-deployment bias monitoring)
D.SageMaker Model Monitor – Data Quality
AnswerC

SageMaker Clarify can be configured to run bias monitoring jobs that detect drift in fairness metrics after deployment.

Why this answer

SageMaker Clarify provides post-deployment bias monitoring by analyzing predictions against ground truth labels for defined facets. It can track metrics like false positive rate differences over time.

446
MCQhard

A company is preparing a dataset with a categorical feature that has over 1000 unique values. They need to create features for a random forest model. Which feature engineering approach is most scalable and effective in AWS for high-cardinality categories?

A.Hash encoding using Apache Spark on Amazon EMR
B.One-hot encoding using SageMaker Processing with scikit-learn
C.Label encoding using Pandas in a SageMaker notebook
D.Target encoding with smoothing using SageMaker Data Wrangler
AnswerD

Target encoding reduces cardinality and is effective for tree models; Data Wrangler integrates natively.

Why this answer

Target encoding with smoothing in SageMaker Data Wrangler is the most scalable and effective approach because it replaces each high-cardinality category with the mean of the target variable, smoothed by a global prior to prevent overfitting. SageMaker Data Wrangler handles datasets with over 1000 unique values efficiently without exploding feature dimensions, unlike one-hot encoding, and avoids the ordinal bias of label encoding.

Exam trap

AWS often tests the misconception that one-hot encoding is always safe for categorical features, but the trap here is that high-cardinality categories require a dimensionality-reduction technique like target encoding, not a naive expansion that breaks scalability.

How to eliminate wrong answers

Option A is wrong because hash encoding can cause collisions (different categories mapping to the same hash value), which degrades model performance, and using Apache Spark on Amazon EMR adds unnecessary complexity and cost for a task that SageMaker Data Wrangler handles natively. Option B is wrong because one-hot encoding with over 1000 unique values creates over 1000 sparse binary columns, leading to the curse of dimensionality, memory issues, and poor performance in random forests. Option C is wrong because label encoding assigns arbitrary integer values (e.g., 1, 2, 3) that imply ordinal relationships, which random forests can misinterpret as meaningful order, introducing bias and reducing model accuracy.

447
MCQmedium

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

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

A company is training a large computer vision model using SageMaker. The training dataset is 500 GB and the model has 1 billion parameters. The team needs to minimize training time. Which distributed training strategy should they use?

A.Pipeline parallelism
B.Sharded data parallelism
C.Model parallelism
D.Data parallelism
AnswerC

Model parallelism partitions the model layers across GPUs, enabling training of large models that don't fit on one GPU.

Why this answer

Model parallelism splits the model layers across multiple GPUs, which is necessary when the model is too large to fit on a single GPU. Data parallelism replicates the model on each GPU and splits the data, but is limited by the memory of a single GPU.

449
MCQeasy

A company needs to ensure that their SageMaker Studio environment is only accessible from within their corporate network and that all data processed in Studio remains encrypted. Which configuration should they use?

A.Use SageMaker Studio with public internet access and enable AWS WAF
B.Place SageMaker Studio in a public subnet and use security groups to restrict access
C.Enable SageMaker Studio in VPC-only mode and use a KMS key for data encryption
D.Use IAM policies to allow only corporate IP addresses and enable encryption at rest with an S3 bucket key
AnswerC

VPC-only mode restricts access to the VPC; KMS encryption secures data at rest.

Why this answer

Enabling SageMaker Studio in VPC-only mode ensures that the Studio environment is accessible only from within the corporate network by routing all traffic through a VPC with no public internet access. Additionally, using a KMS key for data encryption provides customer-managed encryption for data at rest and in transit within the Studio environment, meeting the encryption requirement.

Exam trap

The trap here is that candidates often confuse network-level access control (VPC-only mode) with API-level access control (IAM policies), or assume that security groups alone can restrict access to a public subnet, ignoring that public subnets inherently have internet connectivity.

How to eliminate wrong answers

Option A is wrong because enabling public internet access exposes the Studio environment to the internet, which contradicts the requirement of restricting access to the corporate network; AWS WAF protects against web exploits but does not enforce network-level access control. Option B is wrong because placing SageMaker Studio in a public subnet still allows internet access via an internet gateway, and security groups alone cannot prevent traffic from leaving the VPC or enforce corporate network-only access without additional routing controls. Option D is wrong because IAM policies can restrict API access based on IP addresses but do not control network-level access to the Studio UI or kernel gateway; S3 bucket keys only encrypt data at rest in S3, not all data processed in Studio (e.g., EFS, notebook instances).

450
MCQhard

A company is building a fraud detection model on credit card transactions. The dataset contains a column 'merchant_id' with 50,000 unique values, many with low frequency. The team wants to avoid overfitting while preserving predictive signal. Which feature engineering approach is most appropriate?

A.Drop the 'merchant_id' column to avoid overfitting
B.Apply label encoding and treat it as a numeric feature
C.Apply target encoding with smoothing based on global mean
D.One-hot encode the 'merchant_id' column
AnswerC

Target encoding with smoothing effectively handles high cardinality and retains predictive signal.

Why this answer

Target encoding with smoothing (e.g., using the mean of the target per category) captures signal for high-cardinality features while reducing overfitting via regularization. One-hot encoding would create too many columns, and label encoding may impose ordinality.

Page 5

Page 6 of 12

Page 7