exam questions

Exam 70-765 All Questions

View all questions & answers for the 70-765 exam

Exam 70-765 topic 3 question 15 discussion

Actual exam question from Microsoft's 70-765
Question #: 15
Topic #: 3
[All 70-765 Questions]

You administer a Microsoft SQL Server 2012 database.
You need to ensure that the size of the transaction log file does not exceed 2 GB.
What should you do?

  • 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
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
You can use the ALTER DATABASE (Transact-SQL) statement to manage the growth of a transaction log file
To control the maximum the size of a log file in KB, MB, GB, and TB units or to set growth to UNLIMITED, use the MAXSIZE option. However, there is no SET
LOGFILE subcommand.
References: https://technet.microsoft.com/en-us/library/ms365418(v=sql.110).aspx#ControlGrowth

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
Kashif
Highly Voted 5 years, 9 months ago
option d is correct
upvoted 11 times
STH
5 years, 9 months ago
More than correct, the answer D is the only good option. Because the correct syntax in T-SQL is : ALTER DATABASE [DB] MODIFY FILE ( NAME = N'Log', MAXSIZE = 2048MB) SET LOGFILE does not exists at all
upvoted 6 times
KC
4 years, 11 months ago
Agreed. https://anyonconsulting.com/business_intelligence/limit-the-database-size-on-sql/
upvoted 2 times
...
...
...
Varad
Highly Voted 5 years, 7 months ago
I agree. Option D is correct. In ALTER DATABASE there is no "SET LOGFILE" Option.
upvoted 6 times
...
course104
Most Recent 4 years, 4 months ago
no "SET LOGFILE" command, but ALTER DATABASE [AdventureWorks2012] MODIFY FILE ( NAME = N'AdventureWorks2012_log', MAXSIZE = 2147442688KB ) GO
upvoted 1 times
...
da
4 years, 8 months ago
I think is D
upvoted 2 times
Twabam
4 years, 5 months ago
It is correct
upvoted 1 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 ...