Developing Microsoft SQL Server Databases — Question 6
You have a SQL Server instance named SQL\Instance1. Instance1 contains a database named Database1.
You need to recommend an index defragmentation solution for an index on a disk-based table named ContentIndex. ContentIndex must meet the following requirements:
✑ Remain online during the defragmentation.
✑ Update distribution statistics.
✑ Perform defragmentation as quickly as possible.
Which type of index defragmentation solution should you include in the recommendation? More than one answer choice may achieve the goal. Select the BEST answer.
Answer options
- A. DBCC DBREINDEX
- B. REORGANIZE
- C. REBUILD
- D. DBCC INDEXDEFRAG
Correct answer: B
Explanation
The REORGANIZE option is the best choice because it allows for online defragmentation while updating distribution statistics, making it suitable for minimizing downtime. In contrast, DBCC DBREINDEX and DBCC INDEXDEFRAG are outdated or not suited for online operations, and REBUILD, while effective, does not meet the requirement for remaining online.