Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Track and optimize cost metrics, including token consumption and resource usage

A worked example

Single answer

A chat workload runs on an existing Standard deployment in an Azure OpenAI resource, and Azure Monitor has collected its metrics for the past two months. The team will create a second Standard deployment for the same workload in another Azure OpenAI resource and must decide how many tokens per minute (TPM) to assign to it.

Requirements:

  • Base the estimate on Azure Monitor metrics from the existing deployment, not on API response data.
  • Include both prompt (input) and completion (output) tokens.
  • Use enough data points, following Microsoft's recommended time horizon.

Which approach should the team use to estimate the TPM for the new deployment?

Choose one answer
Why

Azure Monitor records input consumption as Processed Prompt Tokens and output consumption as Generated Completion Tokens. Analyze their combined usage within one-minute windows across multiple weeks to estimate the workload's total TPM. For Standard deployments, this estimate informs TPM allocation; the capacity calculator instead estimates PTUs for Provisioned deployments.

  • Not correct: Multiply prompt_tokens and completion_tokens from sampled API responses by RPM and assign that total as TPM. Estimating from per-request API response usage is a valid second method, but the team must base the estimate on Azure Monitor metrics.
  • Not correct: Chart Generated Completion Tokens per minute over several weeks and assign its peak value as TPM. Generated Completion Tokens covers only output TPM; the estimate needs Processed Prompt Tokens as well.
  • Not correct: Chart Processed Prompt Tokens and Generated Completion Tokens over several weeks and convert them to PTUs in the capacity calculator. The deployment capacity calculator estimates PTUs for Provisioned deployments; for a Standard deployment the input and output TPM are combined into a TPM value.
  • Correct: Analyze combined Processed Prompt Tokens and Generated Completion Tokens in one-minute windows across several weeks to estimate total TPM. The source recommends analyzing these input and output metrics in one-minute windows across multiple weeks. Their combined per-minute usage supports estimating the total TPM for a Standard deployment.
  • Not correct: Analyze combined Processed Prompt Tokens and Generated Completion Tokens in one-minute windows across the last 24 hours to estimate total TPM. Microsoft recommends a multi-week time horizon so there are enough data points; a single day does not meet that requirement.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free