Developing SQL Databases — Question 148

You have a database that users query frequently.
The users report that during peak business hours, the queries take longer than expected to execute.
A junior database administrator uses Microsoft SQL Server Profiler on the database server to trace the session activities.
While performing the trace, the performance of the database server worsens, and the server crashes.
You need to recommend a solution to collect the query run times. The solution must minimize the impact on the resources of the database server.
What should you recommend?

Answer options

Correct answer: B

Explanation

The correct answer is B, as SQL Server Extended Events is designed to have a low overhead and is more efficient for monitoring performance without significantly impacting the server's resources. Options A and C both suggest using SQL Server Profiler, which has been shown to cause performance issues, and option D, while useful, does not specifically target query run times as effectively as Extended Events.