You must find which API operations have the slowest 95th percentile response time today. Which two KQL parts are needed? (Select TWO.)
- Exam domain
- Secure, monitor, and troubleshoot Azure solutions20–25% of the exam
- Difficulty
- Medium
- In this mock
- 14 questions on this domainPractise this domain
Why the exam asks this
Secure, monitor, and troubleshoot Azure solutions: Monitor and troubleshoot Azure solutions.
Objective in the exam guide: Write KQL queries to analyze logs and metrics.
Averages hide the slow requests users complain about. The exam checks you can query percentiles.
Why D and E are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
summarize percentile(duration, 95) by name
where timestamp > startofday(now())
Restrict rows to today with where, then compute the 95th percentile of duration per operation name with summarize and percentile().
Remember: Tail latency per operation: percentile() inside summarize ... by name.
How it works
percentile(expr, 95) estimates the value below which 95 percent of rows fall; it is used inside summarize.
Grouping by name gives one result per operation.
A where clause on timestamp limits the query to the period you care about.
Clues in the question
The words that point to the answer, and what each one tells you.
- 95th percentile
- percentile(duration, 95).
- Which operations
- Group by name.
- Today
- A time filter.
In detail
- Add | sort by percentile_duration_95 desc to list the slowest first.
- Percentiles show tail latency that averages hide.
Side by side with look-alikes
| Operation | Average | P95 |
|---|---|---|
| GET /products | 120 ms | 310 ms |
| POST /checkout | 300 ms | 2,800 ms |
| GET /cart | 90 ms | 180 ms |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. take 95WrongMost tempting
take 95 returns 95 rows, not a percentile.
Why it tempts: The number 95 matches the question, so it looks related. But take just returns 95 arbitrary rows.
B. project duration only, with no groupingWrong
Without grouping by name you cannot compare operations.
C. sort by timestamp asc as the only stepWrong
Sorting by time alone computes nothing.
D. summarize percentile(duration, 95) by nameRight
Restrict rows to today with where, then compute the 95th percentile of duration per operation name with summarize and percentile().
E. where timestamp > startofday(now())Right
Restrict rows to today with where, then compute the 95th percentile of duration per operation name with summarize and percentile().
In practice
- Use percentiles(duration, 50, 95, 99) to see several points at once.
Use case
An illustrative scenario, not a real incident.
The query shows checkout at 2.8 seconds at P95 while its average is 300 ms, so the team investigates its slow tail.
See how it works
xychart-beta x-axis ["GET /products", "POST /checkout", "GET /cart"] y-axis "Milliseconds" 0 --> 3000 bar [310, 2800, 180] line [120, 300, 90]
How to read this chart
- Bars: the 95th percentile for each operation. Line: the average.
- Checkout's average looks fine at 300 ms, but 1 in 20 requests takes 2.8 seconds or more.
- That slow tail is what the percentile query reveals.