exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 7 question 2 discussion

Actual exam question from Microsoft's DP-300
Question #: 2
Topic #: 7
[All DP-300 Questions]

HOTSPOT -
You have SQL Server on an Azure virtual machine that contains a database named DB1.
The database reports a CHECKSUM error.
You need to recover the database.
How should you complete the statements? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: SINGLE_USER -
The specified database must be in single-user mode to use one of the following repair options.

Box 2: REPAIR_ALLOW_DATA_LOSS -
REPAIR_ALLOW_DATA_LOSS tries to repair all reported errors. These repairs can cause some data loss.
Note: The REPAIR_ALLOW_DATA_LOSS option is a supported feature but it may not always be the best option for bringing a database to a physically consistent state. If successful, the REPAIR_ALLOW_DATA_LOSS option may result in some data loss. In fact, it may result in more data lost than if a user were to restore the database from the last known good backup.
Incorrect Answers:

REPAIR_FAST -
Maintains syntax for backward compatibility only. No repair actions are performed.

Box 3: MULTI_USER -

MULTI_USER -
All users that have the appropriate permissions to connect to the database are allowed.
Reference:
https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-checkdb-transact-sql

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
Bharat
Highly Voted 2 years, 4 months ago
for Box 2, the answer is correct. However the wrong option is high-lighted.
upvoted 20 times
Dawn7
1 year, 1 month ago
It is correct now, right?
upvoted 2 times
...
...
JohnCrawford
Highly Voted 1 year, 10 months ago
For any Admins or Admins to be...these answers present the wrong way of doing this in the real world. The correct real world methodology (assuming you have all the time in the world which you seldom will have) is to recover from last known good backup. If you want to fix the database then first set the database in emergency mode not single_user. This prevents another thread grabbing the access to the database before you. Then you would run DBCC CHECKDB with the REPAIR_REBUILD option. This will not cause data loss. After that because you're the only one with access from a query window now issue the ALTER DATABASE SET SINGLE_USER statement and, if approved, use the REPAIR_ALLOW_DATA_LOSS statement and then set the database back to multiuser.
upvoted 12 times
...
eric0718
Most Recent 6 months, 3 weeks ago
SINGLE_USER REPAIR_ALLOW_DATA_LOSS MULTI USER is correct!
upvoted 2 times
...
Lewy
1 year, 7 months ago
Repair_Fast does nothing: https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-checkdb-transact-sql?view=sql-server-ver15 So it should be REPAIR_ALLOW_DATA_LOSS
upvoted 1 times
...
Raffer
1 year, 8 months ago
SINGLE_USER REPAIR_ALLOW_DATA_LOSS MULTI USER REPAIR_FAST doesn't actually make any changes.
upvoted 10 times
...
eezzykel
1 year, 8 months ago
https://www.stellarinfo.co.in/kb/checksum-error-in-sql-server.php REPAIR_ALLOW_DATA_LOSS is correct answer for BOX 2
upvoted 1 times
...
Jay_Krish
1 year, 8 months ago
So misleading.. some of the discussions here. The correct answer is mentioned in the explanation itself. Incorrect Answers: REPAIR_FAST - Maintains syntax for backward compatibility only. No repair actions are performed. REPAIR_ALLOW_DATA_LOSS is correct answer for Box2
upvoted 3 times
...
mzahyt
1 year, 9 months ago
single_user repair_fast multi_user
upvoted 1 times
...
ssolano
1 year, 10 months ago
Which is the correct answer? Thanks for you help.
upvoted 1 times
drazzaw
1 year, 9 months ago
https://www.stellarinfo.co.in/kb/checksum-error-in-sql-server.php#:~:text=The%20stored%20data%20is%20associated,or%20I%2FO%20operation%20subsystem.
upvoted 1 times
...
...
Dhiva_
2 years ago
https://azure.microsoft.com/en-us/blog/data-integrity-in-azure-sql-database/
upvoted 1 times
...
MustafaElmasry
2 years ago
REPAIR_ALLOW_DATA_LOSS is correct answer but instead of doing repair doe all database we can know the the issue in which table then we can repair these tables only add in your note this option can cause data loss check this link for more information https://www.stellarinfo.co.in/kb/checksum-error-in-sql-server.php
upvoted 3 times
...
HP79
2 years, 2 months ago
Attaching a link for the reference. REPAIR_ALLOW_DATA_LOSS is correct answer for BOX 2. REPAIR_ALLOW_DATA_LOSS Tries to repair all reported errors. These repairs can cause some data loss. REPAIR_FAST Maintains syntax for backward compatibility only. No repair actions are performed. https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-checkdb-transact-sql?view=sql-server-ver15
upvoted 3 times
...
passnow
2 years, 4 months ago
Yes you are tight
upvoted 4 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 ...