1. A company runs a SageMaker endpoint that serves a product recommendation model. During peak shopping seasons, traffic can increase 10x within minutes. The team wants the endpoint to automatically scale based on the number of invocations per instance. Which auto scaling policy type should they configure, and which metric should they use as the scaling target?
- A. Step scaling policy targeting CPUUtilization
- B. Target tracking policy targeting InvocationsPerInstance✓ Correct
- C. Target tracking policy targeting MemoryUtilization
- D. Scheduled scaling policy targeting a fixed instance count
Explanation
Target tracking policy targeting InvocationsPerInstance is correct because SageMaker exposes InvocationsPerInstance as a CloudWatch metric specifically for auto scaling, and target tracking automatically adjusts capacity to keep the metric at a defined target value, which is the recommended approach for SageMaker endpoints. Step scaling policy targeting CPUUtilization is wrong because while step scaling is valid for some AWS services, SageMaker endpoint auto scaling best practice uses target tracking, and CPUUtilization is not a published SageMaker endpoint metric. Target tracking targeting MemoryUtilization is wrong because MemoryUtilization is not a built-in SageMaker endpoint CloudWatch metric and cannot be used directly for endpoint auto scaling without custom metrics. Scheduled scaling is wrong because it cannot react dynamically to sudden, unpredictable spikes — it only scales at predefined times, which is insufficient for unexpected traffic surges.