exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 2 question 13 discussion

Actual exam question from Microsoft's 70-764
Question #: 13
Topic #: 2
[All 70-764 Questions]

You maintain a database named DB1 that has a nonpartitioned table. You create an index in the table. Automatic statistic updates are disabled.
Uses report that some Microsoft SQL Server Reporting Service (SSRS) queries take a long time to run. You determine that the issue is caused by stale statistics for Index1.
You need to update the statistics for the index.
What should you do?

  • A. Run the system stored procedure sp_updatestats.
  • B. Reorganize the index.
  • C. Set the value of the Database Read-Only property to True.
  • D. Set the value of the Auto Create Incremental Statistics property to True.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
sp_updatestats runs UPDATE STATISTICS against all user-defined and internal tables in the current database. In some cases you can improve query performance by using UPDATE STATISTICS or the stored procedure sp_updatestats to update statistics more frequently than the default updates.
Note: UPDATE STATISTICS would be a better option as it updates query optimization statistics on a table or indexed view, but it is not an option here.
References:
https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-updatestats-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
JorgePabloF
5 years, 1 month ago
Another solution: UPDATE STATISTICS with the option COLUMNS.
upvoted 2 times
jolsca
4 years, 9 months ago
But the correct answer is: B. Reorganize the index.
upvoted 1 times
RohitRaj2311
4 years, 7 months ago
Reorganize does not update stats. REBUILD does. A is correct.
upvoted 3 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 ...