Skip to lesson

AWSAWS Certified Generative AI Developer - Professional2026-101.1 Analyze requirements and design GenAI solutions

Match inference hosting to operating constraints

Completed by the knowledge check

Learning objective

Select managed FM APIs versus hosted deployment under latency, throughput, residency, and operational constraints. Evaluate the complete operating model rather than equating control with performance.

Core idea

A managed foundation model (FM) API and a hosted deployment divide responsibilities differently. Amazon Bedrock provides fully managed access to foundation models. Amazon SageMaker AI provides model deployment infrastructure and multiple inference options. Hosting on SageMaker AI still uses a managed AWS service; the distinction is how much model-serving configuration and lifecycle work your team owns.

Neither choice is inherently faster, cheaper, or more compliant. A suitable deployment must satisfy the task’s quality requirement inside its operational envelope. Compare measured request paths, supported model and deployment combinations, processing locations, and the effort required to sustain the service.

First eliminate choices that violate hard constraints. Then compare feasible choices on performance, unit economics, and operational burden. A benchmark for a model that cannot run within the permitted data boundary does not make it a candidate.

How it works

Compare responsibility boundaries

With a managed FM API, your application sends requests to a service rather than selecting and operating the model-serving machines. You still own application authorization, input handling, evidence retrieval, output validation, failure behavior, and business monitoring. Delegating inference infrastructure does not delegate those responsibilities.

A hosted model deployment gives your team additional decisions about the model artifact and serving configuration. SageMaker AI offers real-time, serverless, and asynchronous endpoint options, with different workload fits. These are service options, not a claim that every foundation model or serving stack works with every option. Validate the specific deployment before including it in a comparison.

For hosted inference, identify who owns artifact approval, dependencies, serving configuration, capacity changes, and regressions after an update. Include a recovery owner and an on-call process. If the team cannot maintain those responsibilities, theoretical control does not create a dependable production service.

Measure latency as a request path

Break latency into network transit, queueing, retrieval, model processing, output delivery, and validation. A low model-only measurement can hide slow retrieval or an overloaded application queue. Compare candidates using the same representative inputs and the same definition of completion.

Measure both time to first useful output and time to a complete accepted result when the product needs streaming. Long outputs and long inputs have different effects on the experience. Test the expected range of each, rather than sending the same short prompt repeatedly.

Include warm and idle-period behavior, burst demand, concurrency, and retries in the workload profile. Record tail latency, not just the mean. A deployment with a good average and frequent deadline failures might be unsuitable for an interactive workflow. If an asynchronous process meets the business deadline, it can tolerate a different latency envelope.

Distinguish demand from capacity

Requests per second alone is a weak description of FM load. Short classification requests and long document analyses can impose very different processing demands. Characterize input length, expected output length, simultaneous requests, arrival bursts, and maximum acceptable waiting time.

For a managed API, verify the relevant quotas and how they apply to the selected model and inference path. AWS documents Amazon Bedrock quotas separately; do not infer available capacity from a successful single request. For hosted deployment, validate serving capacity under the same demand profile, including queue growth and recovery after a burst.

Bedrock Provisioned Throughput buys capacity in model units with hourly billing; inference profiles do not support it. A customized model is served through Provisioned Throughput or, where supported, an on-demand custom model deployment (see 2.2.1). Bedrock batch inference processes prompts asynchronously with S3 input and output and does not support provisioned models. SageMaker AI asynchronous inference queues requests for large payloads and long processing times; compare these delivery paths in 2.2.2.

Admission control and workload scheduling remain application concerns in either design. If demand exceeds usable capacity, choose whether to queue, reject, reduce optional work, or offer an approved fallback. Unbounded concurrency can convert a temporary burst into widespread timeouts and repeated requests.

Establish the actual processing boundary

A request endpoint’s Region is not always the Region that performs inference. Amazon Bedrock distinguishes in-Region, geographic cross-Region, and global cross-Region inference. In-Region processing stays in the specified Region. Geographic routing stays within a defined geography; global routing can use supported commercial Regions worldwide. Availability varies by model and inference option; see 1.2.4 for the deeper residency comparison.

If policy requires a single Region, a geographic boundary is insufficient even when that geography contains the required Region. If policy permits a geography, inspect the selected inference profile and its allowed destinations. Keep backup and fallback paths within the same approved policy. A fallback that silently widens the processing boundary invalidates the design.

Residency also includes your own evidence, logs, evaluation data, and integration paths. A compliant inference route does not prove that the surrounding application keeps all sensitive data in the approved locations. Map those flows explicitly instead of reducing the assessment to the model endpoint.

Key distinctions and trade-offs

Managed API versus unmanaged application: Bedrock manages the inference service, while the application still needs security, reliability, and quality controls. These remain part of the architecture budget.

Hosted model versus self-operated hardware: A SageMaker AI deployment gives you model-serving choices within a managed service. Do not treat it as equivalent to administering every underlying machine yourself.

Quota versus demonstrated throughput: A quota is an allowed service boundary. Sustainable application throughput is an observed result under a defined workload. Both matter, and neither replaces the other.

Capacity versus task value: More serving capacity can reduce queueing but cannot repair an unsuitable model. Validate task quality before optimizing a deployment that returns unusable results.

Managed APIs reduce infrastructure decisions and can suit a team focused on application delivery. Hosted deployment can earn its additional work when a required artifact or serving configuration is unavailable through the API path. Compare total operating cost, including idle capacity, engineering time, validation, and incident recovery, without assuming a universal break-even point.

Architecture / decision scenario

A document-review application requires all processing to remain in one approved Region. It receives moderate interactive demand and a large overnight batch. The team compares a Bedrock model available through in-Region inference with an approved open model deployed on SageMaker AI.

For overnight work, evaluate Bedrock batch inference with S3 input and output against SageMaker AI asynchronous inference, subject to model support and the same approved processing boundary. Both candidates receive the same document set and quality rubric. The test measures complete review latency, queueing under peak demand, and failed-request recovery. The architecture review includes evaluation data and log locations. A global inference profile is excluded because it violates the single-Region requirement, regardless of its throughput appeal.

If the managed candidate meets quality and delivery deadlines, the team can avoid extra serving responsibilities. If a required serving configuration makes the hosted candidate necessary, the team documents capacity and recovery ownership before approval. Interactive and overnight work can use different delivery policies without changing the data boundary.

Common exam traps

  • Assuming a managed API removes application security responsibilities.
  • Choosing hosted deployment from an isolated latency benchmark.
  • Treating a geographic inference profile as single-Region processing.
  • Assuming all model and endpoint combinations are supported.
  • Describing token-heavy workloads only by request count.
  • Ignoring logs and fallback routes in the residency assessment.

What to remember

  • Compare responsibility, support, and measured workload behavior.
  • Eliminate incompatible processing boundaries first.
  • Measure end-to-end tail latency and sustainable capacity.
  • Treat model availability and quotas as explicit verification steps.
  • Include operational ownership in the hosting decision.

Knowledge check

References