exam questions

Exam 70-464 All Questions

View all questions & answers for the 70-464 exam

Exam 70-464 topic 1 question 116 discussion

Actual exam question from Microsoft's 70-464
Question #: 116
Topic #: 1
[All 70-464 Questions]

You have a SQL Server database.
The recovery model is set to full. The transaction log is backed up every night.
You discover that the transaction log never decreases in size.
You execute the DBCC SHRINKFILE statement for the transaction log and you discover that the transaction log is unaffected.
You need to ensure that you can reduce the size of the transaction log.
What should you do first?

  • A. Truncate the transaction log
  • B. Kill long-running transactions
  • C. Change the recovery model to bulk-logged
  • D. Perform a full backup
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
The transaction log must be truncated before running the DBCC SHRINKFILE operation.
Incorrect Answers:
C: The transaction log can be truncated by setting the database recovery model to SIMPLE, or by backing up the log and then running the DBCC SHRINKFILE operation again.
References:
https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-shrinkfile-transact-sql?view=sql-server-2017

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
Dolous
4 years, 5 months ago
Answer B
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 ...