ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept · Builds on AIF-C01

Real-time and serverless inference

Always-on instances for steady traffic, serverless for spiky traffic with idle gaps.

You know from AI Practitioner

  • Real-time inference answers in milliseconds from a model that is always running.
  • Serverless inference also answers at once and you pay only while it handles requests, but a first request after an idle time can be slower.
Read the AI Practitioner lesson
  • Capacity

    Real-time
    Instances you choose, always on
    Serverless
    Memory 1 to 6 GB, managed for you
  • Concurrency

    Real-time
    Set by instance count and auto scaling
    Serverless
    Up to 200 per endpoint
  • When idle

    Real-time
    You still pay for instances
    Serverless
    Scales to zero, next call is a cold start
  • Not supported

    Real-time
    Very little
    Serverless
    GPU, VPC, multi-model, Model Monitor
The two endpoint types side by side.

1 / 2

  • Capacity

    Real-time
    Instances you choose, always on
    Serverless
    Memory 1 to 6 GB, managed for you
  • Concurrency

    Real-time
    Set by instance count and auto scaling
    Serverless
    Up to 200 per endpoint
  • When idle

    Real-time
    You still pay for instances
    Serverless
    Scales to zero, next call is a cold start

2 / 2

  • Not supported

    Real-time
    Very little
    Serverless
    GPU, VPC, multi-model, Model Monitor
The two endpoint types side by side.
Steady traffic or a GPU?
Can it wait for a cold start?
Serverless
Real-time
yesnoyesno
Traffic shape picks the type.

What it is

A real-time endpoint keeps instances running behind an HTTPS address. You pick the instance type and count, and you can add GPUs, spread instances across Availability Zones and use auto scaling. A request and its response can be up to 25 MB, and a regular response must come back within 60 seconds. You pay for the instances while the endpoint exists, busy or not.

What it is

A serverless endpoint has no instances to choose. You set memory from 1,024 MB to 6,144 MB in 1 GB steps, and a maximum concurrency of up to 200 for the endpoint. SageMaker AI adds and removes capacity, down to zero, and bills by the millisecond. After idle time the next request pays a cold start. Provisioned concurrency keeps a set number of workers warm for predictable bursts. Serverless has no GPU, no VPC configuration, no multi-model endpoints and no Model Monitor. Model Monitor is also closed to new customers now, but the exam still covers it.

What it is

Choose by traffic shape. Steady traffic, strict latency or a GPU: real-time. Spiky traffic with long quiet gaps and a small model that fits in 6 GB: serverless. You cannot turn an instance-based endpoint into a serverless one. Create a new endpoint instead.

Remember

  • Real-time: always-on instances, GPUs, several AZs, 25 MB payload, 60 second limit.
  • Serverless: memory 1 to 6 GB, concurrency up to 200 per endpoint, scales to zero.
  • Serverless has cold starts. Provisioned concurrency keeps workers warm.
  • Serverless has no GPU, no VPC configuration and no multi-model endpoints.

Remember

  • Steady traffic points to real-time. Spiky traffic with idle gaps points to serverless.
  • A real-time endpoint cannot be updated into a serverless endpoint.

On the exam

  • “Unpredictable traffic with long idle periods and a small model” points to serverless inference.
  • “Needs a GPU or a VPC configuration” rules out serverless, so use a real-time endpoint.
  • “The serverless endpoint is slow after a quiet night” points to cold starts. Add provisioned concurrency.