Administering a SQL Database Infrastructure — Question 212
You administer a Microsoft SQL Server 2016 database.
You need to ensure that the size of the transaction log file does not exceed 2 GB.
What should you do?
Answer options
- A. Execute sp_configure 'max log size', 2G.
- B. use the ALTER DATABASE...SET LOGFILE command along with the maxsize parameter.
- C. In SQL Server Management Studio, right-click the instance and select Database Settings. Set the maximum size of the file for the transaction log.
- D. in SQL Server Management Studio, right-click the database, select Properties, and then click Files. Open the Transaction log Autogrowth window and set the
Correct answer: D
Explanation
The correct answer is D because it directly involves modifying the transaction log's autogrowth settings to ensure it does not exceed 2 GB. Options A and B are incorrect as they either do not exist or do not apply to limiting the size of the transaction log file specifically. Option C also does not provide the necessary steps to limit the size effectively.