Courseiva

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

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

Page 1

Page 2 of 12

Page 3
76
Multi-Selecthard

A company is preparing a large dataset for a SageMaker built-in XGBoost model. The dataset has missing values in both numeric and categorical features, and some categorical features have high cardinality. Which THREE data preparation steps should the company take to optimize model performance? (Choose three.)

Select 3 answers
A.Remove any rows with outlier values.
B.Split the data into training, validation, and test sets before any imputation.
C.Impute missing numeric values with median or mean.
D.For categorical features, use one-hot encoding for low cardinality and target encoding for high cardinality.
E.Apply target encoding to all categorical features regardless of cardinality.
AnswersB, C, D

Splitting first prevents data leakage from imputation statistics.

Why this answer

Splitting the data into training, validation, and test sets before any imputation prevents data leakage. If imputation statistics (e.g., mean, median) were computed on the full dataset, information from the validation and test sets would influence the training data, leading to overly optimistic performance estimates and poor generalization to new data.

Exam trap

AWS often tests the misconception that all data cleaning (including imputation) should be done on the full dataset before splitting, but the correct order is to split first to preserve the independence of the test set and avoid data leakage.

77
MCQeasy

A machine learning engineer needs to optimize a trained TensorFlow model for deployment on edge devices with limited compute. Which SageMaker feature should they use to compile the model for target hardware?

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

Neo compiles models for target hardware, optimizing for edge deployment.

Why this answer

SageMaker Neo is the correct choice because it is specifically designed to compile trained machine learning models into an optimized format for target hardware architectures, such as ARM, Intel, or NVIDIA, enabling efficient inference on edge devices with limited compute resources. It uses a compiler to apply hardware-specific optimizations like operator fusion and memory layout tuning, reducing latency and memory footprint without requiring manual code changes.

Exam trap

The trap here is that candidates confuse SageMaker Neo with SageMaker Elastic Inference, mistakenly thinking Elastic Inference compiles models for edge devices, when in fact Elastic Inference only accelerates cloud inference by attaching a fractional GPU and does not perform compilation or target edge hardware.

How to eliminate wrong answers

Option A is wrong because SageMaker Model Monitor is used for detecting data drift and model quality degradation in production, not for compiling or optimizing models for hardware. Option C is wrong because SageMaker Debugger is a tool for monitoring training jobs, capturing tensors and metrics to debug issues like vanishing gradients, not for post-training compilation or hardware-specific optimization. Option D is wrong because SageMaker Elastic Inference attaches a separate accelerator to an endpoint for low-cost GPU acceleration, but it does not compile or optimize the model for edge hardware; it is a runtime acceleration service for cloud inference, not for edge deployment.

78
Multi-Selecthard

A team is preparing text data for a natural language processing (NLP) model. They have a corpus of customer reviews. Which THREE preprocessing steps are essential to reduce noise and improve model performance?

Select 3 answers
A.Apply one-hot encoding to each word
B.Remove punctuation and special characters
C.Compute TF-IDF vectors
D.Perform stemming or lemmatization
E.Convert all text to lowercase
AnswersB, D, E

Removes noise that does not contribute to meaning.

Why this answer

Punctuation and special characters (e.g., commas, exclamation marks) introduce irrelevant noise that does not carry semantic meaning for most NLP models. Removing them reduces vocabulary size and prevents the model from treating 'hello!' and 'hello' as distinct tokens, which improves generalization and reduces overfitting.

Exam trap

AWS often tests the distinction between preprocessing steps (cleaning) and feature engineering steps (vectorization), so the trap here is that candidates mistake TF-IDF or one-hot encoding as essential preprocessing for noise reduction when they are actually downstream representation techniques.

79
MCQmedium

A machine learning engineer is using Amazon SageMaker Data Wrangler to create a data preparation pipeline. The pipeline includes multiple transforms such as handling missing values, scaling, and encoding. The engineer wants to export the prepared data directly to a feature group in Amazon SageMaker Feature Store for reuse in training and inference. Which export option should the engineer choose?

A.Export to Amazon S3 as a CSV file.
B.Export to a Jupyter notebook for further processing.
C.Export to Amazon Redshift for analysis.
D.Export to a feature group in SageMaker Feature Store.
AnswerD

Data Wrangler can directly write to a feature group, making the features immediately available for training and inference via the Feature Store.

Why this answer

Amazon SageMaker Data Wrangler provides a built-in export destination for SageMaker Feature Store, allowing you to directly write the transformed data to a feature group without additional code. This enables seamless reuse of the prepared features for both training and real-time inference, leveraging the Feature Store's low-latency retrieval and versioning capabilities.

Exam trap

The trap here is that candidates may assume any export to Amazon S3 (Option A) is sufficient for reuse, but the question specifically requires export to a feature group, which is a distinct SageMaker Feature Store construct with its own schema, online/offline stores, and ingestion API—not just a file in S3.

How to eliminate wrong answers

Option A is wrong because exporting to Amazon S3 as a CSV file only stores the data as a flat file, not as a feature group, so it cannot be directly used with SageMaker Feature Store for online or offline inference without additional ingestion steps. Option B is wrong because exporting to a Jupyter notebook generates code for further processing but does not automatically persist the data to a feature group; it requires manual execution and additional configuration. Option C is wrong because exporting to Amazon Redshift is for analytical workloads and does not integrate with SageMaker Feature Store's feature group schema, online store, or low-latency serving for ML inference.

80
Multi-Selecteasy

A company stores training data in Amazon S3 and uses Amazon SageMaker for model training. They need to ensure data is encrypted at rest. Which THREE encryption options are supported by SageMaker for data stored in S3? (Choose THREE.)

Select 3 answers
A.SSE-C (customer-provided keys)
B.Client-side encryption
C.SSE-KMS (KMS-managed keys)
D.Amazon CloudFront encryption
E.SSE-S3 (S3-managed keys)
AnswersA, C, E

SageMaker supports SSE-C, but the user must provide the key during training.

Why this answer

Amazon SageMaker supports SSE-C (server-side encryption with customer-provided keys) for data stored in S3. When using SSE-C, you manage the encryption keys and provide them to SageMaker during training job configuration. SageMaker uses these keys to decrypt the data on your behalf, ensuring data is encrypted at rest in S3 while you retain control of the encryption keys.

Exam trap

The trap here is that candidates confuse client-side encryption (which is not a server-side S3 encryption option) with server-side encryption options, or they mistakenly think CloudFront encryption applies to S3 data at rest, when it only applies to data in transit between CloudFront and viewers.

81
MCQmedium

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

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

RAG retrieves relevant document chunks at query time, ensuring the chatbot always answers from the latest uploaded documents without any model retraining.

Why this answer

RAG (Retrieval-Augmented Generation) allows the LLM to retrieve relevant document sections at inference time, so knowledge stays current without retraining. The other options either require expensive retraining for each update or lack document grounding.

82
MCQhard

A machine learning engineer deploys a multi-model endpoint using SageMaker. They need to track which model version was used for each inference request for compliance purposes. Which service should they integrate to capture this lineage?

A.AWS CloudTrail
B.SageMaker Model Monitor
C.SageMaker ML Lineage Tracking
D.Amazon DynamoDB with custom logging
AnswerC

Lineage Tracking captures artifacts, actions, and contexts, enabling per-request model version traceability.

Why this answer

SageMaker ML Lineage Tracking is the correct service because it is specifically designed to capture and query the lineage of machine learning artifacts, including model versions, datasets, and inference requests. By integrating with SageMaker endpoints, it automatically records the model version used for each inference, enabling compliance auditing without custom code.

Exam trap

The trap here is that candidates often confuse CloudTrail's API-level logging with application-level lineage tracking, assuming that recording the InvokeEndpoint API call is sufficient to capture model version details, but CloudTrail does not include the model version identifier in its logs unless explicitly passed as a custom header and parsed separately.

How to eliminate wrong answers

Option A is wrong because AWS CloudTrail records API calls for governance and auditing, but it does not capture the specific model version used for each inference request at the application level; it only logs the API invocation to invoke the endpoint. Option B is wrong because SageMaker Model Monitor focuses on detecting data drift and quality issues in inference data, not on tracking which model version served a particular request. Option D is wrong because Amazon DynamoDB with custom logging would require building a custom solution to capture lineage, whereas SageMaker ML Lineage Tracking provides a managed, native integration that automatically associates inference requests with model versions.

83
Multi-Selectmedium

A data engineer needs to assess the quality of a dataset containing customer information. The dataset has missing values, outliers, and duplicate records. Which TWO AWS services can be used to perform data quality assessment? (Select TWO.)

Select 2 answers
A.Amazon Athena
B.AWS Glue DataBrew
C.AWS Glue ETL
D.Amazon QuickSight
E.Amazon SageMaker Data Wrangler
AnswersB, E

DataBrew provides data profiling and cleaning capabilities with a visual interface.

Why this answer

AWS Glue DataBrew is a visual data preparation tool that provides built-in data quality checks, including profiling, anomaly detection, and duplicate identification, without writing code. It directly addresses the need to assess missing values, outliers, and duplicates through its data quality dashboard and transformation recipes.

Exam trap

The trap here is that candidates often confuse AWS Glue ETL (option C) with AWS Glue DataBrew (option B), assuming the ETL service includes visual data quality assessment, when in fact DataBrew is the dedicated no-code data preparation and quality tool.

84
MCQeasy

A machine learning engineer is deploying a model using AWS Lambda for inference. The model is a small scikit-learn classifier with a size of 50 MB. The Lambda function is invoked by an API Gateway REST API. The engineer notices that cold starts are causing high latency. Which action would most effectively reduce cold start latency without increasing costs significantly?

A.Store the model in Amazon EFS and load it at runtime.
B.Increase the Lambda function memory to the maximum of 10,240 MB.
C.Configure provisioned concurrency for the Lambda function.
D.Package the model in a container image and deploy using Lambda container support.
AnswerC

Provisioned concurrency keeps instances initialized and ready to respond immediately.

Why this answer

Provisioned concurrency pre-initializes the Lambda execution environment, keeping it warm and ready to handle requests immediately. This eliminates the cold start overhead for the first request, directly reducing latency without incurring the ongoing costs of a larger memory allocation or the complexity of EFS/container management.

Exam trap

The trap here is that candidates often confuse 'reducing cold start latency' with 'reducing compute time' or 'improving model loading speed', leading them to choose options like increasing memory or using EFS, which do not address the fundamental issue of environment initialization.

How to eliminate wrong answers

