Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 312-49v10 All Questions

View all questions & answers for the 312-49v10 exam

Exam 312-49v10 topic 1 question 734 discussion

Actual exam question from ECCouncil's 312-49v10
Question #: 734
Topic #: 1
[All 312-49v10 Questions]

After an unexpected shutdown of a company's database server, the IT forensics team is tasked with collecting data from the Database Plan Cache to investigate potential issues. What query should they use to retrieve the SQL text of all cached entries and acquire additional aggregate performance statistics?

  • A. Use: select * from sys.dm_exec_cached_plans cross apply sys.dm_exec_plan_attributes(plan_handle) followed by: select * from sys.dm_exec_query_stats
  • B. Use: select * from sys.dm_exec_cached_plans cross apply sys.dm_exec_sql_text(plan_handle) followed by: select * from sys.dm_exec_plan_attributes(plan_handle)
  • C. Use: select * from sys.dm_exec_sql_text(plan_handle) cross apply sys.dm_exec_cached_plans followed by: select * from sys.dm_exec_query_stats
  • D. Use: select * from sys.dm_exec_cached_plans cross apply sys.dm_exec_sql_text(plan_handle) followed by: select * from sys.dm_exec_query_stats
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
aqeel1506
4 months ago
Retrieving SQL Text of Cached Entries: The sys.dm_exec_cached_plans view returns information about the cached query plans. The sys.dm_exec_sql_text(plan_handle) function returns the text of the SQL batch that is identified by the specified plan handle. Using a CROSS APPLY allows the combination of each plan handle from sys.dm_exec_cached_plans with the corresponding SQL text from sys.dm_exec_sql_text(plan_handle). Acquiring Aggregate Performance Statistics: The sys.dm_exec_query_stats view provides aggregate performance statistics for cached query plans. This includes data such as execution count, total elapsed time, and total logical reads. By using the specified queries in option D, the IT forensics team can gather comprehensive information about the SQL text of cached entries and also obtain performance statistics for further analysis.
upvoted 1 times
...
Elb
5 months, 4 weeks ago
Selected Answer: D
Issue the syntax select * from sys.dm_exec_cached_plans cross apply sys.dm_exec_sql_text (plan_handle) to retrieve the SQL text of all cached entries The plan_handle argument retrieves the compiled query plans from the SQLCP or the OBJCP cache stores. Issue the syntax select * from sys.dm_exec_query_stat s to view the aggregate performance statistics for the cached query plans. It displays only one row per query statement.
upvoted 1 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 ...