































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































































Question 1 A company is building a real-time fraud detection system that ingests 50,000 transactions per second from multiple global sources. The ML engineer needs to ingest streaming data, perform feature engineering, and store features for both real-time inference (sub-10ms latency) and batch model retraining. Which combination of AWS services is MOST appropriate? A. Amazon MSK → AWS Lambda → Amazon S3 (batch) and Amazon ElastiCache (online) B. Amazon Kinesis Data Streams → Amazon Managed Service for Apache Flink → SageMaker Feature Store (online and offline) C. Amazon Kinesis Data Firehose → AWS Glue Streaming → Amazon DynamoDB (online) and S (batch) D. Amazon SQS → AWS Lambda → SageMaker Feature Store (online only) Correct Answer: B
Rationale: Kinesis Data Streams handles high-volume streaming ingestion. Managed Service for Apache Flink provides stateful stream processing for feature engineering. SageMaker Feature Store automatically writes to both online store (low-latency inference) and offline store (batch training). Option A uses MSK (overkill) and ElastiCache (not purpose-built for ML features). Option C uses Firehose (near-real-time, not true streaming). Option D uses SQS (message queuing, not streaming analytics). Question 2 An ML engineer has a dataset with 10 million rows and 500 columns stored as CSV in S3. The engineer needs to explore feature distributions, detect outliers, and generate correlation matrices before feature engineering. Which approach provides the MOST efficient interactive exploration? A. Load the full dataset into a SageMaker notebook using pandas and Dask B. Use SageMaker Data Wrangler with sampling and built-in visualizations C. Use AWS Glue to convert CSV to Parquet and run Athena queries D. Use Amazon EMR with Spark and Jupyter notebooks Correct Answer: B Rationale: SageMaker Data Wrangler is purpose-built for visual data preparation at scale, providing built-in statistical summaries, outlier detection, and correlation matrices without extensive coding. Option A would struggle with 10M rows. Option C is for querying, not interactive EDA. Option D requires more operational overhead. Question 3 A healthcare company needs to detect and mitigate bias in their patient readmission model before deployment. The dataset contains protected attributes including race, gender, and age. Which SageMaker service should the ML engineer use? A. SageMaker Model Monitor B. SageMaker Clarify C. SageMaker Data Wrangler D. SageMaker Ground Truth
Rationale: AWS Glue Crawlers automatically scan data, infer schemas, and populate the Data Catalog. Athena queries the cataloged data. Option B is for transformation, not cataloging. Option C requires manual schema definition. Option D is for data warehousing. Question 6 An ML engineer needs to transform 5 TB of raw JSON logs into a structured Parquet format for model training. The transformation involves complex nested JSON parsing, joins, and aggregations across multiple sources. The workload runs daily and must be serverless and cost- effective. Which service should the engineer use? A. SageMaker Data Wrangler with scheduled data flows B. AWS Glue (Apache Spark-based ETL jobs) C. Amazon EMR with a transient cluster D. AWS Lambda functions orchestrated by Step Functions Correct Answer: B Rationale: AWS Glue provides serverless Spark-based ETL that handles complex transformations at scale. Data Wrangler is for interactive exploration, not large-scale ETL. EMR with transient clusters requires management. Lambda has memory/time limits. Question 7 A data scientist has created features using PySpark in an AWS Glue job. The ML engineer needs to make these features available for both online inference and batch training across multiple teams with versioning and governance. What should the engineer do? A. Save the features as Parquet files in S3 with a versioned folder structure B. Create a feature group in SageMaker Feature Store and ingest the features C. Store the features in Amazon RDS with IAM permissions D. Store the features in Amazon DynamoDB with TTL for versioning Correct Answer: B
Rationale: SageMaker Feature Store provides centralized feature management, versioning, governance, and consistent access for both training and inference. S3 folders lack governance and discovery. RDS/DynamoDB are not purpose-built for ML feature serving. Question 8 An ML engineer is working with a dataset that has 2,000 features. The engineer needs to reduce dimensionality while preserving 98% of the variance for a linear model. Which SageMaker capability should the engineer use? A. SageMaker Principal Component Analysis (PCA) B. SageMaker Linear Learner with L1 regularization C. SageMaker XGBoost with feature importance D. SageMaker Data Wrangler correlation analysis Correct Answer: A Rationale: SageMaker PCA is a built-in algorithm specifically for dimensionality reduction by identifying principal components that preserve maximum variance. L1 regularization selects features but doesn't reduce dimensionality. XGBoost importance helps select features but is not dimensionality reduction. Question 9 A company needs to label 5 million images for a computer vision model with high accuracy requirements. The labeling requires domain expertise and quality control with consensus among multiple labelers. Which SageMaker service should the ML engineer use? A. SageMaker Clarify B. SageMaker Ground Truth with custom labeling workflows C. SageMaker Data Wrangler D. SageMaker Feature Store Correct Answer: B
Question 12 An ML engineer is preparing time-series data for SageMaker DeepAR. The data is in Parquet format with columns: timestamp, series_id, and target_value. What data preparation step is REQUIRED before training? A. Convert Parquet to JSON Lines format B. Ensure data is sorted by timestamp within each series_id C. Normalize all target values to [0,1] range D. Convert timestamp to Unix epoch format Correct Answer: B Rationale: SageMaker DeepAR expects time-series data sorted chronologically for each time series (series_id). DeepAR accepts Parquet format. Normalization is optional. Timestamp format is flexible as long as it's sortable. Question 13 A company is building a model to predict rare equipment failures (1% failure rate). The dataset has 200,000 records with 80 features. The ML engineer needs to handle the class imbalance. Which approach is MOST appropriate? A. Remove all non-failure records to balance the dataset B. Apply SMOTE during data preparation to oversample the minority class C. Use class weights in the algorithm and evaluate with precision-recall AUC D. Duplicate failure records 100x to balance the dataset Correct Answer: C Rationale: Class weights address imbalance without altering data distribution and are evaluated with precision-recall AUC (better for imbalanced data). SMOTE is valid but typically applied during modeling. Removing records loses information. Simple duplication causes overfitting. Question 14
An ML engineer needs to stream real-time clickstream data into a feature store for an online recommendation model. The data volume is 20,000 events/second with moderate latency tolerance (under 1 second). Which ingestion pattern should the engineer use? A. Events written directly to S3, triggering Lambda to ingest into Feature Store B. Amazon Kinesis Data Streams → AWS Lambda → SageMaker Feature Store online store C. Amazon SQS FIFO queue → AWS Glue Streaming → SageMaker Feature Store D. Amazon MSK → Amazon EMR → SageMaker Feature Store Correct Answer: B Rationale: Kinesis Data Streams provides low-latency streaming ingestion. Lambda processes and ingests into the Feature Store online store. Direct S3 has high latency. SQS is for message queuing, not streaming. MSK+EMR adds unnecessary complexity. Question 15 An ML engineer has created a feature group in SageMaker Feature Store with both online and offline stores enabled. The engineer needs to ensure features are consistently available for training jobs that run every hour. What should the engineer configure? A. Schedule a Glue job to export online store data to the offline store B. Enable automatic offline store ingestion when ingesting records C. Use separate feature groups for online and offline use cases D. Use the offline store only and cache in Redis for inference Correct Answer: B Rationale: SageMaker Feature Store automatically writes to the offline store when records are ingested if properly configured. Option A requires manual scheduling. Option C creates management overhead. Option D adds complexity. Question 16 An ML engineer is preparing text data for a sentiment analysis model. The text contains emojis, URLs, hashtags, and inconsistent casing. Which data transformation pipeline is MOST appropriate?
C. Use SageMaker Data Wrangler visual join interface D. Use Amazon Athena to join the tables directly Correct Answer: B Rationale: AWS Glue with Spark efficiently joins large datasets using distributed processing. Converting CSV to Parquet improves performance. Pandas would run out of memory. Data Wrangler is for smaller datasets. Athena may time out on large joins. Question 19 A model trained on data from 2024 is showing degraded performance in 2026. The ML engineer suspects both data distribution and feature-target relationships have changed. Which SageMaker capabilities should the engineer use to investigate? A. SageMaker Model Monitor for data drift and model quality drift B. SageMaker Clarify for bias detection only C. SageMaker Experiments for comparison D. SageMaker Debugger for training analysis Correct Answer: A Rationale: Model Monitor's data quality monitoring detects input distribution changes (data drift) and model quality monitoring detects prediction performance changes (concept drift). Clarify detects bias, not drift. Experiments track training runs. Debugger debugs training. Question 20 An ML engineer needs to create a data pipeline that ingests from S3, RDS, and streaming Kinesis, performs feature engineering, and writes to SageMaker Feature Store. The pipeline must be serverless, orchestrated, and cost-effective. Which AWS service should the engineer use? A. Amazon EMR with Auto Scaling B. AWS Glue workflows with triggers C. SageMaker Processing Jobs D. AWS Data Pipeline
Correct Answer: B Rationale: AWS Glue workflows provide serverless orchestration of ETL jobs from multiple sources. EMR is not serverless. SageMaker Processing is SageMaker-specific. Data Pipeline is legacy. DOMAIN 2: ML MODEL DEVELOPMENT (26%) Question 21 An ML engineer is building a multiclass classification model on a dataset with 10 million rows and 300 features. The engineer needs a model that provides feature importance, handles missing values natively, and performs well with mixed data types. Which SageMaker built-in algorithm should the engineer use? A. SageMaker Linear Learner B. SageMaker XGBoost C. SageMaker DeepAR D. SageMaker K-Means Correct Answer: B Rationale: SageMaker XGBoost provides feature importance, handles missing values natively, and performs well with mixed data types. Linear Learner is less powerful for complex relationships. DeepAR is for time series. K-Means is for clustering. Question 22 A company needs to train a computer vision model using a custom PyTorch architecture on 15 TB of image data. Training on a single p4d.24xlarge instance takes 10 days. The ML engineer needs to reduce training time to under 48 hours. What should the engineer do? A. Use a larger GPU instance (e.g., p5.48xlarge) B. Use SageMaker distributed training with data parallelism and model parallelism C. Use SageMaker Training Compiler only D. Use a smaller batch size to speed up each epoch
Rationale: SageMaker Experiments provides tracking and comparison of training runs, including metric visualization and search. Model Registry is for versioning after selection. Model Monitor is for production. Pipelines orchestrate workflows. Question 25 An ML engineer is training a deep learning model and notices that training accuracy is high (98%) but validation accuracy is low (72%). Which technique should the engineer apply FIRST? A. Increase the number of training epochs B. Add L2 regularization and increase dropout rate C. Increase the learning rate D. Remove the validation dataset Correct Answer: B Rationale: Large gap between training and validation accuracy indicates overfitting. L regularization and dropout are standard techniques to reduce overfitting. Increasing epochs worsens overfitting. Increasing learning rate can cause instability. Removing validation prevents evaluation. Question 26 A company wants to fine-tune a pre-trained foundation model from SageMaker JumpStart for legal document classification. The company has 5,000 labeled legal documents. Which approach should the ML engineer use? A. Train the model from scratch with the 5,000 documents B. Use SageMaker JumpStart fine-tuning with LoRA (Parameter-Efficient Fine-Tuning) C. Use SageMaker built-in BlazingText algorithm D. Use Amazon Comprehend custom classification Correct Answer: B Rationale: SageMaker JumpStart provides pre-trained foundation models. LoRA enables parameter-efficient fine-tuning with limited data. Training from scratch requires much more data. BlazingText is for word embeddings. Comprehend is a managed service.
Question 27 An ML engineer is using SageMaker Automatic Model Tuning (AMT) to optimize hyperparameters. The engineer has defined a range for learning_rate from 0.0001 to 0.1. Which tuning strategy should the engineer use for this parameter? A. Continuous parameter with uniform distribution B. Continuous parameter with logarithmic scale C. Integer parameter with uniform distribution D. Categorical parameter with discrete values Correct Answer: B Rationale: Learning rate typically spans orders of magnitude, so logarithmic scale is appropriate for efficient exploration. Uniform distribution is for parameters with linear effects. Integer parameters are for discrete values. Categorical is for unordered choices. Question 28 A financial services company is building a credit risk model. The ML engineer needs to explain individual predictions to regulators using feature contributions. Which SageMaker capability should the engineer use? A. SageMaker Clarify with SHAP-based explanations B. SageMaker Model Monitor for prediction quality C. SageMaker Debugger for training insights D. SageMaker Experiments for tracking Correct Answer: A Rationale: SageMaker Clarify provides model explainability using SHAP values, showing feature contributions for individual predictions. Model Monitor checks drift. Debugger debugs training. Experiments track runs. Question 29
B. Use a learning rate scheduler with warmup C. Decrease the batch size D. Use a different optimizer like SGD Correct Answer: B Rationale: A learning rate scheduler with warmup starts with a lower learning rate and gradually increases, helping escape plateaus. Simply increasing the learning rate may cause divergence. Decreasing batch size doesn't address learning rate issues. Question 32 A company has trained multiple model versions using SageMaker and now wants to register them in the Model Registry with training metrics, data lineage, and approval tracking. What should the ML engineer do? A. Store models in S3 with metadata in a separate DynamoDB table B. Use SageMaker Model Registry with model groups and model versions C. Use Amazon ECR with image tags for versioning D. Use AWS CodeArtifact for model storage Correct Answer: B Rationale: SageMaker Model Registry provides versioning, metadata storage, approval workflows, and integration with training jobs. S3+DynamoDB lacks integration. ECR is for containers, not model metadata. Question 33 An ML engineer is performing hyperparameter tuning for a deep learning model with 8 hyperparameters. The engineer has a budget for 30 training jobs. Which tuning strategy should the engineer use? A. Grid search over all 8 hyperparameters B. Random search with 30 random combinations C. Bayesian optimization with SageMaker AMT
D. Manual tuning based on intuition Correct Answer: C Rationale: SageMaker AMT uses Bayesian optimization to intelligently explore hyperparameter space, finding good configurations with fewer trials. Grid search is infeasible for 8 parameters. Random search is less efficient than Bayesian. Question 34 A company is building a model to predict customer lifetime value. The dataset has 500 features with high multicollinearity. The ML engineer needs to reduce feature redundancy while maintaining interpretability. Which technique should the engineer use? A. Principal Component Analysis (PCA) B. Feature selection using correlation matrix and variance inflation factor (VIF) C. L1 regularization (Lasso) D. Autoencoders Correct Answer: B Rationale: Correlation matrix and VIF identify and remove highly correlated features while maintaining interpretability. PCA creates uninterpretable components. L1 regularization is less interpretable. Autoencoders are for unsupervised learning. Question 35 An ML engineer is training a model using SageMaker with Managed Spot Training. The training job was interrupted twice due to Spot Instance termination. What happens to the training job? A. The job fails and must be restarted from scratch B. SageMaker automatically resumes the job from the last checkpoint C. The job is automatically retried with On-Demand instances D. The job completes with partial results Correct Answer: B
Question 38 A company is training a model to predict house prices. The target variable is right-skewed with a long tail of expensive houses. Which loss function should the engineer consider? A. Mean Squared Error (MSE) B. Mean Absolute Error (MAE) C. Huber loss D. Log-Cosh loss Correct Answer: D Rationale: Log-Cosh loss combines benefits of MSE (smooth) and MAE (robust to outliers), working well with skewed targets. MSE is sensitive to outliers. MAE is less smooth for optimization. Huber loss requires threshold tuning. Question 39 An ML engineer is using SageMaker Experiments to track training runs. The engineer wants to visualize the relationship between learning rate and validation accuracy across 50 experiments. What should the engineer do? A. Export all experiments to CSV and create a plot manually B. Use SageMaker Experiments built-in visualization to plot hyperparameters vs. metrics C. Use CloudWatch Logs Insights to query metrics D. Use SageMaker Model Monitor to track accuracy Correct Answer: B Rationale: SageMaker Experiments provides built-in visualization for comparing hyperparameters and metrics across trials. Manual export is inefficient. CloudWatch Logs is for logs. Model Monitor is for production. Question 40
A pharmaceutical company needs to train a model that is fully auditable with FDA-level reproducibility. The ML engineer must track code version, data version, hyperparameters, training environment, and lineage for every model. Which SageMaker feature should the engineer use? A. SageMaker Model Registry B. SageMaker ML Lineage Tracking C. SageMaker Experiments D. SageMaker Model Monitor Correct Answer: B Rationale: SageMaker ML Lineage Tracking captures end-to-end relationships between data, code, models, and training jobs for full reproducibility. Model Registry focuses on model versions. Experiments track runs but lineage connects everything. Question 41 An ML engineer is training an XGBoost model and wants to use cross-validation for hyperparameter tuning. Which SageMaker capability supports this? A. SageMaker built-in XGBoost with cross-validation parameter B. SageMaker Automatic Model Tuning with cross-validation C. SageMaker Experiments with manual CV implementation D. SageMaker Debugger with CV analysis Correct Answer: B Rationale: SageMaker Automatic Model Tuning supports cross-validation strategies for hyperparameter optimization. Built-in XGBoost has limited CV. Manual CV is less efficient. Debugger is for debugging. Question 42 A company has a dataset with categorical features that have 100,000 unique values (e.g., product IDs). The ML engineer needs to encode these features for an XGBoost model. Which encoding technique should the engineer use?