Courseiva
Monitor, configure, and optimize database resourcesmediumMultiple ChoiceObjective-mapped

DP-300 Practice Question: Monitor, configure, and optimize database resources

Exhibit

Refer to the exhibit.

```kql
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.SQL"
| where Category == "QueryStoreRuntimeStatistics"
| summarize avg(avg_duration) by query_id
| top 10 by avg_duration desc
```

You run the KQL query shown in the exhibit. The query returns a list of query IDs. What is the purpose of this query?

⚠ Common exam trap

Watch out — candidates often confuse 'average duration' with 'total CPU consumption' or 'total wait time,' but the query explicitly uses `avg(duration)` and not `sum(cpu_time)` or `sum(wait_time)`, making the correct answer solely about average duration.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Identify the top 10 queries by average duration.

The KQL query in the exhibit uses `summarize` with `avg(duration)` and then `top 10 by avg_duration`, which explicitly calculates the average duration per query_id and returns the top 10 queries with the highest average duration. This directly matches the purpose of identifying the top 10 queries by average duration.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Identify queries consuming the most CPU.

    Why it's wrong here

    No CPU metric in the query.

  • Identify the top 10 queries by average duration.

    Why this is correct

    Averages avg_duration per query and returns top 10.

  • Identify queries with the highest total wait time.

    Why it's wrong here

    Measures duration, not wait time.

  • Identify queries with the highest execution count.

    Why it's wrong here

    No aggregation on count.

About these practice questions

This DP-300 question is part of Courseiva's 906-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DP-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-300 exam.