Machine Learning Specialty · 20% of the exam

Machine Learning Implementation and Operations: free practice questions

5 sample questions from our 12-question bank for this domain — answers and explanations included. These are the same scenario-based style as the real AWS exam.

1. A company runs a SageMaker endpoint that serves a product recommendation model. During peak shopping seasons, traffic can increase 10x within minutes. The team wants the endpoint to automatically scale based on the number of invocations per instance. Which auto scaling policy type should they configure, and which metric should they use as the scaling target?

  • A. Step scaling policy targeting CPUUtilization
  • B. Target tracking policy targeting InvocationsPerInstance✓ Correct
  • C. Target tracking policy targeting MemoryUtilization
  • D. Scheduled scaling policy targeting a fixed instance count
Explanation

Target tracking policy targeting InvocationsPerInstance is correct because SageMaker exposes InvocationsPerInstance as a CloudWatch metric specifically for auto scaling, and target tracking automatically adjusts capacity to keep the metric at a defined target value, which is the recommended approach for SageMaker endpoints. Step scaling policy targeting CPUUtilization is wrong because while step scaling is valid for some AWS services, SageMaker endpoint auto scaling best practice uses target tracking, and CPUUtilization is not a published SageMaker endpoint metric. Target tracking targeting MemoryUtilization is wrong because MemoryUtilization is not a built-in SageMaker endpoint CloudWatch metric and cannot be used directly for endpoint auto scaling without custom metrics. Scheduled scaling is wrong because it cannot react dynamically to sudden, unpredictable spikes — it only scales at predefined times, which is insufficient for unexpected traffic surges.

2. A retail company operates a demand forecasting model deployed on a SageMaker endpoint. The model was trained on pre-pandemic data, but post-pandemic buying patterns have fundamentally and permanently changed. Model Monitor has flagged sustained data drift and the model's accuracy has declined significantly. A simple retraining on recent data also underperforms because the underlying data-generating process has changed. Which combination of actions BEST addresses this situation? (Select THREE)

  • A. Retrain the model using only recent post-pandemic data that reflects current buying patterns✓ Correct
  • B. Increase the endpoint's auto scaling maximum capacity to handle more inference requests
  • C. Re-evaluate and potentially re-engineer features to better capture post-pandemic consumer behavior✓ Correct
  • D. Use SageMaker Pipelines to schedule automated retraining every 24 hours on all historical data
  • E. Establish a new Model Monitor baseline using a recent representative dataset✓ Correct
  • F. Switch the deployment to a multi-model endpoint to host both old and new model versions simultaneously
Explanation

Retraining on only recent post-pandemic data is correct because when the underlying data distribution has permanently shifted (concept drift), training on historical pre-pandemic data would introduce noise and bias — the model needs to learn from data representative of the new regime. Re-evaluating and re-engineering features is correct because a fundamental change in consumer behavior may mean existing features no longer have predictive power; feature engineering aligned with new patterns is a necessary part of adapting to concept drift. Establishing a new Model Monitor baseline is correct because the original baseline reflects the old data distribution — monitoring against a stale baseline will generate irrelevant alerts or miss new issues; a fresh baseline from recent data is required for meaningful ongoing monitoring. Increasing auto scaling capacity is wrong because the problem is model accuracy (concept drift), not insufficient compute capacity — adding more instances will not improve predictions. Scheduling retraining every 24 hours on all historical data is wrong because including pre-pandemic data dilutes the training signal from the new distribution and does not address concept drift; it would perpetuate the problem. Switching to a multi-model endpoint for both old and new versions is wrong because the old model is known to be inaccurate under the new distribution — hosting it alongside the new model adds no value and could confuse A/B testing results.

3. A data science team deploys a SageMaker real-time endpoint hosting a fraud detection model. After deployment, SageMaker Model Monitor detects that the statistical distribution of incoming feature values has significantly shifted compared to the baseline captured during training. No retraining has occurred yet. Which type of monitor is detecting this condition?

  • A. Model Quality Monitor
  • B. Bias Drift Monitor
  • C. Data Quality Monitor✓ Correct
  • D. Feature Attribution Drift Monitor
