A self-hosted model on a SageMaker AI endpoint is overloaded every weekday morning and idle at night. What should the team set up?
- Exam domain
- Operational Efficiency and Optimization for GenAI Applications12% of the exam
- Difficulty
- Medium
- In this mock
- 12 questions on this domainPractise this domain
Why the exam asks this
Task 4.2: Optimize application performance.
Objective in the exam guide: Skill 4.2.5: Create efficient resource allocation systems specifically for FM workloads (for example, by using capacity planning for token processing requirements, auto-scaling configurations optimized for GenAI traffic patterns).
GPU instances are expensive. Paying for peak capacity all day, or failing at peak, are both costly mistakes that resource planning avoids.
Why B is the answer
Auto scaling for the endpoint, based on GenAI traffic metrics, with capacity planned from token volumes
Auto scaling matches capacity to the daily pattern, and token-based planning sets sensible limits.
Remember: Variable GenAI traffic: auto scale, and plan capacity from tokens.
How it works
GenAI traffic often follows daily patterns, with peaks and quiet periods.
SageMaker AI endpoint auto scaling adds and removes instances based on metrics, so capacity follows demand.
Capacity planning for LLMs uses token volumes and concurrency, because a long request costs far more than a short one.
Clues in the question
The words that point to the answer, and what each one tells you.
- Overloaded mornings, idle at night
- A variable pattern: scale with it.
In detail
- SageMaker AI supports automatic scaling of endpoint instances.
- GenAI load is better measured in tokens and concurrent requests than in request count alone.
Side by side with look-alikes
| Approach | Handles peak | Avoids idle cost |
|---|---|---|
| Auto scaling on GenAI metrics | Yes | Yes |
| Night-sized fixed fleet | No | Yes |
| Peak-sized always on | Yes | No |
| Manual scaling | Sometimes | Sometimes |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Manual scaling by an engineer each morningWrong
Manual scaling is slow and depends on someone remembering.
B. Auto scaling for the endpoint, based on GenAI traffic metrics, with capacity planned from token volumesRight
Variable GenAI traffic: auto scale, and plan capacity from tokens.
C. A fixed number of instances sized for the nightWrong
Night sizing cannot handle the morning peak.
D. A larger single instance kept running all the timeWrongMost tempting
Peak sizing all day wastes money at night.
Why it tempts: It removes the morning overload, so it solves the visible problem. But it pays for peak capacity through every idle night.
In practice
- Scale on a metric that tracks real load, such as concurrent requests per instance.
- Set a minimum that covers cold-start time for large models.
Use case
An illustrative scenario, not a real incident.
A team scales its endpoint from two to eight instances on weekday mornings and back to one at night, guided by tokens per minute.
See how it works
xychart-beta x-axis ["00:00", "06:00", "09:00", "12:00", "18:00", "22:00"] y-axis "Instances" 0 --> 10 line [1, 2, 8, 6, 3, 1]
How to read this chart
- The line is the number of instances running through the day.
- It rises for the morning peak and falls back at night.
- A fixed fleet would be either too small at 9:00 or wasteful at midnight.