Let’s Get Certified
Module 08 / 13 · Deployment and orchestration of ML and AI workflows

Select an inference target from the request contract

A document service has interactive requests, long-running files and a nightly backlog.

Select an inference target from the request contract

A document service has interactive requests, long-running files and a nightly backlog. They have different deadlines and payload sizes. Separate the user-visible contract from the model artifact before choosing the endpoint and its capacity.

At 1:48:30 the speaker compares importing compatible external models into Bedrock with owning an inference runtime in SageMaker. The latter requires a capacity decision.

Work through the decision

One unsupported external model needs a specialized runtime and a p95 deadline. Will choosing SageMaker alone establish that it meets the deadline?

Check your reasoning

Package the inference contract, choose suitable hardware and benchmark representative payloads at peak concurrency. Validate response codes, latency and resource usage before publishing the endpoint.

MLA-C02 recording · 1:48:30

Continue in the recording · 1:39:11 · 1:46:21.

Decisions and tradeoffs

Real-time endpoint
Persistent capacity and synchronous responses suit sustained interactive traffic with predictable latency requirements.
Asynchronous inference
A queued request can reference a larger input and return results later through a configured output location.
Batch Transform
Run offline predictions over a known dataset without maintaining an interactive endpoint.
Serverless inference
Supported lightweight workloads with intermittent synchronous demand can trade cold-start risk for reduced idle capacity.
Bedrock custom model import
A supported external architecture can be imported for managed inference subject to artifact and region requirements.
Custom SageMaker inference container
A compatible custom image lets the owner supply the runtime for an architecture outside the managed model import path.
Multi-model endpoint
Compatible models can share hosting infrastructure when their traffic and loading behavior justify the tradeoff.

Practice each guide skill

The numbers below follow the AWS task and skill identifiers.

  1. Select compute for a time-bounded offline job and a latency-sensitive online service. Benchmark cold and warm behavior where relevant.
  2. Compare multiplexing compatible models on one endpoint with separate containers that require isolation or different runtimes.
  3. Map one synchronous request, one large queued file and a nightly export to real-time, asynchronous and batch inference.
  4. Evaluate Bedrock managed invocation versus SageMaker hosting using model support, operational ownership and latency constraints.
  5. Validate the imported architecture and artifact format. If the managed import path is unsuitable, test a custom inference container.
  6. Define a bounded assistant task and allow only the approved tools. Validate identity propagation and the expected message contract.
  7. Measure memory, throughput and tail latency before choosing model size, hosting target and capacity.
  8. Configure a retriever and compare indexed evidence, filter results and generated claims on known source documents.

Official objectives for this lesson

Related lesson · Match storage to the query and update pattern

Knowledge check

Select an inference target from the request contract quiz

Answer 3 questions. Check each answer for an explanation.