exam questions

Exam DP-200 All Questions

View all questions & answers for the DP-200 exam

Exam DP-200 topic 6 question 7 discussion

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

A company has an Azure SQL data warehouse. They want to use PolyBase to retrieve data from an Azure Blob storage account and ingest into the Azure SQL data warehouse. The files are stored in parquet format. The data needs to be loaded into a table called XYZ_sales.
Which of the following actions need to be performed to implement this requirement? (Choose four.)

  • A. Create an external file format that would map to the parquet-based files
  • B. Load the data into a staging table
  • C. Create an external table called XYZ_sales_details
  • D. Create an external data source for the Azure Blob storage account
  • E. Create a master key on the database
  • F. Configure Polybase to use the Azure Blob storage account
Show Suggested Answer Hide Answer
Suggested Answer: BCDE 🗳️
There is an article on github as part of the Microsoft documentation that provides details on how to load data into an Azure SQL data warehouse from an Azure
Blob storage account. The key steps are:
Creating a master key in the database.
Creating an external data source for the Azure Blob storage account:
3. Create a master key for the MySampleDataWarehouse database. You only need to create a master key once per database.
CREATE MASTER KEY;
4. Run the following CREATE EXTERNAL DATA SOURCE statement to define the location of the Azure blob. This is the location of the external taxi cab data. To run a command that you have appended to the query window, highlight the commands you wish to run and click Execute.

Next you load the data. But it is always beneficial to load the data into a staging table first:
Load the data into your data warehouse.
This section uses the external tables you just defined to load the sample data from Azure Storage Blob to SQL Data Warehouse.
[!NOTE] This tutorial loads the data directly into the final table. In a production environment, you will usually use CREATE TABLE AS SELECT to load into a staging table. While data is in the staging table you can perform any necessary transformations. To append the data in the staging table to a production table, you can use the INSERT...SELECT statement. For more information, see Inserting data into a production table.
Since this is clearly provided in the documentation, all other options are incorrect.

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
TonReurts
Highly Voted 3 years, 9 months ago
How can you read the parquet files without defining the format? So A should be part of the answer.
upvoted 6 times
...
elimey
Most Recent 3 years, 10 months ago
the question literally said the data needs to be load to xyz_sails. Yet the answer select xyz_sails_Details !! the answer is not correct
upvoted 3 times
victor90
3 years, 6 months ago
I agree. Although the external tables are required but because it's clearly a different name, I guess the answer is ABDE. https://docs.microsoft.com/en-us/sql/relational-databases/polybase/polybase-t-sql-objects?view=sql-server-ver15#create-external-tables-for-azure-data-lake-store
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 ...