Exam DP-300 All QuestionsBrowse all questions from this exam
Question 161

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?

    Correct Answer: C

    To identify the operations being performed on a nonclustered index, the appropriate dynamic management view is Sys.dm_db_index_operational_stats. This view provides detailed information about various operations on the index, such as the number of seeks, inserts, updates, and deletes. These operational metrics are essential for diagnosing performance issues related to the index. Therefore, it is the correct choice for understanding the specific operations being performed on index1.

Discussion
U_COption: D

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.

Pranava_GCPOption: 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

scottytohottyOption: 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

04db10cOption: 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.

TheSwedishGuyOption: C

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.

BluediamondOption: C

C is the right answer according to Bing Chat

VikJo1978Option: 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.