New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-300 Exam - Topic 8 Question 20 Discussion

Actual exam question for Microsoft's DP-300 exam
Question #: 20
Topic #: 8
[All DP-300 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

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.


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

Contribute your Thoughts:

0/2000 characters
Lenna
4 months ago
sp_clean_db_free_space sounds interesting, but I’ve never tried it.
upvoted 0 times
...
Serina
4 months ago
Wait, does shrinking really help in the long run?
upvoted 0 times
...
Lauryn
4 months ago
I agree with Daisy, that’s what I usually use!
upvoted 0 times
...
Charlena
5 months ago
I think DBCC SHRINKFILE is better for specific files.
upvoted 0 times
...
Daisy
5 months ago
DBCC SHRINKDATABASE is the way to go!
upvoted 0 times
...
Marget
5 months ago
I feel like I might have seen sp_clean_db_file_free_space in a different context, but I can't remember how it relates to minimizing space.
upvoted 0 times
...
Vallie
5 months ago
DBCC SHRINKFILE sounds familiar for reducing file sizes, but I wonder if it applies to both data and log files equally.
upvoted 0 times
...
Mattie
5 months ago
I think sp_clean_db_free_space was mentioned in a practice question, but I can't recall what it specifically does.
upvoted 0 times
...
Peter
5 months ago
I remember we discussed DBCC SHRINKDATABASE in class, but I'm not sure if it's the best option for just the log files.
upvoted 0 times
...
Luann
5 months ago
A, Countermeasures, is the correct answer. It's the natural progression after establishing the specific risk points - you need to create the plans and strategies to address those risks.
upvoted 0 times
...
Irving
5 months ago
This one seems pretty straightforward. I'm pretty sure the Visual Experience Composer for assisted channels is the right choice for a voice assistant channel.
upvoted 0 times
...
Judy
5 months ago
Ah, this is a tricky one. I'm torn between B and D. I'll have to make an educated guess on this. Hopefully, I can narrow it down.
upvoted 0 times
...

Save Cancel