PrepAway - Latest Free Exam Questions & Answers

What should you do?

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 must monitor the SQL Server instances in real time and optimize the server to maximize throughput,
response time, and overall SQL performance.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
A. Create asys.dm_os_waiting_tasks query.

B.
Create a sys.dm_exec_sessions query.

C.
Create a Performance Monitor 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:
sys.dm_exec_sessions returns one row per authenticated session on SQL Server. sys.dm_exec_sessions is a
server-scope view that shows information about all active user connections and internal tasks. This information
includes client version, client program name, client login time, login user, current session setting, and more.
Use sys.dm_exec_sessions to first view the current system load and to identify a session of interest, and then
learn more information about that session by using other dynamic management views or dynamic management
functions.Examples of use include finding long-running cursors, and finding idle sessions that have open transactions.

7 Comments on “What should you do?

  1. salman says:

    sys.dm_exec_sessions gives information regarding all active connections and their tasks.
    Where as, Extended Events only deals with PRE_EXECUTION_SHOWPLAN AND POST_EXECUTION_SHOWPLAN (in XML Formats) of Query.
    Option “B” is correct




    4



    6
  2. 113 says:

    answer: C
    When you run a Data Collector Set, the data that is collected for performance counters is stored to a log file .
    in the server activity history report you can find an overview of resource consumption and server activity for a sql server instance and the host operating system. in the query statistics report you can find an overview of query execution statistics of a sql server instance. in the disk usage report you can find a overview of the disk space used for all db on a sql server instance.




    7



    2

Leave a Reply