exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 1 question 103 discussion

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

You administer a Microsoft SQL Server 2016 database that contains a table named AccountTransaction.
You discover that query performance on the table is poor due to fragmentation on the IDX_AccountTransaction_AccountCode non-clustered index.
You need to defragment the index.
You also need to ensure that user queries are able to use the index during the defragmenting process.
Which Transact-SQL batch should you use?

  • A. ALTER INDEX IDX_AccountTransaction_AccountCode ON AccountTransaction. AccountCode REORGANIZE
  • B. ALTER INDEX ALL ON AccountTransaction REBUILD
  • C. ALTER INDEX IDX_AccountTransaction_AccountCode ON AccountTransaction. AccountCode REBUILD
  • D. CREATE INDEX IDXAccountTransactionAccountCode ON AccountTransaction.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
TheSwedishGuy
5 years, 6 months ago
REORGANIZE, as opposed to REBUILD, enables you to use the index as it is being reorganized.
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 ...