Scale-to-zero inference for 400 MB documents taking 8 minutes

MLA-C02 Deployment and Orchestration of ML and AI Workflows Medium Question 19 of 30

A legal document analysis company allows enterprise clients to upload contract PDF documents of up to 400 MB at unpredictable times. An Amazon SageMaker AI model analyzes each document to extract clauses, requiring approximately 8 minutes of processing time per document. Clients receive completion notifications through Amazon SNS rather than waiting for immediate synchronous responses. The company requires an inference architecture that scales compute charges to zero when no documents are queued for processing.

Which solution will meet these requirements MOST cost-effectively?

Show answer and explanation

ADeploy a SageMaker AI asynchronous endpoint configured with auto scaling to zero.

Deploying an Amazon SageMaker AI asynchronous endpoint is the optimal solution because asynchronous inference queues each request, accepts payloads up to 1 GB and processing times up to one hour, and can scale the instance count to zero when no requests are waiting, so idle periods cost nothing. Deploying a serverless endpoint is incorrect because serverless inference accepts payloads only up to 4 MB and processing times up to 60 seconds. Deploying a batch transform job for each individual upload is incorrect because launching a dedicated transform cluster per document adds startup latency and operational overhead. Deploying a real-time endpoint is incorrect because real-time inference accepts payloads only up to 25 MB and gives a regular response 60 seconds to process. A real-time endpoint that hosts inference components can now scale to zero, but that does not lift either limit.

Source: docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 30 original MLA-C02 practice questions