A machine learning engineer has trained a SageMaker model that processes large video files for content moderation. Each inference request takes approximately 8 minutes to complete, and the client application does not need to wait for an immediate response. The solution must handle thousands of requests per day and minimize infrastructure costs. Which SageMaker inference option BEST meets these requirements?
- A. Serverless inference endpoint
- B. Batch transform job
- C. Real-time inference endpoint with auto scaling
- D. Asynchronous inference endpoint✓ Correct
Explanation
Asynchronous inference is correct because it is specifically designed for requests with large payloads or long processing times (up to 15 minutes), queues requests, and scales down to zero instances when idle, minimizing costs. Real-time inference is wrong because it has a 60-second timeout and is designed for low-latency, synchronous responses — an 8-minute job would time out. Serverless inference is wrong because it also enforces a short invocation timeout (up to 60 seconds) and is suited for sporadic, lightweight workloads. Batch transform is wrong because while it handles large-scale processing, it is designed for offline bulk inference on an entire dataset at once, not for individual requests arriving throughout the day.