Dive into these AWS Amazon SageMaker MCQ questions and answers designed to cover essential topics such as Model Deployment, Hosting Models on SageMaker, Scaling and Monitoring Endpoints, and A/B Testing and Model Updates. Perfect for developers, data scientists, and cloud enthusiasts aiming to master SageMaker concepts for certifications and beyond.
4. Model Deployment
1-10: Hosting Models on SageMaker
What is the primary purpose of hosting a model on Amazon SageMaker? a) To build machine learning models b) To deploy and serve machine learning models for predictions c) To store training datasets d) To visualize data
Which SageMaker feature allows models to be hosted with automatic scaling? a) SageMaker Training Jobs b) SageMaker Endpoints c) SageMaker Pipelines d) SageMaker Feature Store
How are models typically deployed to an endpoint in SageMaker? a) By uploading them to S3 b) By creating a SageMaker hosting endpoint c) By configuring an EC2 instance manually d) By using AWS Batch
Which SageMaker resource is used to configure the hardware for hosting models? a) Endpoint configuration b) Training job configuration c) Notebook instance d) Feature group
What is the main benefit of SageMaker Multi-Model Endpoints? a) Reduced latency for inference b) Hosting multiple models on a single endpoint c) Increased accuracy for model predictions d) Integration with S3 buckets
What type of input does a SageMaker endpoint typically accept for predictions? a) Structured query language (SQL) b) Application programming interface (API) calls c) CloudFormation templates d) Docker containers
How can you secure access to SageMaker endpoints? a) By using IAM policies and VPC configurations b) By enabling public access c) By encrypting S3 buckets d) By setting up EC2 key pairs
What format must a trained model be in before deploying on SageMaker? a) JSON b) Serialized model artifacts c) CSV d) Text file
Which AWS service is often used alongside SageMaker for secure storage of model artifacts? a) Amazon RDS b) Amazon S3 c) AWS Glue d) Amazon Redshift
What is the main use of the SageMaker runtime API? a) To monitor endpoint metrics b) To make inference requests to a deployed model c) To visualize training jobs d) To build pipelines for data preparation
11-18: Scaling and Monitoring Endpoints
Which feature in SageMaker automatically adjusts the number of instances for an endpoint based on demand? a) Auto Scaling for Endpoints b) Endpoint Replication c) Load Balancer Scaling d) Multi-AZ Scaling
What metric can be monitored to check endpoint performance in SageMaker? a) Instance Health b) CPU Utilization c) Invocations per Second d) Training Accuracy
Where can you view SageMaker endpoint metrics? a) AWS CloudWatch b) Amazon QuickSight c) AWS Glue d) AWS Cost Explorer
Which scaling option is best for endpoints experiencing sudden traffic spikes? a) Manual Scaling b) Predictive Scaling c) Dynamic Auto Scaling d) Scheduled Scaling
What is the primary benefit of monitoring SageMaker endpoints? a) Reducing costs b) Detecting anomalies in model predictions c) Enhancing model accuracy d) Automating retraining of models
Which SageMaker feature helps in identifying and troubleshooting endpoint issues? a) Endpoint Debugger b) Model Monitor c) Training Monitor d) SageMaker Studio
What does the “InvocationsFailed” metric indicate in a SageMaker endpoint? a) Number of failed training jobs b) Failed inference requests c) Degraded endpoint health d) Model artifact corruption
How can you scale a SageMaker endpoint to handle high traffic? a) Increase the instance count in endpoint configuration b) Upgrade the SageMaker Studio subscription c) Use AWS Data Pipeline d) Migrate the endpoint to an EC2 instance
19-25: A/B Testing and Model Updates
What is A/B testing in SageMaker primarily used for? a) Comparing two or more machine learning models b) Automating training processes c) Monitoring endpoint performance d) Optimizing AWS resources
How is traffic distributed between models during A/B testing in SageMaker? a) Based on availability zones b) By defining traffic weights for each model c) By splitting users into groups d) Using AWS Lambda functions
Which method is commonly used to update a deployed model in SageMaker? a) Redeploying the endpoint with a new model b) Using AWS Batch processing c) Restarting the training job d) Editing the endpoint policy
What is the advantage of A/B testing in SageMaker? a) It improves endpoint monitoring b) It allows testing new models without disrupting live traffic c) It reduces data processing costs d) It enables distributed training
During A/B testing, what happens when the newer model performs better? a) Both models are deleted b) Traffic is gradually shifted to the new model c) The older model is archived automatically d) The endpoint scales down
How does SageMaker help minimize downtime during model updates? a) By creating new endpoints in advance b) By enabling seamless endpoint transition c) By using on-demand instance scaling d) By pausing inference requests
What configuration is required for enabling A/B testing in SageMaker? a) Setting traffic splitting in endpoint configuration b) Integrating with AWS Config c) Updating the IAM role d) Using DynamoDB triggers
Answer Key
Qno
Answer (Option with Text)
1
b) To deploy and serve machine learning models for predictions
2
b) SageMaker Endpoints
3
b) By creating a SageMaker hosting endpoint
4
a) Endpoint configuration
5
b) Hosting multiple models on a single endpoint
6
b) Application programming interface (API) calls
7
a) By using IAM policies and VPC configurations
8
b) Serialized model artifacts
9
b) Amazon S3
10
b) To make inference requests to a deployed model
11
a) Auto Scaling for Endpoints
12
c) Invocations per Second
13
a) AWS CloudWatch
14
c) Dynamic Auto Scaling
15
b) Detecting anomalies in model predictions
16
b) Model Monitor
17
b) Failed inference requests
18
a) Increase the instance count in endpoint configuration
19
a) Comparing two or more machine learning models
20
b) By defining traffic weights for each model
21
a) Redeploying the endpoint with a new model
22
b) It allows testing new models without disrupting live traffic
23
b) Traffic is gradually shifted to the new model
24
b) By enabling seamless endpoint transition
25
a) Setting traffic splitting in endpoint configuration