Option A is wrong because Amazon EFS adds network latency for each invocation to load the model, which can actually increase cold start time and does not address the root cause of cold starts. Option B is wrong because increasing memory to the maximum (10,240 MB) increases cost significantly (Lambda pricing scales linearly with memory) and does not eliminate cold starts; it only reduces compute time for the same workload. Option D is wrong because deploying as a container image does not inherently reduce cold start latency; container images can actually increase cold start time due to image pull overhead unless combined with provisioned concurrency.

85
Multi-Selecteasy

A data engineer needs to provide the data science team with access to various data sources for machine learning. The team uses Amazon SageMaker Studio. Which TWO data sources can be accessed directly from SageMaker Studio notebooks without additional infrastructure? (Choose two.)

Select 2 answers
A.Amazon S3.
B.Amazon Redshift.
C.Amazon DynamoDB.
D.Amazon RDS (MySQL).
E.Amazon Athena.
AnswersA, E

S3 is natively integrated with SageMaker.

Why this answer

Amazon SageMaker Studio notebooks have a built-in SageMaker SDK that can directly read from and write to Amazon S3 using the `s3fs` filesystem or the SageMaker `s3_utils` module. This integration requires no additional infrastructure because S3 is the default storage backend for SageMaker, and the notebook environment is pre-configured with the necessary IAM roles and boto3 libraries to access S3 buckets directly.

Exam trap

The trap here is that candidates often assume any AWS database service (like Redshift, DynamoDB, or RDS) can be accessed 'directly' from SageMaker Studio, but the exam specifically tests the distinction between services that require additional infrastructure (VPC, endpoints, or client libraries) and those that are natively integrated without extra setup.

86
MCQeasy

A machine learning team needs to deploy a model that was built using scikit-learn. They want to use SageMaker for hosting. Which approach should they take?

A.Create a Jupyter notebook that loads the model and runs predictions on the SageMaker notebook instance
B.Create a custom Docker container with scikit-learn and deploy it on SageMaker
C.Launch a SageMaker training job with the model and use the training instance as an endpoint
D.Package the model artifacts and use the SageMaker built-in scikit-learn container for inference
AnswerD

Built-in container supports scikit-learn models; simply point to model artifacts.

Why this answer

SageMaker provides a pre-built, optimized Docker container for scikit-learn that supports inference. By packaging the model artifacts (e.g., a joblib or pickle file) and deploying them using the built-in container, the team avoids the overhead of custom container creation while ensuring compatibility with SageMaker's hosting infrastructure, including automatic scaling and load balancing.

Exam trap

The trap here is that candidates often overcomplicate the solution by assuming a custom Docker container is always required for scikit-learn, overlooking the fact that SageMaker provides a fully managed, built-in container specifically for this framework.

How to eliminate wrong answers

Option A is wrong because a Jupyter notebook on a notebook instance is designed for interactive development and testing, not for production hosting; it lacks the necessary endpoint management, scaling, and availability features of SageMaker hosting. Option B is wrong because while a custom Docker container is a valid approach, it is unnecessary when SageMaker provides a built-in scikit-learn container that already includes the required dependencies and is optimized for inference, making this option over-engineered and more complex than needed. Option C is wrong because a SageMaker training job is ephemeral and intended for model training, not for serving inference requests; using a training instance as an endpoint is not supported, as training instances lack the persistent endpoint infrastructure (e.g., HTTPS endpoints, auto-scaling groups) required for production hosting.

87
MCQmedium

A startup wants to deploy a model that has variable traffic patterns, with some periods of no traffic and occasional spikes. They want to pay only for what they use and do not want to manage instances. Which SageMaker inference option should they choose?

A.Batch transform
B.Real-time endpoint with auto-scaling
C.Serverless inference
D.Multi-model endpoint
AnswerC

Serverless inference scales to zero and charges per request, perfect for variable traffic.

Why this answer

Serverless inference is the correct choice because it automatically scales to zero during periods of no traffic and scales up to handle spikes, charging only for the compute time used. This eliminates the need to manage underlying instances, making it ideal for variable and intermittent traffic patterns.

Exam trap

The trap here is that candidates often confuse auto-scaling with the ability to scale to zero, but real-time endpoints with auto-scaling still maintain a minimum number of instances, incurring costs during idle periods, whereas serverless inference truly scales to zero.

How to eliminate wrong answers

Option A is wrong because batch transform is designed for offline, asynchronous predictions on large datasets, not for real-time or variable traffic patterns with occasional spikes. Option B is wrong because real-time endpoints with auto-scaling still require provisioning and managing underlying instances, and they cannot scale to zero, meaning you incur costs even during no traffic. Option D is wrong because multi-model endpoints reduce hosting costs by sharing instances across models but still require managing instances and cannot scale to zero, so you pay for idle capacity.

88
MCQhard

A data scientist is performing feature selection for a high-dimensional dataset with 10,000 features. The goal is to identify a small subset of features that are most predictive of the target variable. The scientist wants to use a method that is computationally efficient and can handle feature interactions implicitly. Which feature selection method is most appropriate?

A.Pearson correlation analysis
B.Mutual information
C.Lasso regularization (L1)
D.Recursive feature elimination (RFE)
AnswerC

Lasso adds L1 penalty that drives irrelevant feature coefficients to zero, performing automatic feature selection efficiently.

Why this answer

Lasso regularization (L1) reduces coefficients of less important features to zero, effectively performing feature selection. It is computationally efficient for high dimensions and can handle interactions implicitly if polynomial features are added, but the base Lasso is linear. Among the given, Lasso is the best choice for efficiency and implicit selection.

Mutual information is univariate, not handling interactions. Recursive feature elimination is expensive. Correlation analysis is also univariate.

89
Multi-Selectmedium

A company wants to automatically trigger model retraining when SageMaker Model Monitor detects data drift. Which TWO services should they integrate to achieve this automation? (Choose two.)

Select 2 answers
A.AWS Step Functions
B.AWS Lambda
C.Amazon CloudWatch Alarms
D.Amazon EventBridge
E.Amazon SNS
AnswersB, D

Lambda can run the retraining pipeline code when triggered by EventBridge.

Why this answer

EventBridge can schedule or trigger events based on monitoring job completions, and Lambda can execute the retraining code. SNS is used for notifications but not direct invocation of retraining. Step Functions can orchestrate but is not required for this simple trigger.

90
MCQmedium

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

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

Experiments track hyperparameters, metrics, and artifacts for comparison.

Why this answer

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

91
MCQeasy

A machine learning engineer at a retail company is monitoring a production model that predicts inventory demand. The model's prediction accuracy has dropped significantly over the past week. The engineer checks the model's input data and notices a new product category was introduced with a different distribution. Which concept is most likely causing the performance degradation?

A.Concept drift
B.Covariate shift
C.Data leakage
D.Model decay
AnswerB

Covariate shift occurs when the distribution of input features changes over time.

Why this answer

B is correct because covariate shift occurs when the distribution of the input features changes while the relationship between features and the target remains the same. In this scenario, the introduction of a new product category with a different distribution alters the input data distribution, causing the model to encounter unseen patterns and degrade in prediction accuracy.

Exam trap

AWS often tests the distinction between covariate shift and concept drift, and the trap here is that candidates confuse a change in input distribution (covariate shift) with a change in the relationship between inputs and outputs (concept drift), leading them to incorrectly select concept drift.

How to eliminate wrong answers

Option A is wrong because concept drift refers to a change in the underlying relationship between input features and the target variable over time, not a change in the input distribution itself. Option C is wrong because data leakage involves the accidental inclusion of future information or target data in the training features, which is not indicated by a new product category with a different distribution. Option D is wrong because model decay is a general term for performance degradation over time, but it does not specifically describe the cause as a shift in input distribution; covariate shift is the precise technical concept here.

92
Multi-Selecthard

A data scientist is using Amazon SageMaker Data Wrangler to prepare a dataset for a binary classification model. The scientist wants to detect potential bias in the data before training. The dataset includes a sensitive attribute 'gender'. Which TWO actions should the scientist take in Data Wrangler to analyze and mitigate bias? (Select TWO.)

Select 2 answers
A.Configure a cross-validation split
B.Apply a transform to balance the dataset by resampling
C.Compute feature importance using XGBoost
D.Use the built-in bias detection transform to generate a bias report
E.Perform data augmentation to increase dataset size
AnswersB, D

Resampling can mitigate class imbalance bias related to the sensitive attribute.

Why this answer

