exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 3 question 47 discussion

Actual exam question from Microsoft's DP-300
Question #: 47
Topic #: 3
[All DP-300 Questions]

You have an Azure SQL database named DB1 that contains a nonclustered index named index1.

End users report slow queries when they use index1.

You need to identify the operations that are being performed on the index.

Which dynamic management view should you use?

  • A. Sys.dm_exec_query_plan_stats
  • B. Sys.dm_db_index_physical_stats
  • C. Sys.dm_db_index_operational_stats
  • D. Sys.dm_db_index_useage_stats
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
voodoo_sh
2 days ago
Selected Answer: C
---- sys.dm_db_index_operational_stats: leaf_insert_count, leaf_delete_count, leaf_update_count, leaf_ghost_count, nonleaf_insert_count, nonleaf_delete_count, nonleaf_update_count, leaf_allocation_count, nonleaf_allocation_count, leaf_page_merge_count, nonleaf_page_merge_count range_scan_count, singleton_lookup_count, forwarded_fetch_count lob_fetch_in_pages, lob_fetch_in_bytes,lob_orphan_create_count, lob_orphan_insert_count ... waits and more... ---- sys.dm_db_index_usage_stats: user_seeks, user_scans, user_lookups, user_updates system_seeks, system_scans, system_lookups, system_updates Both DMVs are pretty useful, operational stats DMV only seem to lack seeks, otherwise it has scans and lookups similar to what usage stats DMV has. Probably I will pick operational stats DMV.
upvoted 1 times
...
Oga_DBA
1 month, 3 weeks ago
While sys.dm_db_index_usage_stats tracks logical usage statistics (seeks, scans, lookups, updates), sys.dm_db_index_operational_stats focuses on the actual operations and resource contention, providing a more granular view of index performance and resource utilization.
upvoted 1 times
Oga_DBA
1 month, 3 weeks ago
With this I think the answer here is sys.dm_db_index_operational_stats
upvoted 1 times
...
...
Jibss
3 months, 2 weeks ago
D. sys.dm_db_index_usage_stats is correct. https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-index-usage-stats-transact-sql?view=sql-server-ver16 Returns counts of different types of index operations and the time each type of operation was last performed. (This aligns more with the question than ys.dm_db_index_operational_stats).
upvoted 2 times
...
scottytohotty
6 months, 1 week ago
Selected Answer: C
C seems the better answer C details : https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-index-operational-stats-transact-sql?view=sql-server-ver16 D details : https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-index-usage-stats-transact-sql?view=sql-server-ver16
upvoted 1 times
...
04db10c
6 months, 3 weeks ago
Selected Answer: C
To identify the operations being performed on the nonclustered index named index1 in your Azure SQL database (DB1), you should use the following dynamic management view (DMV): C. Sys.dm_db_index_operational_stats Here’s why this DMV is the correct choice: Sys.dm_db_index_operational_stats: This DMV provides information about the operations performed on an index since the last time SQL Server was started or statistics were cleared. It includes counts of different types of operations, such as seeks, scans, updates, and deletes, which can help you understand how the index is being used by queries. Monitoring Index Usage: By querying Sys.dm_db_index_operational_stats for index1, you can gather insights into whether the index is being utilized efficiently or if there are certain operations (such as scans instead of seeks) that could be impacting query performance.
upvoted 1 times
...
TheSwedishGuy
7 months, 3 weeks ago
For diagnosing slow queries and understanding the detailed operations performed on index1, sys.dm_db_index_operational_stats is the correct choice. It gives you the specific operational details that are necessary to identify and troubleshoot performance issues effectively. While sys.dm_db_index_usage_stats is useful for understanding overall usage patterns, it lacks the detailed operational metrics needed for in-depth performance analysis.
upvoted 1 times
...
Bluediamond
1 year, 1 month ago
C is the right answer according to Bing Chat
upvoted 1 times
...
VikJo1978
1 year, 2 months ago
Selected Answer: C
The correct answer is: C. Sys.dm_db_index_operational_stats This dynamic management view contains information about various operations performed on an index, including the number of seeks, inserts, updates, and deletes.
upvoted 1 times
...
Pranava_GCP
1 year, 8 months ago
Selected Answer: D
D. sys.dm_db_index_usage_stats Every individual seek, scan, lookup, or update on the specified index by one query execution is counted as a use of that index and increments the corresponding counter in this view. Information is reported both for operations caused by user-submitted queries, and for operations caused by internally generated queries, such as scans for gathering statistics. https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-index-usage-stats-transact-sql?view=sql-server-ver16#remarks
upvoted 2 times
...
U_C
1 year, 9 months ago
C: dm_db_index_operational_stats provides: the information of leaf_insert_count, leaf_delete_count, leaf_update_count D: dm_db_index_useage_stats provides: the information of USER_SEEKS, USER_SCANS, USER_LOOKUPS, USER_UPDATES For the performance tuning, I choose D.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago