Certopolis

AWS Certified Solutions Architect – Professional

Bedrock on-demand vs Provisioned Throughput vs batch: SAP-C03

The Amazon Bedrock User Guide describes on-demand inference with Reserved, Priority, Standard and Flex service tiers, Provisioned Throughput that is billed hourly for a fixed level of throughput, and batch inference that runs asynchronously from Amazon S3. Prompt caching lowers input token cost for long repeated prompt prefixes, on on-demand inference only.

On-demand inference and its service tiers

A request goes to the Standard tier when it has no service_tier parameter. Setting the parameter to priority buys the fastest response times for a price premium. Priority needs no reservation, and its requests are prioritized over Standard and Flex requests.

Setting service_tier to flex gives a pricing discount to workloads that can accept longer processing times. AWS names model evaluations, content summarization and agentic workflows. The tier is an optional parameter on the same runtime API call, so nothing else in the request changes. The on-demand quota for a model is shared across the priority, default and flex tiers.

The Reserved tier is different. You reserve input and output tokens-per-minute capacity for 1 month or 3 months, pay a fixed price per 1K tokens-per-minute, and are billed monthly. The minimums are 100,000 input and 10,000 output tokens per minute. Demand above the reservation overflows to the Standard tier. Access is arranged through the AWS account team, and not every model supports every tier.

Provisioned Throughput

Provisioned Throughput provisions a higher level of throughput for one model at a fixed cost. You buy model units. Each unit sets how many input tokens the model can process and how many output tokens it can generate per minute.

Billing is hourly and continues until you delete the Provisioned Throughput. The hourly price depends on the model, the number of model units and the commitment. With no commitment you can delete it at any time. With a 1-month or 6-month commitment you cannot delete it until the term ends, and the longer term has the lower hourly price.

Buying the capacity is not enough to use it. The application sends InvokeModel, Converse or their streaming versions with the provisioned model ARN as the modelId. Batch inference is not supported for provisioned models.

Batch inference and prompt caching

Batch inference takes input files from an S3 bucket, generates the responses asynchronously and writes them to S3. Records use either the InvokeModel or the Converse format. It has its own pricing on the Amazon Bedrock pricing page, and Amazon EventBridge can notify you when a job changes state.

A batch job that uses the Converse invocation type does not support tool calling. Records that include toolConfig fail with a 400 error. To send tool definitions in a batch, create the job with the InvokeModel invocation type and use the model's native request format.

Prompt caching reduces latency and input token cost when a long context is reused across requests. With explicit caching you place cache checkpoints, and everything before a checkpoint must stay identical between requests. Keep static content at the start of the prompt and changing content at the end. The minimum prefix is between 512 and 4,096 tokens, depending on the model, and many models keep an entry for 5 minutes, which resets on each cache hit.

Tokens written to the cache are billed at a cache-write rate that can be higher than the standard input rate. Tokens read from the cache are billed at the cache-read rate. The model still processes the rest of the prompt and generates a new response. Prompt caching works only with on-demand inference and is not supported by the batch inference API.

Where the exam catches people

  • Believing the Priority tier needs capacity to be reserved: it is set per request with service_tier. Only the Reserved tier involves a 1-month or 3-month reservation.
  • Believing a Provisioned Throughput stops costing money when no requests are sent: it is billed hourly until you delete it, and a commitment term cannot be deleted early.
  • Believing a purchased Provisioned Throughput serves requests that name the base model: the request must specify the provisioned model ARN as modelId.
  • Believing any Converse request can be moved to a batch job: Converse-type batch records that include toolConfig fail with a 400 error.
  • Believing prompt caching also discounts batch jobs: it is supported only for on-demand inference.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company's supplier-onboarding service uses a model in Amazon Bedrock to check each new supplier contract against the company's procurement policy. Every request contains the full policy text first, about 20,000 tokens, then the supplier's contract, about 3,000 tokens, then the same fixed instruction to list conflicting clauses. Requests arrive every few seconds during business hours, and reviewers wait for each answer. The company wants to lower inference cost without changing the answers. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Cost-Optimized Architecture Design building.

    Not that one: D is right. In the game your Cost-Optimized Architecture Design building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Requests every few seconds keep the cache warm. A semantic cache works differently: it skips the model and hands back an earlier answer for a similar-looking request, which here would return another supplier's findings.

    Written from docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html

  2. A brokerage runs two workloads on the same model in Amazon Bedrock through on-demand inference. A live agent-assist feature drafts replies while customers wait on the phone, and its replies must come back as quickly as on-demand inference allows. A model-evaluation pipeline sends thousands of Converse requests each week that include tool definitions, because it scores the model's tool choices. The evaluation results are needed within a few days. The company will not reserve capacity and wants the evaluation runs to cost less. Which combination of steps will meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Cost-Optimized Architecture Design building.

    Not that one: A,C is right. In the game your Cost-Optimized Architecture Design building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The evaluation runs can wait days, so the flex tier lowers their price in exchange for slower processing, and because the tier is set by an optional parameter on the same runtime calls, the requests themselves do not change. Batch inference would also be discounted, but Converse-format batch records that include tools are rejected.

    Written from docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html

  3. A news-monitoring company runs a classification service that sends a steady stream of requests to one Amazon Bedrock foundation model in us-east-1, 24 hours a day. Each article must be classified within seconds of its arrival. When overall demand on the model rises, some of the service's on-demand requests are throttled. A compliance rule requires all of the service's inference to run in us-east-1. A prompt-engineering team also uses the same model for a few hours each week. The company wants that team's model charges to stop whenever the team sends no requests. Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Architecture Design and Implementation Built for the Cloud building.

    Not that one: A,D is right. In the game your Architecture Design and Implementation Built for the Cloud building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The prompt-engineering team is the reverse case. On-demand invocation of the base model charges for the tokens actually processed, so when the team sends nothing, nothing accrues. A provisioned model would bill every hour it exists, whether or not anyone calls it.

    Written from docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html

Ask for something