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
- A. BACKUP LCG DB1 TO Device1 WITH COPY_ONLY
- B. BACKUP LOG DB1 TO Device1
- C. BACKUP LOG DB1 TO Device1 WITH NCRECCVERY
- D. BACKUP LOG D31 TO Device1 WITH TRUNCATE ONLY
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.