Administering a SQL Database Infrastructure — Question 36

You have a SQL Server 2012 database named DB1.
You have a backup device named Device1.
You discover that the log file for the database is full.
You need to ensure that DB1 can complete transactions.
The solution must not affect the chain of log sequence numbers (LSNs).
Which code segment should you execute?

Answer options

Correct answer: B

Explanation

The correct answer is B, as backing up the transaction log allows for the database to continue processing transactions while preserving the log sequence numbers. Option A does not back up the log correctly, option C has a typo and an invalid recovery option, and option D improperly truncates the log without a proper backup, risking data loss.