ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 128 - DP-300 discussion

Report
Export

You have an Azure SQL database named sqldb1.

You need to minimize the amount of space by the data and log files of sqldb1.

What should you run?

A.
DBCC SHRINKDATABASE
Answers
A.
DBCC SHRINKDATABASE
B.
sp_clean_db_free_space
Answers
B.
sp_clean_db_free_space
C.
sp_clean_db_file_free_space
Answers
C.
sp_clean_db_file_free_space
D.
DBCC SHRINKFILE
Answers
D.
DBCC SHRINKFILE
Suggested answer: D

Explanation:

DBCC SHRINKDATABASE shrinks the size of the data and log files in the specified database.

Incorrect Answers:

D: To shrink one data or log file at a time for a specific database, execute the DBCC SHRINKFILE command.

Reference: https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-shrinkdatabase-transact-sql

asked 02/10/2024
Evelina Turco
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first