How to Deploy a Nightly SageMaker Prediction Model?
Short answer
D Use a SageMaker serverless inference endpoint with MaxConcurrency set to 1 so the nightly 3 MB, sub-minute prediction scales to zero between runs.
Question
How should the company deploy the model on Amazon SageMaker to meet these requirements?
Key Takeaways
The question tests matching SageMaker endpoint type to invocation frequency, payload size, and runtime; the trap is assuming real-time endpoints can scale to zero or that async inference can start with zero instances.
A once-nightly, sub-minute prediction with a 3 MB payload is best served by SageMaker Serverless Inference because it scales to zero between runs and bills only for invocations. The page establishes that option D, with MaxConcurrency 1, meets the requirements while real-time, asynchronous, and multi-model endpoints do not.
Common mistake: The most common wrong choice is a real-time endpoint with autoscaling to zero, but SageMaker real-time endpoints always require at least one provisioned instance.
Expert Analysis
Why the Answer Is Correct
SageMaker Serverless Inference is designed for intermittent or unpredictable traffic and automatically scales to zero when there are no requests, so a model that runs once per night does not need an always-on instance. The 3 MB input and sub-minute execution fit the serverless inference payload and timeout envelope, and MaxConcurrency set to 1 is sufficient for the single nightly invocation while capping concurrency. This directly satisfies the requirement to deploy the model on SageMaker without paying for idle capacity between nightly runs.
Why the Other Options Are Wrong
A multi-model serverless endpoint is not the right construct here: multi-model endpoints are aimed at hosting many models behind a provisioned endpoint with model caching, not a single low-frequency nightly job. An asynchronous inference endpoint is intended for large payloads or long-running requests and still requires at least one initial instance; setting InitialInstanceCount to 0 is not a valid way to create the endpoint. A real-time endpoint cannot scale to zero—autoscaling can reduce capacity only to a minimum of one instance—so option C leaves idle cost. Serverless Inference with MaxConcurrency 1 is the only option that matches the short, scheduled workload.
Community Comment Notes
Saransundar points out that MaxConcurrency should be set to 1 as the minimum for nightly predictions and pairs it with a 2048 MB memory setting. GiorgioGss captures the deployment logic directly: "why would you provision something in the first place - go serverless." 78e659d adds that one invocation per night with a 3 MB payload and under a minute of processing fits serverless limits and costs nothing between runs.
Official Reference
- https://docs.aws.amazon.com/sagemaker/latest/dg/serverless-endpoints.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints.html
These links open the official vendor documentation in a new tab.
Exam Strategy
Eliminate endpoint types by workload pattern first: nightly scheduled and short-running points to serverless inference (or batch transform), not real-time. Then validate the payload and timeout against the service limits; 3 MB and under one minute fit Serverless Inference, where MaxConcurrency 1 avoids unnecessary concurrency.
Frequently Asked Questions
Why can’t a real-time SageMaker endpoint scale to zero for nightly predictions?
Does a 3 MB payload and sub-minute runtime fit SageMaker Serverless Inference?
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
Saransundar 👍 3 Answered DServerlessConfig:- MemorySizeInMB: Set to 2048 MB (options: 1024–6144 MB). MaxConcurrency: Set to 1 (minimum for nightly predictions). Efficient and cost-effective for one-time nightly use.
-
GiorgioGss 👍 3 Answered D"The prediction process takes less than 1 minute to finish running" so why would you provision something in the first place - go serverless
-
78e659d 👍 1 Answered DOne invocation per night with a 3 MB payload finishing in under a minute fits inside serverless limits (roughly 4 MB payload, 60-second timeout) and costs nothing between runs; MaxConcurrency of 1 matches the single nightly call.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All MLA-C01 Questions
Access 115 questions with complete answers and detailed explanations.
View Full MLA-C01 Practice Test →