exam questions

Exam DP-200 All Questions

View all questions & answers for the DP-200 exam

Exam DP-200 topic 2 question 17 discussion

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

A company uses Azure SQL Database to store sales transaction data. Field sales employees need an offline copy of the database that includes last year's sales on their laptops when there is no internet connection available.
You need to create the offline export copy.
Which three options can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Export to a BACPAC file by using Azure Cloud Shell, and save the file to an Azure storage account
  • B. Export to a BACPAC file by using SQL Server Management Studio. Save the file to an Azure storage account
  • C. Export to a BACPAC file by using the Azure portal
  • D. Export to a BACPAC file by using Azure PowerShell and save the file locally
  • E. Export to a BACPAC file by using the SqlPackage utility
Show Suggested Answer Hide Answer
Suggested Answer: BCE 🗳️
You can export to a BACPAC file using the Azure portal.
You can export to a BACPAC file using SQL Server Management Studio (SSMS). The newest versions of SQL Server Management Studio provide a wizard to export an Azure SQL database to a BACPAC file.
You can export to a BACPAC file using the SQLPackage utility.
Incorrect Answers:
D: You can export to a BACPAC file using PowerShell. Use the New-AzSqlDatabaseExport cmdlet to submit an export database request to the Azure SQL
Database service. Depending on the size of your database, the export operation may take some time to complete. However, the file is not stored locally.
References:
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-export

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
STH
Highly Voted 5 years, 6 months ago
Shouldn't the solution be C, D and E ? All tools are valid way to create the BACPAC file, but A and B store it online to Azure Storage, so it cannot be accessed offline
upvoted 31 times
Frederi
5 years, 5 months ago
The question is not how to distribute the offline copy, but how to create the original export, which would then be distributed.
upvoted 4 times
goodzilla
5 years, 2 months ago
agree with STH "...includes last year's sales on their laptops when there is no internet connection available.". If there is no internet connection, no way to connect to Azure BLOB storage
upvoted 3 times
cowtown
4 years, 10 months ago
When it's not available != no network access ever.
upvoted 3 times
...
...
...
AshCool
4 years ago
Without internet how you access azure portal?
upvoted 4 times
...
111222333
3 years, 12 months ago
You cannot really save a BACPAC file locally using PowerShell either - only to Azure Storage account. To export with PowerShell, you must use command "New-AzSqlDatabaseExport", and you have to specify a parameter "-StorageUri" which specifies Blob location: https://docs.microsoft.com/en-us/powershell/module/az.sql/new-azsqldatabaseexport?view=azps-5.9.0 So, answer D also stores it online and hence is not correct.
upvoted 2 times
...
...
cnuusd
Highly Voted 5 years, 4 months ago
Correct Answer : B , C and E
upvoted 12 times
...
LordSnoek
Most Recent 3 years, 11 months ago
its B,D,E - according to Whizlabs
upvoted 1 times
...
Hevz
3 years, 11 months ago
Azure SQL Managed Instance does not currently support exporting a database to a BACPAC file using Azure PowerShell. To export a managed instance into a BACPAC file, use SQL Server Management Studio or SQLPackage.
upvoted 1 times
...
hoangton
3 years, 11 months ago
C,D,E because A,B are save data to Azure storage account
upvoted 2 times
...
111222333
3 years, 12 months ago
Correct answer is B, C, E. I came to this conclusion by eliminating incorrect ones. There are 4 ways to export an SQL Database to a BACPAC file: 1. Export using Azure Portal -> only to Storage Account 2. Export using SQLPackage command-line utility -> to local destination 3. Export using SQL Server Management Studio -> to local or to Storage Account 4. Export using PowerShell -> only to Storage Account So, answer A is incorrect because you cannot export a BACPAC file by using Cloud Shell. Answer D is incorrect because you cannot save a BACPAC file locally using PowerShell, but only to Storage account. Another thing to note is that I think it is assumed that people will download BACPAC file from Azure Storage Account right after it is saved there and have them locally when the Internet breaks.
upvoted 4 times
111222333
3 years, 12 months ago
Just to elaborate a bit more on D, I think that Microsoft purposely wrote the incorrect statement "and save the file locally" so we can interpret it as an invalid statement. (Even though you can save it to Storage Account and download it locally like with Azure portal.) Notice how they do not emphasize where to save files in answers C and E, and how they emphasize Storage Account in answers A and B. That's why I think that the emphasis is on the part "and save the file locally".
upvoted 1 times
...
...
Maky2365
3 years, 12 months ago
answer should be C, D & E. moreover Option A & B are itself saying to save the file to Azure Storage Account and getting the file from Azure Storage Account is practically impossible with internet connection.
upvoted 2 times
...
SorinXp
4 years ago
"Field sales employees need an offline copy of the database that includes last yearג€™s sales on their laptops when there is no internet connection available." -> The BACPAC file contains only metadata, no data. How is it possible to include the last year sales?
upvoted 1 times
...
cadio30
4 years ago
CDE are the appropriate answers
upvoted 2 times
cadio30
3 years, 12 months ago
B,C,D,E are ways to perform database export process though if the requirement is to have the file locally then the appropriate solution are C,D,E. Both C and D requires azure blob storage to store the copy and in option D, it was stated that it will save the file locally. The option E is straight forward the user indicates the target drive and folder before the export begins. As for option 'B' using it exports the data into the local drive but it was directed to azure storage account.
upvoted 1 times
...
...
dbdev
4 years ago
CDE: https://www.sqlshack.com/how-to-perform-azure-sql-database-import-export-operations-using-powershell/
upvoted 1 times
...
It should be C,D,E
upvoted 1 times
...
Jzerpa_ccs
4 years, 2 months ago
the key is here "on their laptops when there is no internet connection available" If you don't have an internet connection, how do you access a blob storage? I think C, D and E
upvoted 1 times
...
ck1729
4 years, 2 months ago
B, D, E. Azure Portal cannot be an option. please see link below. https://docs.microsoft.com/en-us/azure/azure-sql/database/database-export
upvoted 2 times
...
JohnCrawford
4 years, 4 months ago
I expect the issue with the PowerShell option is that while it can be used to export the BACPAC it is not exported to local storage. From the wording of that choice it seems to imply it is a direct export to local storage which is not possible.
upvoted 1 times
...
KRV
4 years, 4 months ago
Option B , D & E , since even though you can create a backup using the Azure Portal, the backup won’t be available locally. Export to a BACPAC file by using SQL Server Management Studio. Save the file to an Azure storage account Export to a BACPAC file by using Azure PowerShell and save the file locally Export to a BACPAC file by using the SqlPackage utility
upvoted 1 times
...
syu31svc
4 years, 5 months ago
I would go for BCE as the link provided supports it
upvoted 2 times
...
hart232
4 years, 7 months ago
As far as I have searched - Export to a BACPAC file by using Azure Cloud Shell is not possible - Cannot save the BACPAC file locally via a straight forward Azure powershell command So, the answers given are correct in the sense that they can produce a BACPAC file for consumption.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago