Inference Types: Batch, Real-Time, Asynchronous, Serverless
Amazon SageMaker AI inference options (verified, SageMaker AI docs)
| Option | Best for | Limits in the docs |
|---|---|---|
| Real-time inference | Low latency or high throughput; a persistent, fully managed endpoint for sustained traffic | Payloads up to 25 MB; 60 s processing (8 min for streaming) |
| Serverless inference | Intermittent or unpredictable traffic; no instances or scaling to manage; pay only for use, not idle time | Payloads up to 4 MB; 60 s processing |
| Asynchronous inference | Queue requests with large payloads and long processing; near real-time; can scale to zero when idle | Payloads up to 1 GB; up to 1 hour processing; input and output in Amazon S3 |
| Batch transform | Offline processing when a large dataset is available up front; no persistent endpoint | Datasets of GBs; processing times of days |
Amazon Bedrock equivalents
- On-demand calls for interactive use; batch inference submits many prompts at once, writes results to S3 and is priced about 50% lower than on-demand for supported models (Bedrock pricing page).
- Batch inference isn't supported for provisioned models.
Choosing (design guidance)
| Clue in the question | Pick |
|---|---|
| "User is waiting", "millisecond", chat, fraud check at checkout | Real-time |
| "Spiky", "a few requests a day", "no idle cost" | Serverless |
| "Large files", "takes up to an hour", "queue", "notify when done" | Asynchronous |
| "Nightly", "millions of records", "no one is waiting" | Batch |
Exam traps
- Real-time endpoint for a nightly job. You pay for an always-on endpoint you don't need; batch is cheaper.
- Serverless for a 500 MB video. Serverless caps payloads at 4 MB; asynchronous handles up to 1 GB.
- Batch for a user waiting on screen. Batch is offline.
References
- SageMaker AI inference options — checked Oct 19, 2026
- Asynchronous inference — checked Oct 19, 2026
- Bedrock batch inference — checked Oct 19, 2026
- Bedrock pricing — checked Oct 19, 2026
Check your understanding
Scoring 50 million records overnight?Show answerHide answer
Answer
Batch transform (or Bedrock batch inference for an FM).Traffic of a few requests an hour, with idle periods, small payloads?Show answerHide answer
Answer
Serverless inference.800 MB medical images, results within the hour, scale to zero when idle?Show answerHide answer
Answer
Asynchronous inference.