


































































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 financial services company collects millions of streaming transactions per second from multiple global sources. The ML engineer needs to ingest this data in real time, perform light transformation, and store it for both real-time feature lookup and batch training. Which combination of AWS services should the engineer use? A. Amazon Kinesis Data Streams → AWS Lambda → Amazon S3 (batch) and Amazon DynamoDB (online)
B. Amazon MSK → AWS Glue Streaming → Amazon S3 (batch) and SageMaker Feature Store (online) C. Amazon Kinesis Data Firehose → Amazon S3 → SageMaker Data Wrangler for transformation D. Amazon SQS → AWS Lambda → Amazon Redshift for both online and batch storage Correct Answer: B Rationale: Amazon MSK (managed Kafka) can handle high-volume streaming ingestion. AWS Glue Streaming provides serverless transformation, and SageMaker Feature Store supports both an online store (low-latency inference lookups) and an offline store (batch training data). Kinesis Data Streams + Lambda would not scale as efficiently for millions of events per second. Kinesis Firehose is for near-real-time delivery, not true streaming ingestion. SQS is message queuing, not designed for streaming analytics at this scale. Question 2 An ML engineer is preparing a dataset stored in CSV format in Amazon S3. The dataset contains 500 million rows with 200 columns. The engineer needs to perform exploratory data analysis, detect outliers, and generate statistical summaries before training. Which approach provides the MOST efficient processing? A. Load the entire dataset into a SageMaker notebook instance using pandas and perform EDA B. Use SageMaker Data Wrangler with a data flow to sample, analyze, and visualize the dataset C. Use AWS Glue to convert CSV to Parquet, then run Athena queries for statistical analysis D. Use Amazon EMR with Spark to process the full dataset and generate summary statistics Correct Answer: B Rationale: SageMaker Data Wrangler is purpose-built for visual data preparation at scale, providing built-in transforms, statistical summaries, and outlier detection without requiring extensive coding. Loading 500M rows into a notebook would cause memory issues. Glue + Athena is more suited for querying, not interactive EDA. EMR + Spark would work but requires more operational overhead than Data Wrangler's managed experience. Question 3
A company stores petabytes of unstructured data in Amazon S3. The ML engineer needs to catalog this data, infer schemas, and prepare it for machine learning pipelines. Which service should the engineer use? A. Amazon Athena B. AWS Glue Crawlers and Data Catalog C. SageMaker Data Wrangler D. Amazon EMR Correct Answer: B Rationale: AWS Glue Crawlers automatically scan data in S3, infer schemas, and populate the Glue Data Catalog. Athena queries the catalog but doesn't catalog data. Data Wrangler is for transformation, not cataloging. EMR requires manual schema definition. Question 6 An ML engineer needs to transform raw JSON logs into a structured format suitable for model training. The transformation involves complex joins, aggregations, and feature engineering across multiple data sources. The workload runs daily and must be 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 persistent cluster D. AWS Lambda functions orchestrated by Step Functions Correct Answer: B Rationale: AWS Glue provides serverless Spark-based ETL that can handle complex transformations, joins, and aggregations at scale. Data Wrangler is more suited for interactive exploration. EMR with persistent clusters is more expensive. Lambda has memory and time limits that would not support large-scale complex ETL. Question 7
A data scientist has created features using pandas in a SageMaker notebook. The ML engineer needs to make these features available for production model training and inference across multiple teams. What should the engineer do? A. Save the features as CSV files in S3 and share the S3 path B. Create a feature group in SageMaker Feature Store and ingest the features C. Store the features in Amazon RDS and grant IAM permissions to teams D. Package the features in a Docker container and share via ECR Correct Answer: B Rationale: SageMaker Feature Store provides centralized feature management, versioning, and consistent access for both training and inference. CSV files lack governance and versioning. RDS is not optimized for ML feature serving. Docker packaging is unnecessarily complex for feature sharing. Question 8 An ML engineer is working with a dataset that has 1,000 features. The engineer needs to reduce dimensionality while preserving 95% of the variance. Which SageMaker built-in capability or algorithm should be used? A. SageMaker Principal Component Analysis (PCA) B. SageMaker Linear Learner C. SageMaker XGBoost with feature importance D. SageMaker Data Wrangler correlation analysis Correct Answer: A Rationale: SageMaker PCA is a built-in algorithm specifically designed for dimensionality reduction by identifying principal components that preserve maximum variance. Linear Learner is for regression/classification, not dimensionality reduction. XGBoost feature importance helps select features but doesn't reduce dimensionality. Data Wrangler correlation is exploratory, not a dimensionality reduction technique. Question 9
A multinational e-commerce company has customer data stored in S3 across multiple AWS regions. The ML engineer needs to aggregate this data into a single data lake for global model training while minimizing data transfer costs. What should the engineer do? A. Use S3 Cross-Region Replication to copy all data to a single region B. Use AWS Glue to query data in place using S3 Select C. Use S3 Transfer Acceleration to speed up data movement D. Use AWS Lake Formation to centralize data access with cross-region queries Correct Answer: B Rationale: AWS Glue can query data across S3 buckets in different regions using S3 Select, minimizing data transfer by pushing computation to the storage layer. Cross-Region Replication incurs transfer costs. Transfer Acceleration speeds transfer but doesn't eliminate costs. Lake Formation is for data governance, not cross-region data aggregation. Question 12 An ML engineer is preparing time-series data for a forecasting model using SageMaker DeepAR. The data is in CSV format with columns: timestamp, item_id, and target_value. What data transformation is required before training? A. Convert CSV to JSON Lines format as DeepAR requires JSON input B. Convert CSV to Parquet format for optimal performance C. Ensure the data is sorted by timestamp within each item_id D. Normalize all target values to [0,1] range Correct Answer: C Rationale: SageMaker DeepAR expects time-series data sorted chronologically for each time series (item_id). DeepAR accepts JSON Lines or Parquet formats, but CSV is also supported with proper sorting. Normalization is optional and not required. Question 13
A company wants to build a model that predicts customer churn. The dataset has 100, records with 50 features. The ML engineer notices that the target variable is highly imbalanced (5% churn, 95% non-churn). Which data preparation technique should the engineer apply? A. Remove all non-churn records to balance the dataset B. Apply SMOTE (Synthetic Minority Over-sampling) during data preparation C. Use class weights in the algorithm instead of modifying the dataset D. Duplicate churn records to increase minority class representation Correct Answer: C Rationale: Using class weights in the algorithm is a best practice for imbalanced data as it doesn't alter the dataset distribution. SMOTE is a valid technique but is typically applied during modeling, not data preparation. Removing records loses information. Simple duplication can cause overfitting. Question 14 An ML engineer needs to stream real-time data from IoT devices into a feature store for a predictive maintenance model. The data volume is moderate (10,000 events/second) and must be ingested with minimal latency. Which ingestion pattern should the engineer use? A. IoT devices write directly to S3, then trigger Lambda to ingest into Feature Store B. Use Amazon Kinesis Data Streams → AWS Lambda → SageMaker Feature Store online store C. Use Amazon SQS → AWS Glue Streaming → SageMaker Feature Store D. Use Amazon MQ → Amazon EMR → SageMaker Feature Store Correct Answer: B Rationale: Kinesis Data Streams provides low-latency streaming ingestion. Lambda can process and ingest records into the Feature Store online store for real-time availability. Direct S3 writes have high latency. SQS is for message queuing, not streaming. MQ is for message brokering, not optimized for streaming analytics. Question 15
A company stores sensitive customer data in S3 that will be used for model training. The ML engineer must ensure data is encrypted at rest and in transit, and access is restricted to authorized users only. Which security measures should the engineer implement? A. S3 server-side encryption with S3-managed keys (SSE-S3) and bucket policies B. S3 server-side encryption with KMS (SSE-KMS), IAM policies, and VPC endpoints C. Client-side encryption and S3 access logs D. S3 default encryption and AWS CloudTrail only Correct Answer: B Rationale: SSE-KMS provides centralized key management with audit capabilities. IAM policies enforce least-privilege access. VPC endpoints keep traffic private. SSE-S3 lacks KMS audit trail. Client-side encryption is complex to manage. CloudTrail alone doesn't enforce access control. Question 18 An ML engineer is joining two large datasets: one with 100 million records in Parquet format and another with 50 million records in CSV format. The join key is a string column. Which approach provides the BEST performance? A. Load both datasets into pandas and perform a merge operation B. Convert CSV to Parquet, then use AWS Glue with Spark to perform the join 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 can efficiently join large datasets using distributed processing. Converting CSV to Parquet improves performance due to columnar storage. 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 the data distribution has changed. Which SageMaker capability should the engineer use to detect this?
A. SageMaker Model Monitor data drift detection B. SageMaker Clarify bias detection C. SageMaker Experiments D. SageMaker Debugger Correct Answer: A Rationale: SageMaker Model Monitor detects data drift by comparing live inference data against training data baselines. Clarify detects bias, not drift. Experiments track model versions. Debugger debugs training, not production drift. Question 20 An ML engineer needs to create a data pipeline that ingests data from multiple sources (S3, RDS, and streaming Kinesis), transforms it, and makes it available for training. The pipeline must be serverless and cost-effective. Which AWS service should the engineer use? A. Amazon EMR with Auto Scaling B. AWS Glue workflows C. SageMaker Processing Jobs D. AWS Data Pipeline Correct Answer: B Rationale: AWS Glue workflows provide serverless orchestration of ETL jobs that can ingest from multiple sources. EMR is not serverless. SageMaker Processing is for SageMaker-specific processing. Data Pipeline is legacy and not serverless. DOMAIN 2: ML MODEL DEVELOPMENT (26%) Question 21 An ML engineer is building a binary classification model on a dataset with 5 million rows and 150 features. The engineer needs a model that is interpretable and provides feature importance scores. Which SageMaker built-in algorithm should the engineer use?
B. SageMaker Inference Recommender C. SageMaker Model Monitor D. SageMaker Clarify Correct Answer: A Rationale: SageMaker Neo compiles and optimizes models for specific hardware targets, reducing model size and improving inference speed. Inference Recommender suggests instance types. Model Monitor is for drift detection. Clarify is for bias and explainability. Question 24 A data scientist has trained multiple model versions using SageMaker Experiments. The ML engineer needs to compare these experiments and select the best model based on validation accuracy. Which SageMaker capability should the engineer use? A. SageMaker Model Registry B. SageMaker Experiments with trial comparisons C. SageMaker Model Monitor D. SageMaker Pipelines Correct Answer: B Rationale: SageMaker Experiments provides tracking and comparison of training runs, including metrics visualization. Model Registry is for model versioning after selection. Model Monitor is for production monitoring. Pipelines orchestrate workflows. Question 25 An ML engineer is training a model with 10 million parameters. The engineer notices that the model is overfitting the training data. Which technique should the engineer apply? A. Increase the number of training epochs B. Add L2 regularization and increase the dropout rate C. Increase the learning rate D. Remove the validation dataset
Correct Answer: B Rationale: L2 regularization and dropout are standard techniques to reduce overfitting. Increasing epochs worsens overfitting. Increasing learning rate can cause instability. Removing validation prevents proper evaluation. Question 26 A company wants to fine-tune a pre-trained foundation model from SageMaker JumpStart for a domain-specific text classification task. The company has 10,000 labeled examples. Which approach should the ML engineer use? A. Train the model from scratch with the 10,000 examples B. Use SageMaker JumpStart fine-tuning with the pre-trained model C. Use SageMaker built-in BlazingText algorithm D. Use Amazon Comprehend custom classification Correct Answer: B Rationale: SageMaker JumpStart provides pre-trained foundation models that can be fine-tuned with domain-specific data. Training from scratch requires much more data. BlazingText is for word embeddings, not fine-tuning. Comprehend is a managed service, not fine-tuning. Question 27 An ML engineer is using SageMaker Automatic Model Tuning (AMT) to optimize hyperparameters for an XGBoost model. The engineer has defined a hyperparameter range for max_depth from 3 to 10. Which tuning strategy should the engineer use for this integer parameter? A. Continuous parameter with uniform distribution B. Integer parameter with uniform distribution C. Categorical parameter with values [3,4,5,6,7,8,9,10] D. Continuous parameter with logarithmic scale Correct Answer: B
Question 30 A data scientist has developed a custom training script using PyTorch. The ML engineer needs to run this script on SageMaker without modifying the script. Which SageMaker training approach should the engineer use? A. SageMaker built-in algorithms B. SageMaker Bring Your Own Container (BYOC) C. SageMaker Script Mode D. SageMaker JumpStart Correct Answer: C Rationale: SageMaker Script Mode allows running custom PyTorch (or TensorFlow) scripts with minimal modifications. BYOC requires containerization. Built-in algorithms don't support custom scripts. JumpStart is for pre-trained models. Question 31 An ML engineer is training a model and notices that training loss is not decreasing after several epochs. The engineer suspects a vanishing gradient problem. What should the engineer do? A. Increase the learning rate B. Use batch normalization layers C. Decrease the model depth D. Use a different optimizer like SGD Correct Answer: B Rationale: Batch normalization helps mitigate vanishing gradients by normalizing layer inputs. Increasing learning rate may cause divergence. Decreasing depth is a workaround, not a solution. SGD may not help with vanishing gradients. Question 32
A company has trained a model using SageMaker and now wants to register it in the Model Registry with metadata including training metrics, data lineage, and approval status. What should the ML engineer do? A. Store the model in S3 with metadata in a separate JSON file 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, and approval workflows. S3 + JSON lacks governance. ECR is for containers, not model metadata. CodeArtifact is for software packages. Question 33 An ML engineer is performing hyperparameter tuning for a deep learning model. The engineer has 10 hyperparameters to tune but only a limited budget for 50 training jobs. Which tuning strategy should the engineer use? A. Grid search over all 10 hyperparameters B. Random search with 50 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 than grid or random search. Grid search is infeasible for 10 parameters. Random search is less efficient than Bayesian. Manual tuning is not scalable. Question 34
A data scientist has trained a PyTorch model on a large dataset using multiple GPUs with SageMaker's distributed training. The engineer notices that GPU utilization is uneven, with some GPUs idle while others are busy. What should the engineer investigate? A. Increase the batch size B. Use SageMaker distributed data parallelism with sharded data C. Check for data loading bottlenecks D. Use model parallelism instead Correct Answer: C Rationale: Uneven GPU utilization often indicates data loading bottlenecks where some workers finish data loading faster than others. Data parallelism with proper sharding should balance load. Model parallelism is for models that don't fit on a single GPU, not for load balancing. Question 37 An ML engineer needs to train a model using a custom algorithm packaged in a Docker container. The algorithm requires specific hardware (GPU) and libraries not available in SageMaker's built-in images. Which approach should the engineer use? A. SageMaker built-in algorithms with hyperparameter overrides B. SageMaker Bring Your Own Container (BYOC) C. SageMaker Script Mode with custom requirements D. SageMaker JumpStart custom model Correct Answer: B Rationale: SageMaker BYOC allows training with custom Docker containers containing any libraries or dependencies. Built-in algorithms don't support custom code. Script Mode is limited to supported frameworks. JumpStart is for pre-trained models. Question 38 A company is training a model to predict customer lifetime value. The target variable is highly skewed, with most customers having low value and a few having very high value. Which loss function should the engineer consider?
A. Mean Squared Error (MSE) B. Huber loss C. Log-Cosh loss D. Quantile loss at the 90th percentile Correct Answer: D Rationale: Quantile loss at the 90th percentile would focus on predicting high-value customers accurately, which is often the business priority. MSE is sensitive to outliers. Huber loss is robust but doesn't address skew. Log-Cosh is similar to Huber. Question 39 An ML engineer is using SageMaker Experiments to track training runs. The engineer wants to visualize how validation accuracy changes with different learning rates across all 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 compare 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, not experiment comparison. Model Monitor is for production. Question 40 A financial company needs to train a model that must be auditable with full reproducibility. The ML engineer must track code version, data version, hyperparameters, and training environment for every model. Which SageMaker feature should the engineer use? A. SageMaker Model Registry B. SageMaker ML Lineage Tracking