exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 163 discussion

Actual exam question from Microsoft's 70-762
Question #: 163
Topic #: 1
[All 70-762 Questions]

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 and optimize the SQL Server to maximize throughput, response time, and overall SQL performance.
You need to examine delays in executed threads, including errors with queries and batches.
What should you do?

  • A. Create a sys.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.
Show Suggested Answer Hide Answer
Suggested Answer: G 🗳️
sys.dm_os_wait_stats returns information about all the waits encountered by threads that executed. You can use this aggregated view to diagnose performance issues with SQL Server and also with specific queries and batches.
Incorrect Answers:
A: sys.dm_os_waiting_tasks returns information about the wait queue of tasks that are waiting on some resource.
References:
https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql

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
MML
4 years, 9 months ago
How can you examine query errors with sys.dm_os_wait_stats?!
upvoted 2 times
Lukis92
4 years, 8 months ago
I agree with you, that doesn't make sense, but a similar statement is written in the documentation: "You can use this aggregated view to diagnose performance issues with SQL Server and also with specific queries and batches." https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql?view=sql-server-ver15
upvoted 1 times
...
databasejamdown
4 years, 7 months ago
This dmv shows accumulated wait times. The jobs run during off peak so clear the dmv in the evening then examine them in the morning, you can see the problematic wait types if you sort in desc order I think. Any wait types thats too high will point you in the right direction for additional troubleshooting
upvoted 2 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