Administering a SQL Database Infrastructure — Question 101

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
A company has an on-premises Microsoft SQL Server environment and Microsoft Azure SQL Database instances. The environment hosts several customer databases.
One customer reports that their database is not responding as quickly as the service level agreements dictate. You observe that the database is fragmented.
You need to optimize query performance.
Solution: You run the DBCC CHECKDB command.
Does the solution meet the goal?

Answer options

Correct answer: B

Explanation

The DBCC CHECKDB command is used to check the integrity of a database and identify any corruption issues, but it does not address performance optimization directly. Fragmentation requires defragmentation techniques, such as rebuilding or reorganizing indexes, to improve query performance. Therefore, while DBCC CHECKDB is useful for maintenance, it does not meet the goal of optimizing query performance in this case.