Skip to content
AWS Certified AI Practitioner (AIF-C01) Exam Prep

Lesson 3 of 34 · 6 min

x
3/34

Inference Types: Batch, Real-Time, Asynchronous, Serverless

Video lesson: AIF-C01 03/34: Inference Types: Batch, Real-Time, Asynchronous, Serverless

Amazon SageMaker AI inference options (verified, SageMaker AI docs)

OptionBest forLimits in the docs
Real-time inferenceLow latency or high throughput; a persistent, fully managed endpoint for sustained trafficPayloads up to 25 MB; 60 s processing (8 min for streaming)
Serverless inferenceIntermittent or unpredictable traffic; no instances or scaling to manage; pay only for use, not idle timePayloads up to 4 MB; 60 s processing
Asynchronous inferenceQueue requests with large payloads and long processing; near real-time; can scale to zero when idlePayloads up to 1 GB; up to 1 hour processing; input and output in Amazon S3
Batch transformOffline processing when a large dataset is available up front; no persistent endpointDatasets 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 questionPick
"User is waiting", "millisecond", chat, fraud check at checkoutReal-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

  1. SageMaker AI inference options — checked Oct 19, 2026
  2. Asynchronous inference — checked Oct 19, 2026
  3. Bedrock batch inference — checked Oct 19, 2026
  4. Bedrock pricing — checked Oct 19, 2026

Check your understanding

  • Scoring 50 million records overnight?Show answer

    Answer

    Batch transform (or Bedrock batch inference for an FM).
  • Traffic of a few requests an hour, with idle periods, small payloads?Show answer

    Answer

    Serverless inference.
  • 800 MB medical images, results within the hour, scale to zero when idle?Show answer

    Answer

    Asynchronous inference.
Previous

Progress is saved in this browser.

Next Lesson