Question 6 of 257

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 a server that runs Microsoft SQL Server 2016 Web edition. The server has a default instance that hosts a database named DB1.

You need to ensure that you can perform auditing at the database level for DB1.

Solution: You migrate DB1 to a named instance on a server than runs Microsoft SQL Server 2016 Standard edition.

Does the solution meet the goal?

    Correct Answer: A

    Microsoft SQL Server 2016 Standard edition supports database level audits starting from Service Pack 1. Therefore, migrating DB1 to a named instance on a server that runs Microsoft SQL Server 2016 Standard edition will allow you to perform auditing at the database level for DB1.

Question 7 of 257

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 reorganize all indexes.

Does the solution meet the goal?

    Correct Answer: A

    You can address index fragmentation by reorganizing indexes, which helps to improve query performance. Reorganizing an index is a less intensive operation than rebuilding and can be done online. This solution is appropriate for optimizing query performance in a fragmented database.

Question 8 of 257

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 rebuild all indexes.

Does the solution meet the goal?

    Correct Answer: A

    Rebuilding all indexes is an effective solution to optimize query performance in the case of index fragmentation. Rebuilding indexes recreates the indexes and eliminates fragmentation. Therefore, it is a correct approach to meet the stated goal of optimizing query performance.

Question 9 of 257

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?

    Correct Answer: B

    Running the DBCC CHECKDB command checks the logical and physical integrity of the database but does not address fragmentation or optimize query performance. To optimize query performance when there is fragmentation, you would need to reorganize or rebuild the indexes. Therefore, the solution does not meet the goal.

Question 10 of 257

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.

You are the database administrator for a company that hosts Microsoft SQL Server. You manage both on-premises and Microsoft Azure SQL Database environments.

One instance hosts a user database named HRDB. The database contains sensitive human resources data.

You need to grant an auditor permission to view the SQL Server audit logs while following the principle of least privilege.

Which permission should you grant?

    Correct Answer: F

    To grant an auditor permission to view SQL Server audit logs while adhering to the principle of least privilege, the 'View Server State' permission should be granted. This permission allows the auditor to view server state information, which includes audit logs, without providing unnecessary elevated privileges that roles like 'sysadmin' would. This ensures the principle of least privilege is maintained.