Data Wrangler integrates with SageMaker Clarify for bias detection and can report metrics. Data Wrangler does not directly compute feature importance (that's for models) or perform data augmentation. Cross-validation is a model evaluation technique.

93
MCQhard

An ML team trained a model using SageMaker and stored the model artifacts in S3 with server-side encryption using AWS KMS (SSE-KMS). They need to deploy the model to a SageMaker endpoint that uses a different KMS key for inference data encryption. What must they do to ensure the endpoint can decrypt the model artifacts?

A.Provide the same KMS key for both model artifacts and inference data.
B.Use a customer-managed key (CMK) with the same key material.
C.Grant the SageMaker execution role access to both KMS keys.
D.Configure the endpoint to use SSE-S3 instead of SSE-KMS.
AnswerC

The role needs decrypt on the artifact key and encrypt/decrypt on the inference key.

Why this answer

The SageMaker endpoint needs to decrypt the model artifacts stored with SSE-KMS using the original KMS key, and then re-encrypt the inference data with a different KMS key. The SageMaker execution role must have kms:Decrypt permission on the key used for the model artifacts and kms:Encrypt permission on the key used for inference data encryption. Without granting access to both keys, the endpoint cannot read the model artifacts or encrypt the output.

Exam trap

The trap here is that candidates assume the same key must be used for both operations or that identical key material makes keys interchangeable, but AWS KMS treats each key as a separate resource with distinct ARNs and policies, requiring explicit permissions for each.

How to eliminate wrong answers

Option A is wrong because the question explicitly states the team wants to use a different KMS key for inference data encryption, so providing the same key contradicts the requirement. Option B is wrong because using a customer-managed key (CMK) with the same key material does not change the fact that the two keys are distinct AWS KMS resources; the execution role still needs explicit permissions on both keys, and identical key material does not grant cross-key access. Option D is wrong because switching to SSE-S3 would bypass the need for KMS decryption of model artifacts, but it does not address the requirement to use a different KMS key for inference data encryption, and it may not meet security or compliance policies.

94
MCQeasy

A data scientist is training a binary classification model using a dataset that has a severe class imbalance (90% negative, 10% positive). Which technique should be used to address the imbalance during model training?

A.Use a larger batch size
B.Use L2 regularization
C.Apply random oversampling of the minority class
D.Increase the learning rate
AnswerC

Random oversampling balances the class distribution by replicating minority class samples.

Why this answer

Random oversampling of the minority class (Option C) directly addresses class imbalance by duplicating or synthesizing examples from the positive class, which balances the training distribution and prevents the model from becoming biased toward the majority class. This technique is specifically designed to mitigate the skewed gradient updates that occur when the minority class is underrepresented, leading to better recall and precision for the positive class in binary classification tasks.

Exam trap

AWS often tests the misconception that hyperparameter tuning (like batch size or learning rate) can fix data imbalance, when in fact only data-level or algorithm-level techniques (e.g., oversampling, undersampling, or cost-sensitive learning) directly address the skewed class distribution.

How to eliminate wrong answers

Option A is wrong because using a larger batch size does not correct class imbalance; it may even exacerbate the issue by making each batch more likely to contain only majority-class samples, reducing the model's exposure to minority examples. Option B is wrong because L2 regularization is a technique to prevent overfitting by penalizing large weights, but it has no effect on the class distribution or the imbalance between positive and negative samples. Option D is wrong because increasing the learning rate can cause unstable training or divergence, and it does not address the underlying data imbalance; it may lead to the model ignoring minority class patterns altogether.

95
MCQmedium

A team is using Amazon SageMaker for feature engineering. They have a dataset with a column 'TransactionDate' in string format (e.g., '2023-01-15 10:30:00'). They need to create features: year, month, day, hour, and day_of_week. What is the most efficient way to do this in a SageMaker processing job?

A.Use pandas datetime functions and then split
B.Use SageMaker built-in first party algorithms
C.Use AWS Glue for transformation
D.Use SQL query in Athena on S3 data
AnswerA

Pandas provides built-in datetime accessors for extracting components efficiently.

Why this answer

Using pandas datetime functions within a SageMaker processing job is the most efficient approach for this task. SageMaker processing jobs run custom Python scripts, and pandas provides vectorized operations (e.g., `pd.to_datetime()`, `.dt.year`, `.dt.month`, `.dt.day`, `.dt.hour`, `.dt.dayofweek`) that parse the string column and extract all required features in a single pass without external dependencies or data movement.

Exam trap

AWS often tests the misconception that SageMaker built-in algorithms can handle feature engineering, but they are strictly for training and inference, not data preprocessing — the trap here is assuming 'first-party algorithms' include data transformation capabilities.

How to eliminate wrong answers

Option B is wrong because SageMaker built-in first-party algorithms (e.g., XGBoost, Linear Learner) are designed for model training, not for feature engineering or data transformation tasks like datetime parsing. Option C is wrong because AWS Glue is an ETL service that introduces additional overhead (e.g., Spark cluster startup, schema inference) and is less efficient for a simple in-memory pandas operation within a SageMaker processing job. Option D is wrong because using SQL in Athena on S3 data requires querying the raw data from S3, which incurs scan costs and latency, and Athena's SQL functions for datetime extraction (e.g., `EXTRACT`) are less flexible and slower than pandas for this specific transformation.

96
MCQhard

An ML team is using SageMaker Automatic Model Tuning to optimize hyperparameters for a neural network. They want to prioritize exploration of the hyperparameter space early in the tuning process. Which strategy should they choose?

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

Bayesian optimization uses a probabilistic model to guide search, balancing exploration and exploitation.

Why this answer

Bayesian optimization balances exploration and exploitation, but early in the process it tends to explore more. Random search explores uniformly without adaptation. Hyperband focuses on early stopping.

Grid search is exhaustive. Bayesian optimization is the best choice for systematic exploration.

97
Multi-Selecteasy

A company wants to deploy a model on SageMaker serverless inference. Which TWO of the following are limitations of serverless endpoints compared to real-time endpoints? (Choose two.)

Select 2 answers
A.Cold starts can cause increased latency for infrequent requests
B.Cannot deploy multiple containers in the same endpoint
C.No support for GPU instances
D.Maximum memory configuration is 6 GB
E.No automatic scaling – must be configured manually
AnswersC, D

Serverless endpoints only support CPU.

Why this answer

SageMaker serverless inference does not support GPU instances; it only runs on CPU-based instances. This is a fundamental limitation for workloads requiring GPU acceleration, such as deep learning models. In contrast, real-time endpoints support both CPU and GPU instance types.

Exam trap

The trap here is that candidates may confuse cold starts (option A) as a limitation unique to serverless endpoints, but the question asks for limitations compared to real-time endpoints, and cold starts are inherent to serverless, not a comparative limitation; the two correct answers are the specific technical constraints of no GPU support and the 6 GB memory cap.

98
MCQmedium

A team is preparing text data for sentiment analysis. They have a large corpus of customer reviews. They want to convert the text into numerical features using a technique that captures word importance relative to the whole corpus. Which feature extraction method should they use?

A.Word2Vec embeddings
B.One-hot encoding
C.TF-IDF
D.Bag-of-words (CountVectorizer)
AnswerC

TF-IDF downweights common words and highlights corpus-specific important words.

Why this answer

TF-IDF (Term Frequency-Inverse Document Frequency) weights words by their frequency in a document and their rarity across the corpus, giving higher weight to important words that are not common across all documents.

99
Multi-Selecthard

A company is building a real-time fraud detection system. They need to store features with historical context for model training and also support low-latency lookups for inference. Which THREE configurations should they set up in Amazon SageMaker Feature Store? (Select THREE.)

Select 3 answers
A.Enable point-in-time queries to retrieve historical feature values
B.Use the GetRecord API for real-time inference
C.Create a feature group with both online and offline store enabled
D.Use the BatchGetRecord API for all feature retrieval
E.Disable the offline store to reduce costs
AnswersA, B, C

Point-in-time queries are needed to reconstruct feature values at training time.

Why this answer

Point-in-time queries retrieve historical feature values at a specific time. Online store provides low-latency reads for inference. A feature group organizes features; creating one is necessary.

Offline store is for batch but not required for low-latency inference.

100
MCQmedium

A machine learning team is using SageMaker Studio for model development. They need to restrict all internet access from Studio notebooks and ensure that all data stays within a VPC. Which configuration should they use?

A.Use a private link to connect Studio to the VPC
B.Enable network isolation mode for the Studio domain
C.Attach a security group that blocks all outbound traffic
D.Configure the Studio domain with VPC-only mode and disable direct internet access
AnswerD

VPC-only mode ensures Studio resources run within a VPC without internet access, meeting the requirement.

Why this answer

Configuring a SageMaker Studio domain with VPC-only mode and disabling direct internet access ensures that all Studio notebook traffic stays within the VPC and has no route to the public internet. This is the only configuration that both restricts internet access and enforces data residency within the VPC by using VPC-only networking, which does not rely on an internet gateway or NAT gateway for outbound traffic.

Exam trap

The trap here is that candidates often confuse network isolation mode (which applies only to training/inference containers) with VPC-only mode for Studio notebooks, or they incorrectly assume that a security group blocking all outbound traffic is a valid way to restrict internet access while still allowing necessary AWS API calls.

How to eliminate wrong answers

Option A is wrong because using a private link (AWS PrivateLink) connects Studio to the VPC via interface VPC endpoints, but it does not inherently block all internet access from the notebooks; notebooks can still reach the internet if the VPC has an internet gateway or NAT gateway. Option B is wrong because network isolation mode for a Studio domain only prevents the training or hosting containers from accessing the internet, but it does not apply to Studio notebooks themselves and does not enforce VPC-only data residency. Option C is wrong because attaching a security group that blocks all outbound traffic would prevent any outbound communication, including necessary AWS service calls (e.g., to SageMaker API or S3), breaking Studio functionality; it is not a supported method for restricting internet access while maintaining required internal traffic.

101
MCQhard

A machine learning team needs to ensure that all model training and inference jobs within SageMaker Studio run in a private network without internet access. The team also requires that inter-container traffic within the same training job be encrypted. Which configurations should they combine?

A.Configure SageMaker Studio in VPC-only mode and use KMS encryption
B.Use a VPC with a NAT gateway and enable network isolation
C.Enable inter-container traffic encryption and use a VPC with VPC endpoints
D.Enable network isolation mode and inter-container traffic encryption
AnswerD

Network isolation removes internet access, and inter-container encryption secures traffic between containers.

Why this answer

VPC-only mode restricts all traffic to the VPC, and inter-container traffic encryption ensures data in transit within the job is encrypted. These two settings together meet the requirements.

102
MCQhard

A company uses Amazon SageMaker Ground Truth to label a dataset for object detection. To reduce labeling costs, they want to use active learning. Which configuration should they set up in Ground Truth?

A.Use a private workforce to label all data manually
B.Set the labeling job to random sampling of data
C.Configure the labeling job to use only bounding box annotations
D.Enable automated data labeling with a pre-trained model to select uncertain samples
AnswerD

This is active learning: the model automatically selects data that needs human labeling based on uncertainty.

Why this answer

Active learning in Amazon SageMaker Ground Truth reduces labeling costs by automatically selecting the most uncertain or informative data samples for human review, rather than labeling all data. Option D correctly configures automated data labeling with a pre-trained model to select uncertain samples, which is the core mechanism of active learning in Ground Truth.

Exam trap

The trap here is that candidates may confuse active learning with simply using a pre-trained model for inference (like option C's annotation type) or with random sampling (option B), missing that active learning specifically requires a feedback loop to select uncertain samples for human review.

How to eliminate wrong answers

Option A is wrong because using a private workforce to label all data manually does not implement active learning; it increases costs by labeling every sample without any automated selection. Option B is wrong because random sampling of data does not prioritize uncertain or informative samples; it treats all data equally, which defeats the purpose of active learning's cost-saving strategy. Option C is wrong because configuring the labeling job to use only bounding box annotations is a choice of annotation type, not an active learning configuration; it does not involve any automated selection or uncertainty sampling.

103
MCQmedium

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

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

Explainability report provides feature importance and partial dependence plots for the best model.

Why this answer

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

104
MCQhard

A company uses Amazon SageMaker Ground Truth to create a labeled dataset. They want to monitor the accuracy of human labelers during the labeling process. Which metric should they track?

A.Labeling job cost
B.Number of tasks completed
C.Accuracy against blinded ground truth
D.Task acceptance rate
AnswerC

Ground Truth inserts known ground truth tasks to audit labelers; tracking accuracy on these tasks measures labeler performance.

Why this answer

Tracking accuracy against blinded ground truth (known as audit tasks) is the standard way to measure labeler performance. Options A and B are operational metrics not directly measuring accuracy. Option D is not directly accuracy.

105
MCQeasy

A data science team deploys a PyTorch model on Amazon SageMaker for real-time inference. The model requires GPU for low latency. Which instance type is MOST cost-effective while meeting the GPU requirement?

A.ml.m5.2xlarge
B.ml.p4d.24xlarge
C.ml.p3.2xlarge
D.ml.c5.2xlarge
AnswerC

ml.p3.2xlarge provides a GPU at a cost-effective price point.

Why this answer

(ml.p3.2xlarge) is correct because it provides a GPU (NVIDIA V100) necessary for low-latency PyTorch inference on SageMaker, while being the most cost-effective among GPU options. The ml.p3.2xlarge offers a single GPU with sufficient compute for many real-time inference workloads, avoiding the higher cost of larger instances like ml.p4d.24xlarge.

Exam trap

The trap here is that candidates may assume any GPU instance is equally cost-effective, overlooking that ml.p4d.24xlarge is overprovisioned for typical inference, while CPU-only instances like ml.m5 and ml.c5 are tempting but fail the explicit GPU requirement.

How to eliminate wrong answers

Option A (ml.m5.2xlarge) is wrong because it is a general-purpose CPU instance with no GPU, failing to meet the GPU requirement for low-latency PyTorch inference. Option B (ml.p4d.24xlarge) is wrong because, while it provides powerful GPUs (NVIDIA A100), it is significantly more expensive than necessary for typical real-time inference, making it not the most cost-effective choice. Option D (ml.c5.2xlarge) is wrong because it is a compute-optimized CPU instance with no GPU, which cannot satisfy the GPU requirement for low-latency inference.

106
Multi-Selectmedium

A data engineer needs to perform feature selection on a dataset with 500 numeric features to train a regression model. The engineer wants to remove features that are redundant or have low predictive power. Which TWO techniques should the engineer consider? (Select TWO.)

Select 2 answers
A.Oversampling
B.Standardization
C.One-hot encoding
D.Correlation analysis
E.Lasso regularization (L1)
AnswersD, E

Identifies and removes highly correlated features, reducing redundancy.

Why this answer

Correlation analysis identifies redundant features (highly correlated with each other), and Lasso regularization can shrink coefficients of irrelevant features to zero. One-hot encoding is for categorical features; oversampling addresses imbalance; standardization normalizes scale.

107
MCQeasy

A machine learning engineer wants to encrypt model artifacts stored in Amazon S3. The artifacts are created and used by SageMaker training jobs and endpoints. What is the simplest way to ensure encryption at rest?

A.Create an S3 bucket with default encryption using SSE-S3 and allow SageMaker access.
B.Use SageMaker's default encryption with an AWS managed key.
C.Enable S3 bucket versioning and MFA delete.
D.Use a custom KMS key and grant SageMaker permission to use it.
AnswerA

SSE-S3 provides encryption at rest with no additional configuration, and SageMaker can read/write objects without any extra setup.

Why this answer

SSE-S3 provides server-side encryption with Amazon S3-managed keys, which is the simplest way to encrypt data at rest because it requires no additional key management or configuration beyond enabling default encryption on the bucket. SageMaker training jobs and endpoints can seamlessly read and write encrypted objects when the bucket has default SSE-S3 enabled, as SageMaker automatically handles the decryption during access. This approach minimizes operational overhead while meeting the encryption-at-rest requirement.

Exam trap

The trap here is that candidates may overcomplicate the solution by choosing a KMS-based option (B or D) because they assume encryption always requires a managed or custom key, overlooking that SSE-S3 is the simplest built-in option for encryption at rest.

How to eliminate wrong answers

Option B is wrong because SageMaker does not have a 'default encryption' setting that uses an AWS managed key for encrypting model artifacts in S3; SageMaker relies on the S3 bucket's encryption settings or a customer-specified KMS key. Option C is wrong because enabling S3 bucket versioning and MFA delete provides data protection against accidental deletion and unauthorized version changes, but does not encrypt data at rest. Option D is wrong because using a custom KMS key is more complex than necessary for simple encryption at rest; while it offers additional control, it is not the simplest method compared to SSE-S3.

108
MCQeasy

A data scientist is working on a binary classification problem and wants to use AWS Glue for data preparation. The dataset has missing values in several numeric columns. Which imputation strategy is MOST appropriate for the scientist to apply in AWS Glue ETL?

A.Use the FillMissingValues transform to replace missing values with the mean of each column
B.Use a machine learning model to predict missing values
C.Drop all rows with missing values using the Drop transform
D.Set missing values to zero
AnswerA

FillMissingValues (or Imputer) with mean is a standard imputation strategy for numeric features.

Why this answer

AWS Glue ETL (PySpark) supports the `Imputer` transformer which can impute missing numeric values using the mean or median of the column. This is a built-in, straightforward approach.

109
MCQmedium

An organization needs to prepare data for a churn prediction model. They observe missing values in 15% of the records for a numerical feature 'usage_minutes'. The data is not missing at random (NMAR). Which imputation strategy is MOST robust?

A.Use a regression model to predict missing values based on other features
B.Replace missing values with the median of the feature
C.Replace missing values with a constant, e.g., -1
D.Drop all rows with missing values
AnswerA

Model-based imputation can capture relationships and reduce bias under NMAR.

Why this answer

When data is NMAR, simple mean/median imputation can introduce bias. Using a model to predict missing values based on other features can account for the systematic missingness.

110
Multi-Selectmedium

A data science team uses SageMaker to train and deploy models. They need to track model lineage, including datasets, training jobs, and model versions, to ensure reproducibility. Which THREE actions should they take? (Select THREE)

Select 3 answers
A.Enable SageMaker ML Lineage Tracking
B.Register all models in the SageMaker Model Registry
C.Store trained models in a public S3 bucket
D.Use SageMaker Experiments to organize training runs
E.Tag all resources with metadata such as project ID and training run ID
AnswersA, B, E

Lineage tracking automatically records artifacts, actions, and contexts.

Why this answer

A is correct because SageMaker ML Lineage Tracking automatically captures the relationships between datasets, training jobs, and model versions, creating a directed acyclic graph (DAG) of the ML workflow. This enables full reproducibility by allowing you to trace which data and code produced a specific model, without manual intervention.

Exam trap

The trap here is that candidates confuse SageMaker Experiments (which tracks metrics and parameters) with ML Lineage Tracking (which tracks the full provenance graph), leading them to select D instead of A, even though Experiments alone does not capture the inter-resource relationships needed for reproducibility.

111
MCQhard

A data engineer is using Amazon SageMaker Processing to run a data preprocessing script on a dataset with 500 million rows. The script runs out of memory on a single ml.r5.24xlarge instance. The engineer needs to modify the processing job to handle the dataset size. Which approach is most cost-effective and scalable?

A.Configure the Processing job with multiple instances and use ShardedByS3Key for data splitting.
B.Write the script to process data in chunks and write intermediate results to local ephemeral storage.
C.Increase the instance type to a larger one like ml.p3dn.24xlarge with more memory.
D.Reduce the number of instances to one and increase the volume size for swap space.
AnswerA

This distributes the data across instances, leveraging parallel processing and reducing memory per instance.

Why this answer

SageMaker Processing with ShardedByS3Key splits the input dataset by S3 object boundaries across multiple instances, allowing distributed processing of the 500 million rows without exceeding memory on any single instance. This approach is cost-effective as it uses multiple smaller instances (e.g., ml.r5.xlarge) rather than a single oversized instance, and scales linearly with data size.

Exam trap

AWS often tests the misconception that increasing instance size or using swap space is the primary solution for memory issues, whereas the correct approach is to distribute the workload horizontally using SageMaker's built-in data sharding feature.

How to eliminate wrong answers

Option B is wrong because writing intermediate results to local ephemeral storage does not solve the out-of-memory issue; the script still loads the entire dataset into memory before chunking, and local storage is limited and not designed for large-scale intermediate data. Option C is wrong because increasing to a larger instance like ml.p3dn.24xlarge (which has 192 GB memory vs. ml.r5.24xlarge's 768 GB) actually reduces memory, and GPU instances are not optimized for memory-intensive preprocessing; this approach is neither cost-effective nor scalable. Option D is wrong because reducing to a single instance and increasing volume size for swap space relies on disk-based swapping, which is orders of magnitude slower than RAM and will cause severe performance degradation or job failure due to I/O bottlenecks.

112
MCQmedium

A data science team wants to track the lineage of models, including datasets, training jobs, and endpoints, for reproducibility and audit. They need a solution that captures relationships between artifacts automatically during training and deployment. Which service should they use?

A.Amazon S3 object versioning
B.SageMaker Experiments
C.SageMaker Model Registry
D.SageMaker ML Lineage Tracking
AnswerD

Captures artifact relationships and lineage automatically.

Why this answer

SageMaker ML Lineage Tracking automatically records the relationships between artifacts (datasets, jobs, models, endpoints) and tracks the provenance of ML workflows.

113
MCQmedium

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

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

Experiments provides experiment management to log parameters, metrics, and artifacts and compare across runs.

Why this answer

SageMaker Experiments allows tracking and comparing runs, including hyperparameters, metrics, and artifacts.

114
MCQhard

Refer to the exhibit. A SageMaker Processing job configured as above fails with a timeout error. The input data is 100 GB of CSV files. The processing script performs standard data cleaning operations. What is the most likely cause?

A.The processing job does not have enough memory for the data volume
B.The container entrypoint is missing the full path to the script
C.The S3Input S3CompressionType is set to "None" but the file is compressed
D.The IAM role does not have permission to write to the output bucket
AnswerA

ml.m5.large has 8 GB memory; 100 GB data likely causes memory exhaustion and slow disk swapping.

Why this answer

The SageMaker Processing job is configured with a single `ml.m5.large` instance, which has 8 GiB of memory. The input data is 100 GB of CSV files, and the processing script performs standard data cleaning operations that typically load the entire dataset into memory (e.g., using pandas). With only 8 GiB of RAM, the instance cannot hold 100 GB of data, causing the job to run out of memory and eventually fail with a timeout error as the OS kills the process or the job hangs.

Exam trap

The trap here is that candidates may overlook the memory-to-data ratio and assume a timeout error always indicates a network or permission issue, rather than recognizing that an undersized instance with insufficient RAM for the dataset volume causes the job to stall and eventually time out.

How to eliminate wrong answers

Option B is wrong because if the container entrypoint were missing the full path to the script, the job would fail immediately with a 'No such file or directory' error, not a timeout error. Option C is wrong because `S3CompressionType` set to 'None' means the input files are not compressed; if the files were actually compressed, the job would fail with a decompression error, not a timeout. Option D is wrong because if the IAM role lacked write permission to the output bucket, the job would fail with an access denied error during the output write phase, not a timeout error.

115
MCQmedium

During data preparation for a regression model, a data scientist notices that two features have a Pearson correlation coefficient of 0.95. The scientist is concerned about multicollinearity. Which action should be taken to address this issue?

A.Apply PCA to reduce dimensionality to a single component
B.Remove one of the two features
C.Keep both features as they are because linear models are robust to multicollinearity
D.Standardize both features using StandardScaler
AnswerB

Removing one feature eliminates the near-linear dependency, addressing multicollinearity.

Why this answer

Removing one of the highly correlated features reduces multicollinearity without losing much information, as they are nearly linearly dependent. Standardization does not fix multicollinearity. PCA would reduce dimensionality but may harm interpretability.

Keeping both can destabilize coefficient estimates.

116
MCQmedium

A company is using AWS Glue to prepare data for a machine learning pipeline. The source data is in an Amazon S3 bucket in CSV format. The data scientist wants to convert the data to Parquet format and partition it by date. Which AWS Glue feature should be used to optimize the data for query performance and reduce storage costs?

A.Use Amazon Athena to convert the data to JSON format and store it in S3.
B.Use AWS Glue DynamicFrame to repartition the data and write it as Parquet.
C.Use AWS Glue to convert the data to Apache Hive format.
D.Use Apache Spark DataFrame to write the data as CSV with Snappy compression.
AnswerB

DynamicFrame supports efficient partitioning and columnar format conversion.

Why this answer

AWS Glue DynamicFrames provide built-in optimizations for writing data in columnar formats like Parquet, which improves query performance through predicate pushdown and compression, and reduces storage costs by using efficient encoding. The DynamicFrame's `repartition()` method allows you to control the number of output files, and writing as Parquet directly from Glue avoids intermediate conversions, making it the most efficient choice for this task.

Exam trap

The trap here is that candidates confuse 'file format' with 'query engine' (e.g., Hive) or choose a format like JSON that is human-readable but inefficient for analytics, missing that Parquet is the industry standard for performance and cost in data lakes.

How to eliminate wrong answers

Option A is wrong because converting to JSON format would increase storage costs and degrade query performance compared to Parquet, as JSON is a verbose, row-based format with no built-in compression or columnar optimization. Option C is wrong because Apache Hive format is not a specific file format; Hive is a query engine that can read various formats, and the question asks for a format conversion, not a query engine. Option D is wrong because writing as CSV with Snappy compression still results in a row-based format that lacks the columnar storage benefits of Parquet, such as predicate pushdown and efficient compression, and Snappy compression on CSV does not match Parquet's storage efficiency.

117
MCQeasy

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

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

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

118
Multi-Selectmedium

An ML team has deployed a model to a SageMaker real-time endpoint and wants to set up automated monitoring for model quality. Which TWO elements are required to configure SageMaker Model Monitor for model quality? (Select TWO.)

Select 2 answers
A.SHAP values for feature attribution
B.A constraints file with allowed deviation thresholds
C.A ground truth labels dataset for comparison
D.The endpoint's prediction output captured in real-time
E.A baseline statistics file derived from the training data
AnswersC, D

Ground truth labels are essential to compare against predictions and compute model quality metrics.

Why this answer

SageMaker Model Monitor for model quality requires a ground truth labels dataset to compare the model's predictions against actual outcomes. This comparison is essential for calculating quality metrics like accuracy, precision, recall, or F1 score, which indicate how well the model is performing over time.

Exam trap

The trap here is that candidates confuse the requirements for model quality monitoring (which needs ground truth labels and captured predictions) with those for data quality monitoring (which needs a baseline statistics file and constraints), leading them to select options B or E incorrectly.

119
MCQmedium

A team uses SageMaker Model Monitor to track data quality. They notice that the monitor's constraint violations are increasing but the model performance remains good. What should they do?

A.Disable the monitor because it is not affecting performance.
B.Relax the constraint thresholds to reduce alerts.
C.Retrain the model using the latest data.
D.Investigate the specific features that are violating constraints to see if they are still relevant.
AnswerD

Feature distributions may have naturally shifted without harming model performance; investigating helps decide if constraints need updating.

Why this answer

Increasing constraint violations in SageMaker Model Monitor do not necessarily indicate model degradation; they may reflect benign data drift where feature distributions shift but the model's predictive performance remains intact. Investigating specific violating features allows the team to determine whether the drift is meaningful (e.g., due to a real-world change that the model should adapt to) or irrelevant (e.g., a feature that is no longer used in the inference pipeline). This aligns with the monitoring best practice of separating data quality alerts from model performance metrics to avoid unnecessary retraining or threshold tuning.

Exam trap

The trap here is that candidates assume increasing constraint violations always mean the model is failing, leading them to choose retraining (Option C) or threshold relaxation (Option B), when the correct first step is to investigate the specific features to distinguish benign drift from harmful drift.

How to eliminate wrong answers

Option A is wrong because disabling the monitor eliminates visibility into data quality trends, which could mask future issues that do impact performance; Model Monitor is designed for proactive detection, not to be turned off when alerts are inconvenient. Option B is wrong because relaxing constraint thresholds without investigation may hide genuine data quality problems that could later degrade model performance, and it does not address the root cause of why violations are increasing. Option C is wrong because retraining the model on the latest data is premature and resource-intensive without first confirming that the drift is harmful; if the violating features are irrelevant, retraining wastes compute and may introduce unnecessary model churn.

120
MCQhard

A team is deploying a machine learning model for real-time fraud detection. The model must have inference latency under 10 ms and handle up to 1000 requests per second. The model is a gradient boosting model using XGBoost. Which SageMaker hosting configuration is MOST cost-effective while meeting the requirements?

A.Use SageMaker Batch Transform with multiple instances
B.Use a SageMaker Multi-Model Endpoint (MME) on an ml.c5.4xlarge instance with auto scaling
C.Deploy on a single ml.c5.xlarge instance with a real-time endpoint
D.Deploy separate real-time endpoints for each model on ml.m5.large instances
AnswerB

MME allows multiple models to share a container, reducing cost while scaling to meet demand.

Why this answer

The most cost-effective configuration is using a Multi-Model Endpoint (MME) on an ml.c5.4xlarge instance with auto scaling. The ml.c5.4xlarge instance provides sufficient compute (16 vCPUs) to achieve under 10 ms inference latency and handle 1000 requests per second. Auto scaling ensures the endpoint adapts to traffic, minimizing cost while meeting demand.

Although MME is typically designed for multiple models, it can also host a single model; the cost advantage here comes from the right-sized instance and scaling, not from the multi-model feature. A single ml.c5.xlarge instance (option C) lacks the vCPU capacity to handle 1000 req/s at sub-10ms latency. Deploying separate endpoints on ml.m5.large instances (option D) would require many instances, increasing cost.

Batch Transform (option A) is for batch inference, not real-time.

Exam trap

Candidates may avoid Multi-Model Endpoints for a single model, but MME can still host a single model. The trap is to overlook that the larger instance and auto scaling—not MME itself—meet the throughput and latency requirements. Another trap is choosing a smaller instance assuming it's sufficient, or using Batch Transform for real-time needs.

How to eliminate wrong answers

Option A is wrong because SageMaker Batch Transform is designed for offline, asynchronous inference on large datasets, not real-time fraud detection with sub-10 ms latency. Option C is wrong because a single ml.c5.xlarge instance (4 vCPUs, 8 GB memory) cannot handle 1000 requests per second with <10 ms latency for an XGBoost model; it would be CPU-bound and cause request throttling or timeouts. Option D is wrong because deploying separate real-time endpoints on ml.m5.large instances (2 vCPUs, 8 GB memory each) is cost-inefficient and would require many instances to meet throughput, increasing cost without latency benefit; also, ml.m5 instances are memory-optimized but XGBoost inference is CPU-intensive, making ml.c5 instances more suitable.

121
MCQeasy

An ML team wants to monitor the cost of their SageMaker endpoints. They have observed that some endpoints are underutilized. Which AWS offering can help them reduce costs by committing to a consistent amount of usage in exchange for a lower price?

A.SageMaker Savings Plans
B.SageMaker endpoint auto-scaling
C.SageMaker Managed Spot Training
D.SageMaker Inference Recommender
AnswerA

Savings Plans offer discounted rates in exchange for a usage commitment.

Why this answer

SageMaker Savings Plans offer a flexible pricing model where you commit to a consistent amount of compute usage (measured in dollars per hour) over a 1- or 3-year term, in exchange for a lower price compared to On-Demand rates. This directly addresses the goal of reducing costs for underutilized endpoints by allowing the team to pay a discounted rate for the baseline usage they commit to, regardless of whether the endpoint is fully utilized.

Exam trap

The trap here is that candidates often confuse cost-saving mechanisms like auto-scaling (which reduces usage) with pricing commitments (which reduce per-unit cost), leading them to select endpoint auto-scaling instead of Savings Plans.

How to eliminate wrong answers

Option B is wrong because SageMaker endpoint auto-scaling dynamically adjusts the number of instances based on traffic, which can reduce costs by scaling down during low usage, but it does not involve committing to a consistent usage amount for a lower price; it is a scaling mechanism, not a pricing commitment. Option C is wrong because SageMaker Managed Spot Training is designed for training jobs, not for hosting endpoints, and uses spare EC2 capacity at a discount but can be interrupted, making it unsuitable for persistent inference endpoints that require availability. Option D is wrong because SageMaker Inference Recommender is a tool for benchmarking and optimizing inference configurations (e.g., instance type, model compilation) to improve performance and cost efficiency, but it does not provide a pricing commitment or discount for consistent usage.

122
MCQhard

An ML team uses AWS Step Functions to orchestrate a retraining pipeline triggered by EventBridge when new training data arrives. The pipeline includes a SageMaker training job and a model evaluation. If evaluation fails, the team wants to send an alert. How should they implement this?

A.Use SQS dead-letter queue for failed training jobs
B.Add a Catch rule in the Step Functions state machine to invoke a Lambda alert function
C.Configure SageMaker training job to publish to SNS on failure
D.Use EventBridge to monitor the training job status
AnswerB

Catch rules in Step Functions handle errors and route to fallback states.

Why this answer

Step Functions supports error handling via Catch rules; a Catch on the training or evaluation task can transition to a Lambda function that sends an alert.

123
MCQmedium

An ML engineer monitors a SageMaker endpoint for data drift. They set up SageMaker Model Monitor to compare inference data against a baseline created from the training dataset. The monitoring schedule runs daily and reports violations. Which monitoring type should be configured to detect if the distribution of a numerical feature in real-time inference data differs significantly from the training distribution?

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

Data quality monitoring evaluates statistical properties of features against a baseline and can detect numerical feature drift using metrics like mean, variance, or Kolmogorov-Smirnov test.

Why this answer

SageMaker Model Monitor's data quality monitoring detects feature distribution drift (statistical drift) between baseline and live data. Model quality monitoring requires ground truth labels, bias drift monitors fairness metrics, and feature attribution drift monitors SHAP values.

124
MCQhard

A company needs to deploy a large language model (LLM) on SageMaker with the Triton Inference Server to maximize GPU utilization and reduce latency. They have an NVIDIA A100 GPU. Which SageMaker inference option supports Triton?

A.SageMaker Batch Transform with Triton
B.SageMaker real-time endpoint using a Triton Inference Server container
C.SageMaker Serverless Inference with a custom container
D.SageMaker Neo compiled model on a CPU endpoint
AnswerB

Why this answer

SageMaker real-time endpoints support the Triton Inference Server through a pre-built container that integrates with NVIDIA A100 GPUs, enabling dynamic batching and concurrent model execution to maximize GPU utilization and reduce latency. Triton is designed for high-throughput inference on GPU hardware, making it the correct choice for this scenario.

Exam trap

The trap here is that candidates may confuse SageMaker Batch Transform with real-time endpoints, assuming Triton can be used for batch processing, but Triton is specifically designed for real-time, low-latency inference and is not supported in Batch Transform jobs.

How to eliminate wrong answers

Option A is wrong because SageMaker Batch Transform does not support the Triton Inference Server; it is designed for offline, asynchronous inference on large datasets without real-time GPU optimization features. Option C is wrong because SageMaker Serverless Inference does not support GPU instances or custom containers with Triton; it is limited to CPU-based inference and automatically managed scaling. Option D is wrong because SageMaker Neo compiles models for CPU or edge devices, not for GPU inference with Triton, and using a CPU endpoint would not leverage the A100 GPU's capabilities.

125
MCQeasy

A machine learning team at a retail company has deployed a product recommendation model using Amazon SageMaker. The model is updated weekly with new data. Recently, the team noticed that the model's accuracy on a holdout evaluation set has been declining over the past month. The data pipeline that feeds the training job has not changed. The team suspects data drift. They have SageMaker Model Monitor enabled on the inference endpoint and have set up Amazon CloudWatch metrics for feature distribution distances. Upon reviewing the CloudWatch dashboards, they see that the feature distribution distance metric for the most important feature 'product_category' has increased significantly. However, the team is unsure if this is the root cause. Which remediation step should the team take FIRST?

A.Retrain the model using the most recent week of data and redeploy to the endpoint
B.Investigate the data pipeline that feeds the training job to ensure consistent data collection and encoding of the 'product_category' feature
C.Rebuild the SageMaker endpoint with a different instance type to improve performance
D.Reduce the number of features in the model by removing 'product_category'
AnswerB

The first step should be to confirm that the data pipeline is not introducing errors. If the data is correct, then retraining might be appropriate.

Why this answer

The first step when data drift is suspected is to investigate the data pipeline to ensure consistent data collection and encoding. Since the model's accuracy is declining and the feature distribution distance for 'product_category' has increased, the root cause may be a change in how the feature is collected or encoded upstream, not necessarily a change in the underlying data distribution. SageMaker Model Monitor detects drift in feature distributions, but it cannot diagnose the cause; the team must verify the pipeline before retraining or modifying the model.

Exam trap

The trap here is that candidates assume data drift always requires retraining, but the first remediation step should always be to investigate the data pipeline to rule out upstream errors before taking corrective action on the model.

How to eliminate wrong answers

Option A is wrong because retraining with the most recent week of data assumes the drift is due to a natural shift in the data distribution, but if the drift is caused by a pipeline error (e.g., encoding change), retraining on corrupted data will not fix the issue and may degrade the model further. Option C is wrong because changing the instance type addresses compute performance, not data quality or model accuracy; it has no impact on feature distribution drift. Option D is wrong because removing the most important feature 'product_category' would likely reduce model accuracy further, and it does not address the underlying cause of the drift.

126
MCQmedium

A data science team uses SageMaker Pipelines for automated training. They need to conditionally register a model only if evaluation metrics exceed a threshold. Which pipeline step type should they use after the evaluation step?

A.Condition step
B.Processing step
C.Transform step
D.RegisterModel step
AnswerA

Condition step allows branching based on a Boolean condition, such as metric threshold.

Why this answer

The Condition step evaluates a condition and branches the pipeline; if the condition is met, the pipeline proceeds to register the model.

127
Multi-Selectmedium

A machine learning engineer is preparing a dataset for a binary classification model. The dataset has 10,000 rows and 200 features, with 5% positive class. The engineer suspects class imbalance may affect model performance. Which TWO actions should the engineer take to mitigate imbalance? (Choose 2.)

Select 2 answers
A.Perform PCA to reduce dimensions
B.Remove features with low variance
C.Use k-fold cross-validation
D.Apply SMOTE only to training data
E.Use class weights in the algorithm
AnswersD, E

SMOTE generates synthetic minority samples, helping the model learn the minority class better.

Why this answer

SMOTE (Synthetic Minority Oversampling Technique) generates synthetic samples for the minority class by interpolating between existing minority instances, which helps balance the class distribution. Applying SMOTE only to the training data is critical to avoid data leakage, as the test set must remain untouched to provide an unbiased evaluation of model performance on the original class distribution.

Exam trap

The trap here is that candidates may confuse techniques for handling class imbalance with general data preprocessing or evaluation methods, leading them to select PCA or cross-validation as solutions, when in fact only resampling (SMOTE) and cost-sensitive learning (class weights) directly address the imbalance problem.

128
MCQmedium

An ML engineer is using Amazon SageMaker Automatic Model Tuning (AMT) to optimize hyperparameters for a gradient boosting model. The tuning job is taking a long time and has completed many training jobs. The engineer wants to stop training jobs that are unlikely to improve the objective metric. What should they configure?

A.Reduce the number of hyperparameter ranges
B.Use a random search strategy instead of Bayesian
C.Increase the maximum number of training jobs
D.Enable early stopping in the hyperparameter tuning job
AnswerD

Early stopping terminates training jobs that are not meeting an improvement threshold, reducing overall tuning time.

Why this answer

Enabling early stopping in the Amazon SageMaker Automatic Model Tuning (AMT) job allows the tuning job to automatically stop training jobs that are unlikely to improve the objective metric based on intermediate results. This reduces the total time and compute cost by terminating poorly performing trials early, which directly addresses the engineer's goal of stopping unpromising training jobs.

Exam trap

The trap here is that candidates may confuse early stopping (which stops individual training jobs) with reducing the search space or changing the search strategy, which only affect the overall tuning job configuration without addressing the need to terminate underperforming trials mid-execution.

How to eliminate wrong answers

Option A is wrong because reducing the number of hyperparameter ranges limits the search space but does not actively stop ongoing training jobs that are underperforming; it only reduces the total number of possible trials. Option B is wrong because using a random search strategy instead of Bayesian does not provide any mechanism to stop individual training jobs early; random search simply samples hyperparameters randomly and runs each job to completion. Option C is wrong because increasing the maximum number of training jobs would allow more trials to run, which would increase the total time and cost, contrary to the goal of stopping unpromising jobs.

129
MCQmedium

A company deploys a model for credit risk assessment on a SageMaker endpoint. To comply with internal policies, they must ensure that the endpoint only allows inference requests from within a specific VPC and that the data is encrypted at rest. Which configuration meets these requirements?

A.Enable network isolation mode and use KMS for endpoint encryption
B.Configure endpoint in VPC-only mode and enable inter-container traffic encryption
C.Deploy endpoint in a public subnet and use a security group to restrict traffic
D.Configure endpoint in VPC-only mode and enable KMS encryption for the endpoint
AnswerD

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

Why this answer

Configuring the SageMaker endpoint in VPC-only mode ensures that inference requests can only originate from within the specified VPC, satisfying the network restriction requirement. Enabling KMS encryption for the endpoint encrypts the model data and inference data at rest using a customer-managed key, meeting the encryption-at-rest policy.

Exam trap

The trap here is confusing network isolation (which blocks outbound internet access) with VPC-only mode (which restricts inbound traffic to a VPC), and mistaking inter-container traffic encryption for encryption at rest.

How to eliminate wrong answers

Option A is wrong because network isolation mode prevents the endpoint from accessing the internet but does not restrict inbound inference traffic to a specific VPC; it also does not inherently use KMS for endpoint encryption. Option B is wrong because inter-container traffic encryption protects data in transit between containers, not data at rest, and VPC-only mode alone does not guarantee encryption at rest. Option C is wrong because deploying the endpoint in a public subnet exposes it to the internet, and while a security group can restrict traffic, it does not enforce that requests originate only from within a specific VPC, nor does it provide encryption at rest.

130
MCQmedium

A company trains a model daily using Amazon SageMaker and uses the model for real-time inference. They want to detect data drift between the training data and the inference data to decide when to retrain. Which AWS service should they use for this purpose?

A.Amazon Athena
B.Amazon SageMaker Model Monitor
C.AWS Glue
D.AWS Lambda
AnswerB

SageMaker Model Monitor is designed to detect data drift and model quality degradation.

Why this answer

Amazon SageMaker Model Monitor is the correct service because it is specifically designed to continuously monitor machine learning models in production for data drift, feature attribution drift, and quality issues. It compares the distribution of live inference data against the baseline training data statistics and alerts when drift exceeds defined thresholds, enabling timely retraining decisions.

Exam trap

The trap here is that candidates may confuse AWS Glue's data cataloging and ETL capabilities with drift detection, or assume Athena's querying ability can be used for monitoring, but neither service is designed for continuous statistical comparison of ML inference data against training baselines.

How to eliminate wrong answers

Option A is wrong because Amazon Athena is an interactive query service for analyzing data in S3 using SQL, not a monitoring tool for ML model drift. Option C is wrong because AWS Glue is a serverless data integration and ETL service used for preparing and transforming data, not for detecting drift in production ML inference data. Option D is wrong because AWS Lambda is a serverless compute service for running code in response to events; while it could be used to trigger retraining, it does not natively perform drift detection or baseline comparison on inference data.

131
MCQeasy

A machine learning engineer wants to store, share, and manage features for multiple ML models across an organization. The features need to be accessible for both real-time inference (low-latency) and batch training. Which AWS service should the engineer use?

A.Amazon S3 with AWS Glue Data Catalog
B.Amazon Redshift
C.Amazon SageMaker Feature Store
D.Amazon DynamoDB
AnswerC

Feature Store provides both online and offline stores, plus features like point-in-time queries and feature group management.

Why this answer

Amazon SageMaker Feature Store is purpose-built for storing, sharing, and managing ML features across teams and models. It provides a unified feature store with both an online store (backed by Amazon DynamoDB or Redis) for low-latency real-time inference and an offline store (backed by Amazon S3) for batch training, directly addressing the requirement for dual access patterns.

Exam trap

The trap here is that candidates confuse a general-purpose database or data lake (like DynamoDB or S3) with a purpose-built ML feature store, overlooking the need for both low-latency online access and offline batch storage with feature-specific governance.

How to eliminate wrong answers

Option A is wrong because Amazon S3 with AWS Glue Data Catalog provides a data lake cataloging solution for batch analytics but lacks a low-latency online store for real-time inference, and it is not designed for feature-specific management like point-in-time consistency or feature sharing across ML models. Option B is wrong because Amazon Redshift is a data warehouse optimized for complex analytical queries on structured data, not for sub-millisecond real-time inference or feature store capabilities such as feature versioning and serving. Option D is wrong because Amazon DynamoDB is a NoSQL key-value database that can serve low-latency reads but does not natively support offline batch storage, feature sharing, or the unified online/offline store abstraction required for ML feature management.

132
MCQhard

During a SageMaker training job, the loss stops decreasing and the validation accuracy plateaus early. SageMaker Debugger rules are enabled. Which rule is MOST likely to identify this issue?

A.Weight distribution rule
B.Exploding gradients rule
C.Overfit rule
D.Dead relu rule
AnswerC

Overfit rule monitors validation vs training metrics to detect overfitting.

Why this answer

The overfit rule detects when validation accuracy plateaus or decreases while training accuracy continues to improve, which is a sign of overfitting. Exploding gradients detects gradient spikes, dead relu detects dead neurons, and weight distribution checks weight distributions but not directly overfitting.

133
MCQeasy

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

A.BlazingText
B.DeepAR
C.IP Insights
D.XGBoost
AnswerB

DeepAR is used for time series forecasting.

Why this answer

DeepAR is a built-in algorithm specifically for time series forecasting. BlazingText is for text, XGBoost is for tabular data, and IP Insights is for anomaly detection in IP traffic.

134
MCQhard

A team is deploying a model that requires GPU acceleration for inference. They are using an Amazon SageMaker real-time endpoint. The model is a large language model (LLM) that does not fit on a single GPU. Which configuration should they use to minimize latency while fitting the model?

A.Use data parallelism with Horovod to distribute inference across GPUs.
B.Use SageMaker's model parallelism library to shard the model across multiple GPUs in a single instance.
C.Optimize the model with SageMaker Neo to reduce its size.
D.Deploy the model across multiple endpoints and use a load balancer.
AnswerB

Hardware and software support for large model inference.

Why this answer

SageMaker's model parallelism library allows you to shard a large language model across multiple GPUs within a single instance, enabling inference for models that exceed a single GPU's memory. This approach minimizes latency by keeping all GPUs in a single instance with high-speed interconnects (e.g., NVLink), avoiding the network overhead of distributing across separate instances.

Exam trap

The trap here is that candidates confuse data parallelism (which replicates the model) with model parallelism (which shards the model), assuming any distributed approach works for large models, but only model parallelism solves the 'does not fit on a single GPU' constraint.

How to eliminate wrong answers

Option A is wrong because data parallelism (e.g., Horovod) replicates the entire model on each GPU, which does not solve the problem of a model that does not fit on a single GPU; it requires the model to fit entirely on each GPU. Option C is wrong because SageMaker Neo optimizes models for target hardware through quantization and compiler optimizations, but it does not reduce the model's memory footprint enough to fit an LLM that exceeds a single GPU's capacity; Neo is for inference acceleration, not model sharding. Option D is wrong because deploying across multiple endpoints with a load balancer distributes requests but does not address the fundamental issue of a model that cannot fit on a single GPU; each endpoint would still need to host the full model, which is impossible without sharding.

135
MCQeasy

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

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

AMT performs hyperparameter optimization.

Why this answer

SageMaker Automatic Model Tuning (AMT) supports Bayesian optimization, random search, and Hyperband. Debugger is for monitoring. Experiments is for tracking.

Autopilot is for AutoML.

136
MCQeasy

A data engineer wants to transform a categorical feature with 1,000 possible values into numerical features for a linear model. Which feature engineering technique is most appropriate for this high-cardinality feature?

A.One-hot encoding
B.Ordinal encoding
C.Target encoding
D.Label encoding
AnswerC

Target encoding compresses the feature into a single numeric column using target statistics, suitable for linear models.

Why this answer

Target encoding replaces each category with the mean of the target variable for that category, which handles high cardinality without exploding dimensionality. One-hot encoding creates 1,000 columns, which is problematic for linear models.

137
MCQeasy

A company wants to ensure that only authorized users and services can invoke a SageMaker real-time endpoint. Which AWS service can be used to manage access control?

A.Amazon CloudWatch
B.AWS Identity and Access Management (IAM)
C.AWS CloudTrail
D.AWS Config
AnswerB

IAM policies can grant or deny access to invoke SageMaker endpoints.

Why this answer

AWS Identity and Access Management (IAM) is the correct service because it allows you to create fine-grained permissions policies that control which users, roles, or services can invoke a SageMaker real-time endpoint via the InvokeEndpoint API. By attaching IAM policies to principals (e.g., IAM users, roles, or federated identities), you can restrict invocation based on conditions such as source IP, VPC endpoint, or MFA, ensuring only authorized entities can send inference requests.

Exam trap

The trap here is that candidates confuse monitoring or auditing services (CloudWatch, CloudTrail, Config) with access control, mistakenly thinking they can restrict API calls when they only observe or log them.

How to eliminate wrong answers

Option A is wrong because Amazon CloudWatch is a monitoring and observability service that collects metrics, logs, and alarms; it does not manage access control or authentication for API calls. Option C is wrong because AWS CloudTrail is an audit service that records API activity for governance and compliance; it logs who invoked an endpoint but cannot enforce or deny access. Option D is wrong because AWS Config is a resource inventory and compliance service that evaluates configuration rules; it can detect non-compliant endpoint policies but cannot directly control invocation permissions.

138
Multi-Selectmedium

A company uses SageMaker Model Monitor to detect data drift in production. The monitoring job compares the current data distribution to a baseline. Which TWO types of drift can SageMaker Model Monitor detect? (Select TWO)

Select 2 answers
A.Concept drift (change in the relationship between features and target)
B.Data quality drift (schema and statistical drift)
C.Model quality drift (performance degradation against ground truth)
D.Bias drift (change in bias metrics over time)
E.Feature attribution drift (SHAP values)
AnswersB, C

Model Monitor can detect schema violations and statistical distribution changes.

139
Multi-Selectmedium

A company uses SageMaker to orchestrate a training pipeline with multiple steps including preprocessing, training, and evaluation. They want to ensure that each step can be reused and tracked. Which three SageMaker features support this? (Select THREE.)

Select 3 answers
A.SageMaker Pipelines
B.SageMaker Experiments
C.SageMaker Processing Jobs
D.SageMaker Clarify
E.SageMaker Model Monitor
AnswersA, B, C

Pipelines orchestrate multiple steps and support reuse.

Why this answer

SageMaker Pipelines is correct because it provides a directed acyclic graph (DAG) of steps that can be defined, parameterized, and reused across different runs. Each step (preprocessing, training, evaluation) is a distinct, versioned component that can be independently tracked and re-executed, enabling modular orchestration of ML workflows.

Exam trap

The trap here is that candidates confuse SageMaker Clarify and Model Monitor as pipeline orchestration tools, when they are actually separate services for model governance and production monitoring, not for step reuse and tracking.

140
MCQmedium

A team deploys a PyTorch model on Amazon SageMaker for real-time inference. They notice that inference latency is higher than expected. They suspect the serialization format used for input data is inefficient. Which approach would MOST likely reduce latency?

A.Use Amazon SageMaker Batch Transform instead of real-time inference.
B.Change the input serialization format to Protocol Buffers.
C.Enable automatic scaling on the endpoint.
D.Increase the instance type to a compute-optimized instance.
AnswerB

Protocol Buffers reduce serialization time compared to JSON/CSV.

Why this answer

Protocol Buffers (protobuf) are a binary serialization format that is significantly more compact and faster to parse than text-based formats like JSON or CSV. By reducing the size of the input data and the CPU overhead of deserialization, switching to protobuf directly addresses the root cause of high inference latency on SageMaker real-time endpoints.

Exam trap

The trap here is that candidates often confuse throughput improvements (scaling, larger instances) with latency reduction, or mistakenly think Batch Transform can substitute for real-time inference, when the question specifically targets the serialization format as the suspected bottleneck.

How to eliminate wrong answers

Option A is wrong because Batch Transform is designed for offline, asynchronous processing of large datasets and does not reduce latency for real-time inference; it actually increases end-to-end time by batching. Option C is wrong because automatic scaling adjusts the number of instances to handle traffic volume, not the per-request latency caused by serialization inefficiency. Option D is wrong while a compute-optimized instance might improve raw processing speed, it does not fix the underlying serialization bottleneck and is a more expensive, indirect solution compared to changing the serialization format.

141
MCQeasy

A company wants to use SageMaker to deploy a model that requires GPU acceleration for inference but also needs to keep costs low when traffic is low. Which SageMaker feature should they use?

A.SageMaker Debugger
B.SageMaker Managed Spot Training
C.SageMaker Elastic Inference
D.SageMaker Model Monitor
AnswerC

Elastic Inference attaches GPU acceleration to any SageMaker instance, reducing cost.

Why this answer

SageMaker Elastic Inference (EI) allows you to attach a fraction of a GPU to a SageMaker endpoint for inference, providing GPU acceleration at a lower cost than using a full GPU instance. This is ideal for scenarios with variable traffic because you can scale the EI accelerator independently of the instance, and pay only for the accelerator when it's used, keeping costs low during low-traffic periods.

Exam trap

The trap here is that candidates often confuse SageMaker Managed Spot Training (cost savings for training) with inference cost optimization, or assume that GPU acceleration for inference requires a full GPU instance like ml.p3.2xlarge, overlooking Elastic Inference as a fractional GPU solution.

How to eliminate wrong answers

Option A is wrong because SageMaker Debugger is a tool for monitoring and debugging training jobs (e.g., detecting vanishing gradients), not for accelerating inference or reducing inference costs. Option B is wrong because SageMaker Managed Spot Training is a feature for reducing training costs by using spot instances, not for inference or GPU acceleration at the endpoint. Option D is wrong because SageMaker Model Monitor is used to detect data drift and quality issues in deployed models, not to provide GPU acceleration or cost savings for inference.

142
MCQhard

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

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

Bayesian optimization uses past evaluations to inform future hyperparameter choices, balancing exploration and exploitation.

Why this answer

Bayesian optimization builds a probabilistic model of the objective function and selects hyperparameters to try next based on past results, making it more efficient than random search. Hyperband is a bandit-based approach that may be faster but can be less stable.

143
MCQmedium

A machine learning team is using Amazon SageMaker to train a model. They notice that the training job is taking longer than expected and the logs show repeated warnings about 'loss not decreasing'. Which SageMaker feature should they use to diagnose and visualize the training process?

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

Debugger provides real-time training diagnostics.

Why this answer

Amazon SageMaker Debugger is the correct choice because it provides real-time monitoring and visualization of training metrics, including loss values, gradients, and weights. The repeated 'loss not decreasing' warnings indicate a training issue (e.g., vanishing gradients or learning rate problems), and Debugger can capture these tensors and emit alerts or trigger actions (like stopping the job) via built-in or custom rules. It also integrates with SageMaker Studio for interactive visualization of the training progress.

Exam trap

The trap here is that candidates often confuse SageMaker Debugger with SageMaker Experiments, thinking both are for monitoring training metrics, but Experiments only logs high-level metrics (like final loss or accuracy) while Debugger provides deep, step-by-step tensor-level diagnostics for issues like loss stagnation.

How to eliminate wrong answers

Option A is wrong because Amazon SageMaker Clarify is designed for bias detection and explainability of model predictions, not for monitoring training metrics like loss. Option B is wrong because Amazon SageMaker Experiments is used for tracking and comparing different training runs (e.g., hyperparameters, metrics), but it does not provide real-time, in-depth debugging of internal tensors or loss plateaus during a single training job. Option D is wrong because Amazon SageMaker Model Monitor focuses on detecting data drift and quality issues in deployed models (inference endpoints), not on diagnosing training-time problems like loss stagnation.

144
MCQeasy

Refer to the exhibit. A team has configured data capture for a SageMaker endpoint. The endpoint is returning predictions but no captured data appears in the S3 bucket. What is the most likely cause?

A.The InitialSamplingPercentage is too low.
B.The IAM role for the endpoint does not have s3:PutObject permission.
C.The capture status is 'Configured' but not 'Running'.
D.The endpoint is not receiving any traffic.
AnswerB

Without write permission, captured data cannot be written to S3.

Why this answer

The most likely cause is that the IAM role associated with the SageMaker endpoint lacks the `s3:PutObject` permission. Without this permission, the endpoint can generate capture data internally but cannot write it to the specified S3 bucket, resulting in no captured data appearing even though predictions are returned successfully.

Exam trap

The trap here is that candidates often focus on sampling percentages or traffic volume, but the core issue is almost always an IAM permissions misconfiguration when predictions succeed but data capture fails silently.

How to eliminate wrong answers

Option A is wrong because a low `InitialSamplingPercentage` would reduce the amount of data captured, not eliminate it entirely; some data would still appear in S3. Option C is wrong because the capture status 'Configured' is the expected state for a properly enabled data capture configuration; there is no 'Running' status for capture itself—capture runs automatically when the endpoint is active. Option D is wrong because the endpoint is returning predictions, which directly indicates it is receiving traffic; if there were no traffic, no predictions would be returned.

145
MCQhard

An ML engineer is preparing a time-series dataset for a forecasting model that predicts daily sales for the next 30 days. The dataset contains 3 years of daily sales data. Which data splitting strategy should the engineer use to evaluate the model's performance on future data?

A.Leave-one-out cross-validation
B.Random 80/20 train-test split
C.Stratified k-fold cross-validation
D.Walk-forward validation (time-series split)
AnswerD

Walk-forward validation sequentially trains on past and validates on future, mimicking the forecasting scenario.

Why this answer

Walk-forward validation (also called time-series cross-validation) respects temporal order and uses expanding or sliding windows to simulate sequential forecasting. Random holdout or k-fold would leak future information into training.

146
Multi-Selectmedium

A company wants to secure access to a SageMaker real-time endpoint. Which TWO actions should be taken? (Select two.)

Select 2 answers
A.Use an IAM role with sts:AssumeRole for invocation.
B.Attach a resource-based policy to the endpoint.
C.Enable AWS WAF on the endpoint.
D.Use AWS CloudTrail to log all invocations.
E.Configure the endpoint to be private within a VPC and use VPC endpoints.
AnswersB, E

Resource-based policies on SageMaker endpoints allow you to specify which IAM principals can invoke the endpoint.

Why this answer

SageMaker real-time endpoints support resource-based policies, which allow you to control access at the endpoint level by specifying which IAM principals can invoke the endpoint. This is similar to how you attach a policy to an S3 bucket or an SQS queue, providing granular access control without requiring the caller to assume a role.

Exam trap

The trap here is that candidates often confuse sts:AssumeRole with direct invocation permissions, or think that AWS WAF can be applied to any AWS service endpoint, when in fact SageMaker endpoints are not supported by WAF.

147
MCQmedium

A company runs a batch inference job on 10 TB of image data stored in S3. Each image needs to be processed by a GPU-accelerated model. The job is not time-sensitive and cost is the primary concern. Which SageMaker option is MOST appropriate?

A.SageMaker Serverless Inference
B.SageMaker Batch Transform with GPU instance and spot instances
C.SageMaker Async Inference with GPU
D.SageMaker real-time endpoint on GPU instances
AnswerB

Why this answer

Batch Transform with GPU spot instances is the most cost-effective choice for a non-time-sensitive, large-scale batch inference job on 10 TB of data. Spot instances offer up to 90% cost savings over on-demand, and Batch Transform natively handles splitting the dataset, distributing work across instances, and writing results to S3 without requiring a persistent endpoint.

Exam trap

The trap here is that candidates confuse 'batch inference' with 'async inference' and choose Option C, not realizing that Async Inference still requires a running endpoint and is designed for near-real-time processing, not cost-optimized offline batch jobs.

How to eliminate wrong answers

Option A is wrong because SageMaker Serverless Inference is designed for intermittent, low-latency workloads with a maximum payload size of 6 MB and a maximum concurrency of 200, making it unsuitable for processing 10 TB of image data. Option C is wrong because SageMaker Async Inference is optimized for near-real-time requests with large payloads (up to 1 GB) and requires a persistent endpoint, incurring higher costs than a batch job that can use spot instances. Option D is wrong because SageMaker real-time endpoints are provisioned 24/7 and designed for low-latency, high-throughput serving, which is wasteful and expensive for a non-time-sensitive batch job that can tolerate startup delays and interruptions.

148
MCQeasy

A team is developing a model to predict customer churn. The dataset has 10,000 samples with 20 features. The target variable is binary with 15% churn rate. The team wants to use logistic regression. Which data preprocessing step is MOST important to ensure proper convergence?

A.Remove correlated features to reduce multicollinearity
B.Impute missing values with the median
C.Apply SMOTE to balance the classes
D.Standardize the features to have zero mean and unit variance
AnswerD

Standardization ensures gradient descent converges faster and avoids dominance by large-scale features.

Why this answer

Logistic regression uses gradient descent or similar optimization algorithms that rely on the scale of the features. When features have different units or magnitudes, the cost function becomes elongated, causing slow or unstable convergence. Standardizing to zero mean and unit variance ensures that all features contribute equally to the gradient updates, leading to faster and more reliable convergence.

Exam trap

AWS often tests the misconception that class imbalance is the primary barrier to convergence, when in fact feature scaling is the fundamental requirement for optimization algorithms in logistic regression.

How to eliminate wrong answers

Option A is wrong because while multicollinearity can inflate standard errors in logistic regression, it does not prevent convergence; the model can still converge with correlated features, though interpretation may suffer. Option B is wrong because imputing missing values with the median is a general preprocessing step but is not the most critical for convergence; logistic regression can handle missing data through other methods, and median imputation does not address the scale issue. Option C is wrong because SMOTE addresses class imbalance, which affects model bias and performance metrics, but logistic regression can converge perfectly well on imbalanced data; the optimizer does not require balanced classes for convergence.

149
MCQeasy

A company wants to use SageMaker to serve real-time predictions with a model that has a large memory footprint. They need to ensure the endpoint can handle traffic spikes. Which scaling policy should they use?

A.Simple scaling policy
B.Scheduled scaling policy
C.Target tracking policy
D.Step scaling policy
AnswerC

Target tracking automatically adjusts capacity to maintain a target metric value.

Why this answer

Target tracking scaling policy is the correct choice because it automatically adjusts the number of instances in the SageMaker endpoint based on a target metric, such as InvocationsPerInstance or ModelLatency, to handle traffic spikes without manual intervention. This policy is ideal for real-time inference with large memory models because it dynamically scales resources up or down to maintain the target metric, ensuring consistent performance during unpredictable traffic bursts.

Exam trap

The trap here is that candidates often confuse step scaling with target tracking, assuming step scaling is more responsive for spikes, but target tracking is actually the recommended and simpler approach for handling unpredictable traffic in SageMaker real-time endpoints.

How to eliminate wrong answers

Option A is wrong because simple scaling policy only triggers a single adjustment based on a CloudWatch alarm breach and then waits for a cooldown period, which cannot handle rapid traffic spikes effectively and may lead to under- or over-provisioning. Option B is wrong because scheduled scaling policy adjusts capacity at predetermined times, which is unsuitable for unpredictable traffic spikes that do not follow a fixed schedule. Option D is wrong because step scaling policy requires defining multiple step adjustments with thresholds, which is more complex to configure and may not react as smoothly to sudden spikes compared to target tracking, which continuously adjusts to maintain a target metric.

150
MCQmedium

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

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

BYOC allows full control over the container, including custom PyTorch versions.

Why this answer

BYOC (Bring Your Own Container) allows teams to package their own environment, including custom PyTorch versions, into a Docker container and use it with SageMaker.

Page 1

Page 2 of 12

Page 3