exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 1 question 285 discussion

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

DRAG DROP -
You have a database named DB1.
DB1 contains a table named Sales.SalesPerson that has an index named AK_SalesPerson_rowguid.
Queries that do not use the index take approximately 10 times longer to complete than queries that use the index. You discover that AK_SalesPerson_rowguid has severe fragmentation. You need to recommend a solution to defragment the index.
The solution must ensure that the index can be used by queries during the defragmentation.
What statement should you use? To answer, drag the appropriate elements to the correct locations. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Rebuilding an index can be executed online or offline. Reorganizing an index is always executed online. To achieve availability similar to the reorganize option, you should rebuild indexes online.
Use: ALTER INDEX REBUILD WITH (ONLINE = ON)
References: Reorganize and Rebuild Indexes https://msdn.microsoft.com/en-us/library/ms189858.aspx

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
Theo123
4 years, 11 months ago
The key point to this question is "severe fragmentation" so it's Rebuild with (Online=On)
upvoted 1 times
...
witty
5 years ago
RORGANIZE WITH (ONLINE = ON) is not a valid statement. Answer is correct as stated - Its is REBUILD WITH ONLINE=ON
upvoted 3 times
...
SyedM
5 years ago
There is no point of Rebuilding the Index; taking 10 times longer than normal doesn't mean it went over >30%. I would go for REORGANIZE WITH (ONLINE = ON)
upvoted 1 times
...
TheSwedishGuy
5 years, 6 months ago
While Reorganize defrags the index and keeps the index online for queries, the question shows the syntax for how to rebuild the index with the online = on option.
upvoted 1 times
...
saikirankshatriya
5 years, 7 months ago
Rebuild > 30 % Reorganize < 30%
upvoted 2 times
...
Guest
5 years, 8 months ago
No, Rebuild with (ONLINE=ON) will also leave the data online during the rebuild
upvoted 3 times
...
San98
5 years, 9 months ago
It should be reorganize
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 ...