Explanation

Data Quality Monitor is correct because it compares the statistical properties (distributions, missing values, data types) of live inference input data against a baseline computed from training data, which is exactly the scenario described. Model Quality Monitor is wrong because it measures prediction quality metrics (e.g., accuracy, F1) against ground-truth labels — it requires actual labels to be available after inference. Bias Drift Monitor is wrong because it tracks changes in bias metrics (e.g., disparate impact across demographic groups), not general feature distribution shift. Feature Attribution Drift Monitor is wrong because it uses SHAP values to detect changes in feature importance over time, not raw feature distribution statistics.

4. A healthcare company trains SageMaker models using sensitive patient data. The security team requires that all data in transit between SageMaker training instances and Amazon S3 must be encrypted, training jobs must not have internet access, and inter-node training traffic must also be encrypted. Which combination of SageMaker training job configuration settings satisfies ALL three requirements? (Select TWO)

  • A. Enable VPC configuration by specifying SubnetIds and SecurityGroupIds in the training job✓ Correct
  • B. Set EnableNetworkIsolation to True in the training job configuration
  • C. Set EnableInterContainerTrafficEncryption to True in the training job configuration✓ Correct
  • D. Configure an S3 VPC endpoint and enable server-side encryption on the S3 bucket
  • E. Attach an IAM policy to the SageMaker execution role that denies all outbound internet access
Explanation

Enable VPC configuration (SubnetIds and SecurityGroupIds) is correct because placing the training job inside a VPC with no internet gateway routes ensures training instances cannot reach the internet, and when combined with an S3 VPC endpoint, S3 traffic stays within the AWS network and is encrypted in transit via HTTPS. EnableInterContainerTrafficEncryption is correct because it explicitly encrypts the inter-node communication channel between distributed training instances, satisfying the third requirement. EnableNetworkIsolation is wrong because while it prevents outbound network access, it also blocks the training container from reaching S3, which means training data cannot be fetched — VPC configuration is the correct mechanism for internet isolation while retaining S3 access via VPC endpoints. Configuring an S3 VPC endpoint and enabling SSE on S3 alone is wrong because it addresses data-at-rest encryption and S3 routing but does not prevent internet access from the training instances by itself — VPC configuration is still required. Attaching an IAM policy that denies outbound internet access is wrong because IAM controls API-level permissions, not network-level traffic; it cannot enforce network isolation for training instance traffic.

5. A financial services company needs to build an end-to-end ML pipeline that includes data preprocessing, model training, model evaluation, conditional model registration (only if evaluation metrics meet a threshold), and deployment. The pipeline must be reproducible, auditable, and integrated with the company's existing CI/CD tooling. Which AWS service is MOST appropriate for orchestrating this workflow?

  • A. AWS Glue Workflows
  • B. Amazon Managed Workflows for Apache Airflow (MWAA)
  • C. Amazon SageMaker Pipelines✓ Correct
  • D. AWS Step Functions with Lambda
Explanation

SageMaker Pipelines is correct because it is a purpose-built CI/CD service for ML workflows that natively integrates with SageMaker training, processing, evaluation, Model Registry, and deployment steps. It automatically tracks lineage, supports conditional steps, and is designed for reproducible, auditable ML pipelines with built-in SageMaker integration. AWS Glue Workflows is wrong because Glue Workflows orchestrate ETL jobs (Glue crawlers and jobs), not SageMaker training and evaluation steps, and lacks native ML pipeline primitives. Amazon MWAA is wrong because while Airflow can orchestrate ML workflows, it requires significant custom setup to integrate with SageMaker and does not provide native lineage tracking or Model Registry integration out of the box — SageMaker Pipelines is more appropriate for SageMaker-centric ML pipelines. AWS Step Functions is wrong because while it can orchestrate SageMaker jobs via the SageMaker SDK integration, it lacks the native ML-specific features of SageMaker Pipelines such as automatic experiment tracking, lineage, and direct Model Registry integration.

7 more questions in this domain

Practice the full bank with instant grading, flashcards, and a timed mock exam.

Start practicing free