This is an original sample question written by itmoshi based on the exam objectives.
A company plans to deploy a GPU-based video analysis model on Amazon SageMaker AI. Each request contains one video of several hundred MB, and inference takes 10 to 20 minutes. Requests arrive one at a time at irregular intervals throughout the day. Instead of launching a job per video, the company wants a single persistent endpoint that queues the requests and sends a notification when each one completes. Results only need to be ready within a few tens of minutes, and the instances should scale down to zero when there are no requests. Which inference option should it choose?
Show answer and explanation
Answer:C For a persistent endpoint that queues large, long-running requests and can scale to zero, use asynchronous inference.
Why it is correct
An asynchronous inference endpoint queues incoming requests and processes them on its instances, concurrently if configured. Inputs are referenced from S3, so it supports large payloads (up to 1 GB), and processing time can be extended up to one hour (the default timeout is 900 seconds, so for this 20-minute case set InvocationTimeoutSeconds above 1,200). Results are written to S3, and success or failure can be reported through Amazon SNS. Auto scaling can set the minimum capacity to zero, and adding a scale-out policy on the HasBacklogWithoutCapacity metric starts an instance when a request is queued while none are running. Also, GPU instances are supported, so every requirement is met.
The other options
- ✗ A Real-time inference is built for low-latency synchronous responses; a video of several hundred MB and 10 to 20 minutes of processing exceed the payload and response-time limits of ordinary synchronous invocations. Use it for interactive use cases that need responses in milliseconds to seconds.
- ✗ B Serverless inference does not support GPUs and has small payload and processing-time limits, so it cannot run this model. It suits models with intermittent traffic that can handle small payloads quickly on CPU.
- ✗ D Batch transform can process many S3 objects in one job, but it has no persistent endpoint that accepts requests, so it does not fit queuing irregular requests one at a time. Use it to score an accumulated dataset in one pass.
Key takeaway
Low-latency synchronous inference → real-time. Intermittent, small payloads, CPU → serverless. Large payloads, long processing, scale to zero, notifications → asynchronous. Offline scoring of a whole dataset → batch transform.