How to Deploy an ML Model Serverlessly on AWS?
A company has developed an ML model for image classification. The company wants to deploy the model to production so that a web application can use the model. The company needs to implement a solution to host the model and serve predictions without managing any of the underlying infrastructure. Which solution will meet these requirements?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests the ability to identify the correct AWS service for serverless ML model hosting; the trap is selecting general-purpose serverless or API services that do not natively host ML models.
Amazon SageMaker Serverless Inference enables fully managed, serverless deployment of machine learning models for serving predictions without managing underlying infrastructure. It is the correct AWS service for hosting ML models with automatic scaling and zero infrastructure provisioning.
Candidates often choose Amazon API Gateway or Amazon CloudFront because they are serverless AWS services, but neither can host or execute ML models—they only route or cache HTTP traffic.
Community Discussion (6 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Correct Answer: A – Amazon SageMaker Serverless Inference
Amazon SageMaker Serverless Inference is a fully managed feature of Amazon SageMaker specifically designed to deploy machine learning models and serve predictions without requiring users to provision, configure, or manage any underlying infrastructure such as EC2 instances. It automatically scales compute capacity based on incoming request traffic, making it ideal for intermittent or unpredictable workloads—exactly matching the scenario described.
Why the Other Options Are Incorrect
- B – Amazon CloudFront: CloudFront is a Content Delivery Network (CDN) used to cache and deliver static and dynamic web content globally. It cannot host or execute machine learning models.
- C – Amazon API Gateway: While API Gateway is a serverless service for creating and managing RESTful APIs, it does not host ML models. It can invoke a model hosted elsewhere (e.g., a SageMaker endpoint), but it cannot serve predictions on its own.
- D – AWS Batch: AWS Batch is designed for running large-scale batch computing jobs, not for serving real-time predictions via a web application. It also requires managing compute environments and job definitions.
Community Consensus
All community voters (100%) selected Option A, with comments consistently highlighting that SageMaker Serverless Inference eliminates infrastructure management while providing automatic scaling—directly fulfilling the company's requirements.
Official Reference
Exam Strategy
When the question emphasizes 'hosting a model' and 'no infrastructure management,' immediately look for SageMaker-specific inference options. Eliminate services that only handle traffic routing, caching, or batch jobs—they cannot execute ML models.
Related Analysis
Practice All AIF-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AIF-C01 Practice Test →