Discover the essentials of AWS Amazon SageMaker MCQ questions and answers focused on monitoring, optimization, and best practices. Learn about cost optimization strategies, model drift detection, and ensuring security and compliance. These questions are ideal for preparing for AWS certification exams or enhancing your knowledge of SageMaker in practical use cases.
AWS Amazon SageMaker MCQs
Cost Optimization Strategies
Which feature of Amazon SageMaker helps optimize training costs? a) Using spot instances b) Using on-demand instances c) Enabling auto-scaling d) Disabling instance profiling
What does SageMaker’s “Managed Spot Training” feature do? a) Reduces costs by using spot instances b) Enables GPU usage during training c) Automatically scales training jobs d) Improves prediction accuracy
How can you minimize SageMaker hosting costs? a) Use always-on endpoint deployment b) Enable multi-AZ replication c) Use inference pipelines with serverless endpoints d) Switch to the highest instance type available
Which AWS tool can you use to monitor and optimize SageMaker costs? a) AWS CloudWatch b) AWS Cost Explorer c) AWS Trusted Advisor d) All of the above
What is a common approach to optimize data preprocessing costs in SageMaker? a) Use large instance types b) Use serverless data processing c) Preprocess data on EC2 instances outside of SageMaker d) Disable preprocessing entirely
Model Drift Detection
What is model drift in the context of machine learning? a) A model’s inability to handle large datasets b) A decrease in a model’s prediction accuracy over time c) An increase in model training time d) A model’s sudden shutdown during inference
How can you detect model drift in SageMaker? a) Use built-in monitoring capabilities b) Regularly retrain models without validation c) Deploy additional endpoints d) Reduce the number of prediction inputs
Which SageMaker service helps monitor models in production for drift? a) SageMaker Debugger b) SageMaker Model Monitor c) SageMaker Clarify d) SageMaker Pipelines
What metric is crucial to monitor when detecting model drift? a) Endpoint throughput b) Model training time c) Distribution of prediction inputs vs. training data d) Network bandwidth
How often should models be monitored for drift in SageMaker? a) Every second b) Based on model use case and performance requirements c) Once a year d) Only after model deployment
Security and Compliance Best Practices
What AWS feature can help secure your SageMaker notebooks? a) Using private VPC endpoints b) Disabling multi-factor authentication c) Enabling public IPs for all instances d) Using spot instances
How can you encrypt data at rest in SageMaker? a) Use server-side encryption with AWS KMS b) Use an encrypted S3 bucket c) Both a and b d) SageMaker does not support encryption
What is a key best practice for managing SageMaker user permissions? a) Grant full access to all users b) Use fine-grained access control with AWS IAM c) Disable role-based access d) Enable anonymous access
Which compliance standard is Amazon SageMaker certified for? a) ISO 27001 b) HIPAA c) SOC 2 d) All of the above
How can you ensure secure API access to SageMaker endpoints? a) Use signed AWS API requests b) Use publicly accessible endpoints c) Disable encryption d) Remove all IAM policies
What role does AWS CloudTrail play in SageMaker security? a) Provides endpoint scaling metrics b) Logs API calls for auditing purposes c) Monitors model drift d) Reduces training costs
What is the purpose of enabling VPC connectivity for SageMaker? a) To scale instances dynamically b) To isolate SageMaker resources in a private network c) To improve model accuracy d) To increase cost optimization
Which service integration is recommended for auditing SageMaker activities? a) AWS Config b) AWS CloudTrail c) AWS Trusted Advisor d) AWS CodeDeploy
How can SageMaker ensure compliance with data residency requirements? a) By storing data only in predefined regions b) By enabling multi-region replication c) By encrypting data with a global key d) SageMaker cannot ensure data residency compliance
What is the best practice for storing SageMaker model artifacts securely? a) Store them in unencrypted S3 buckets b) Store them in an encrypted S3 bucket with restricted access c) Use Amazon Glacier d) Store them on EC2 instances
Which AWS service helps manage secrets like database credentials used in SageMaker? a) AWS Secrets Manager b) AWS Key Management Service (KMS) c) AWS Config d) AWS Glue
What is a recommended approach to managing SageMaker endpoint keys? a) Keep keys hardcoded in your application b) Rotate keys regularly using AWS Secrets Manager c) Disable key rotation d) Store keys in a publicly accessible repository
Which AWS feature enhances compliance auditing in SageMaker environments? a) AWS CloudTrail logs b) AWS KMS encryption c) AWS Elastic Beanstalk d) AWS S3 lifecycle policies
How can you restrict access to sensitive SageMaker datasets? a) Use IAM policies with explicit deny rules b) Remove all IAM policies c) Store data in public S3 buckets d) Use minimal logging
What feature ensures that SageMaker resources comply with organizational policies? a) AWS Organizations service control policies (SCPs) b) Using public EC2 instances c) Automatic data sharing d) Enabling unrestricted access
Answers
QNo
Answer (Option with Text)
1
a) Using spot instances
2
a) Reduces costs by using spot instances
3
c) Use inference pipelines with serverless endpoints
4
d) All of the above
5
c) Preprocess data on EC2 instances outside of SageMaker
6
b) A decrease in a model’s prediction accuracy over time
7
a) Use built-in monitoring capabilities
8
b) SageMaker Model Monitor
9
c) Distribution of prediction inputs vs. training data
10
b) Based on model use case and performance requirements
11
a) Using private VPC endpoints
12
c) Both a and b
13
b) Use fine-grained access control with AWS IAM
14
d) All of the above
15
a) Use signed AWS API requests
16
b) Logs API calls for auditing purposes
17
b) To isolate SageMaker resources in a private network
18
b) AWS CloudTrail
19
a) By storing data only in predefined regions
20
b) Store them in an encrypted S3 bucket with restricted access
21
a) AWS Secrets Manager
22
b) Rotate keys regularly using AWS Secrets Manager
23
a) AWS CloudTrail logs
24
a) Use IAM policies with explicit deny rules
25
a) AWS Organizations service control policies (SCPs)