exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 7 question 3 discussion

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

HOTSPOT -
You have an Azure SQL Database managed instance named sqldbmi1 that contains a database name Sales.
You need to initiate a backup of Sales.
How should you complete the Transact-SQL statement? 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: TO URL = 'https://storage1.blob.core.windows.net/blob1/Sales.bak'
Native database backup in Azure SQL Managed Instance.
You can backup any database using standard BACKUP T-SQL command:

BACKUP DATABASE tpcc2501 -
TO URL = 'https://myacc.blob.core.windows.net/testcontainer/tpcc2501.bak'

WITH COPY_ONLY -

Box 2: COPY_ONLY -
Reference:
https://techcommunity.microsoft.com/t5/azure-sql-database/native-database-backup-in-azure-sql-managed-instance/ba-p/386154

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
Phund
Highly Voted 3 years, 3 months ago
1.URL : SQLMI is paas on cloud, so backup must stored on blob storage 2.COPY_ONLY: SQLMI has "managed" everything, includes backup chain, so user can not break it's chain by using different method than COPY_ONLY.
upvoted 11 times
...
MustafaElmasry
Highly Voted 3 years, 6 months ago
Option 2 is wrong because in Azure SQL PaaS you don't have any access to any disk or the operating system at all
upvoted 8 times
learnazureportal
2 years, 8 months ago
it is trying to store backup file within the blob storage. what is the problem!
upvoted 4 times
jerkyflexoff
2 years, 5 months ago
I think the comments on here do more harm than good...
upvoted 4 times
...
...
...
bsk1983
Most Recent 8 months ago
Shown answer is correct 1) Backup to blob (https:url.....) 2) copy_only because it's a SQL managed instance. NOT SQL PAAS
upvoted 2 times
...
IchiruTake
9 months, 2 weeks ago
TO URL = ‘https://storage1.blob.core.windows.net/blob1/Sales.bak’ COPY_ONLY
upvoted 2 times
...
reachmymind
2 years, 1 month ago
The given answer is correct Box 1: TO URL = 'https://storage1.blob.core.windows.net/blob1/Sales.bak' Box 2: COPY_ONLY https://techcommunity.microsoft.com/t5/azure-database-support-blog/automate-native-database-backup-of-azure-sql-managed-instance-to/ba-p/3067092
upvoted 4 times
...
erssiws
2 years, 8 months ago
The provided answer is correct. A good explanation about why COPY_ONLY is necessary: https://dba.stackexchange.com/questions/45876/difference-between-full-backup-and-copy-only-full-backup
upvoted 3 times
...
KNG
2 years, 10 months ago
https://docs.microsoft.com/en-us/azure/azure-sql/managed-instance/transact-sql-tsql-differences-sql-server SQL Managed Instance has automatic backups, so users can create full database COPY_ONLY backups. Differential, log, and file snapshot backups aren't supported. With a SQL Managed Instance, you can back up an instance database only to an Azure Blob storage account: Only BACKUP TO URL is supported. FILE, TAPE, and backup devices aren't supported. Most of the general WITH options are supported. COPY_ONLY is mandatory. FILE_SNAPSHOT isn't supported. Tape options: REWIND, NOREWIND, UNLOAD, and NOUNLOAD aren't supported. Log-specific options: NORECOVERY, STANDBY, and NO_TRUNCATE aren't supported.
upvoted 6 times
...
Luke97
3 years, 4 months ago
The only mandatory property is COPY_ONLY. Azure SQL Managed Instance owns the backup chain. This means that you cannot perform database backup that breaks the backup chain. Azure SQL Managed Instance allows you to perform only COPY_ONLY backups.
upvoted 4 times
...
talktorahuljoshi
3 years, 7 months ago
https://techcommunity.microsoft.com/t5/azure-sql-database/native-database-backup-in-azure-sql-managed-instance/ba-p/386154 Managed Instance will support native BACKUP like SQL Server. In the beginning, only backup to URL/Azure Blob Storage will be supported. In this post you will see how to backup database to Azure Blob Storage using Managed Instance.
upvoted 4 times
...
talktorahuljoshi
3 years, 7 months ago
https://argonsys.com/microsoft-cloud/library/native-database-backup-in-azure-sql-managed-instance/#:~:text=The%20only%20mandatory%20property%20is,to%20perform%20only%20COPY_ONLY%20backups.
upvoted 1 times
...
Vivek1vemula
3 years, 7 months ago
why option 2 is wrong> to disk = X:\
upvoted 2 times
Pranava_GCP
1 year ago
Option 2 is wrong because Azure SQL PaaS offering has no access to disk drive or operating system which are IaaS offering.
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago