Question 540 of 953
Plan and implement data platform resourcesmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is sys.dm_exec_query_stats. This dynamic management view is the right choice because it stores aggregate performance statistics for cached query plans, including total_worker_time, which directly measures cumulative CPU consumption per query. By querying this view and ordering by total_worker_time descending, you can pinpoint the top CPU consuming queries in Azure SQL Database over the last 24 hours, addressing the high CPU usage pattern during business hours. On the DP-300 exam, this tests your ability to select the correct DMV for performance diagnostics, often appearing as a scenario where you must distinguish sys.dm_exec_query_stats from sys.dm_exec_requests (which shows only currently running queries) or sys.dm_exec_query_plan (which returns the plan XML but no CPU metrics). A common trap is choosing sys.dm_exec_requests, which only captures active queries at the moment of execution, not historical CPU totals. Memory tip: think "stats" for "statistics"—sys.dm_exec_query_stats gives you the historical CPU stats you need to identify the worst offenders.

DP-300 Plan and implement data platform resources Practice Question

This DP-300 practice question tests your understanding of plan and implement data platform resources. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You are monitoring an Azure SQL Database and notice a pattern of high CPU usage during business hours. You need to identify the queries consuming the most CPU over the last 24 hours. Which dynamic management view should you query?

Question 1mediummultiple choice
Read the full NAT/PAT explanation →

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

sys.dm_exec_query_stats

sys.dm_exec_query_stats (Option C) is the correct DMV because it returns aggregate performance statistics for cached query plans, including total CPU time (total_worker_time), execution count, and last execution time. By querying this view and ordering by total_worker_time descending, you can identify the queries that have consumed the most CPU over the last 24 hours, directly addressing the pattern of high CPU usage during business hours.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • sys.dm_exec_requests

    Why it's wrong here

    Shows only currently running requests, not historical.

  • sys.dm_exec_sessions

    Why it's wrong here

    Shows session info, not query CPU.

  • sys.dm_exec_query_stats

    Why this is correct

    Provides aggregated CPU time for queries over time.

    Related concept

    Read the scenario before looking for a memorised answer.

  • sys.dm_os_performance_counters

    Why it's wrong here

    Shows performance counters, not query-level CPU.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse sys.dm_exec_requests (current activity) with sys.dm_exec_query_stats (historical aggregated stats), leading them to choose Option A because they think 'requests' implies all recent queries, but it only shows currently running queries.

Trap categories for this question

  • Command / output trap

    Shows only currently running requests, not historical.

Detailed technical explanation

How to think about this question

sys.dm_exec_query_stats aggregates data from the plan cache, which is volatile and can be cleared by memory pressure or explicit commands (e.g., DBCC FREEPROCCACHE). For a more persistent historical view, consider enabling Query Store, which captures query runtime statistics over time and can be queried via sys.query_store_query and sys.query_store_plan. In a real-world scenario, high CPU may be caused by parameter-sensitive plans or missing indexes, and combining sys.dm_exec_query_stats with sys.dm_exec_sql_text and sys.dm_exec_query_plan allows you to retrieve the actual SQL text and execution plan for the top CPU consumers.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DP-300 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DP-300 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DP-300 question test?

Plan and implement data platform resources — This question tests Plan and implement data platform resources — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: sys.dm_exec_query_stats — sys.dm_exec_query_stats (Option C) is the correct DMV because it returns aggregate performance statistics for cached query plans, including total CPU time (total_worker_time), execution count, and last execution time. By querying this view and ordering by total_worker_time descending, you can identify the queries that have consumed the most CPU over the last 24 hours, directly addressing the pattern of high CPU usage during business hours.

What should I do if I get this DP-300 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.