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

CertStreak
Menu

Monitor performance metrics, including latency, throughput, and response times

A worked example

Yes or no

A company uses two Azure OpenAI deployments and reviews Azure Monitor metrics for two consecutive weeks:

  • A summarization app calls its deployment without streaming.
  • A chat app calls a separate deployment with streaming. The product owner wants to track the absolute first-token latency that chat users experience.

The exhibit shows weekly averages per request.

AppStreamingMetricWeek 1Week 2
SummarizationNoTime to Last Byte (AzureOpenAITTLTInMS)6,200 ms11,200 ms
SummarizationNoGenerated Completion Tokens250500
SummarizationNoTime Between Tokens (AzureOpenAINormalizedTBTInMS)20 ms20 ms
SummarizationNoProcessed Prompt Tokens900900
ChatYesTime to Response (AzureOpenAITimeToResponse)800 ms1,900 ms
ChatYesProcessed Prompt Tokens1,5001,500

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

StatementYesNo
To track the absolute first-token latency that chat users experience, the team should chart Normalized Time to First Byte (AzureOpenAINormalizedTTFTInMS).

Absolute first-token latency is diagnosed with Time to Response. Normalized Time to First Byte divides by prompt token count and is meant only for comparing first-token efficiency across prompt sizes.

Correct
The week 2 increase in Time to Last Byte for the summarization app is sufficient to conclude that its deployment has a performance regression.

The source explains that longer outputs can account for increased TTLT. Here, average output length doubled while average Time Between Tokens stayed unchanged, so the higher TTLT does not establish a deployment regression. These weekly averages also do not prove that no regression occurred.

Correct
For the chat app, the week 2 increase in Time to Response should lead the team to check deployment utilization and concurrent request volume.

Time to Response rose while Processed Prompt Tokens stayed flat at 1,500, which is the case where the guidance is to check deployment utilization and concurrent request volume.

Correct
Why

Azure OpenAI response duration depends on output length, so latency metrics require token context. The summarization averages are consistent with longer outputs increasing completion time, but they do not establish the presence or absence of a deployment regression. For chat, increased Time to Response with unchanged prompt size warrants investigating deployment utilization and concurrent requests. Time to Response measures absolute first-token responsiveness; the normalized first-byte metric supports comparisons across prompt sizes.

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