PrepAway - Latest Free Exam Questions & Answers

You need to monitor the SQL environment and capture the…

Note: This question is part of a series of questions that use the same or similar answer choices. An Answer
choice may be correct for more than one question in the series. Each question independent of the other
questions in this series. Information and details provided in a question apply only to that question.
You are a database developer for a company. The company has a server that has multiple physical disks. The
disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many
SQL jobs that run during off-peak hours.
You observe that many deadlocks appear to be happening during specific times of the day.
You need to monitor the SQL environment and capture the information about the processes that are causing
the deadlocks.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
A. Create a sys.dm_os_waiting_tasks query.

B.
Create a sys.dm_exec_sessions query.

C.
Create a PerformanceMonitor Data Collector Set.

D.
Create a sys.dm_os_memory_objects query.

E.
Create a sp_configure ‘max server memory’ query.

F.
Create a SQL Profiler trace.

G.
Create a sys.dm_os_wait_stats query.

H.
Create an Extended Event.

Explanation:
To view deadlock information, the Database Engine provides monitoring tools in the form of two trace flags, and
the deadlock graph event in SQL Server Profiler.
Trace Flag 1204 and Trace Flag 1222
When deadlocks occur, trace flag 1204 and trace flag 1222 return information that is captured in the SQL
Server error log. Trace flag 1204 reports deadlock information formatted by each nodeinvolved in the deadlock.
Trace flag 1222 formats deadlock information, first by processes and then by resources. It is possible to enable
bothtrace flags to obtain two representations of the same deadlock event.
https://technet.microsoft.com/en-us/library/ms178104(v=sql.105).aspx

4 Comments on “You need to monitor the SQL environment and capture the…

    1. 113 says:

      actually we do not have to implement anything.
      in exetended events there is the sever_healt.xel that by defaul collects all the deadlocks, and it is active by default.
      because of this i think i would answer profile trace, but i would give a feedback for this question.




      1



      0

Leave a Reply