exam questions

Exam DP-200 All Questions

View all questions & answers for the DP-200 exam

Exam DP-200 topic 6 question 74 discussion

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

You have an Azure Data Lake Storage Gen2 account. You have a number of CSV files loaded in the account. Each file has a header row. After the header row is a property that is formatted by carriage return (/r) and line feed (/n).
You need to load the files daily as a batch into Azure SQL Data warehouse using Polybase. You have to skip the header row when the files are imported.
Which of the following actions would you take to implement this requirement? (Choose three.)

  • A. Create an external data source and ensure to use the abfs location
  • B. Create an external data source and ensure to use the Hadoop location
  • C. Create an external file format and set the First_row option
  • D. Create a database scoped credential that uses OAuth2 token and a key
  • E. Use the CREATE EXTERNAL TABLE AS SELECT and create a view that removes the empty row
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️
The Microsoft documentation highlights the steps required to load data from Azure Data Lake Gen2 to an Azure SQL Data warehouse.
One of the steps is to create a database scoped credential:

Another step is to create the external data source using 'abfs' as the file location:

Create the external data source -
Use this CREATE EXTERNAL DATA SOURCE command to store the location of the data.

And you can use the FIRST_ROW parameter to skip the first row of the file.

FIRST_ROW = First_row_int -
Specifies the row number that is read first in all files during a PolyBase load. This parameter can take values 1-15. If the value is set to two, the first row in every file (header row) is skipped when the data is loaded. Rows are skipped based on the existence of row terminators (/r/n, /r, /n). When this option is used for export, rows are added to the data to make sure the file can be read with no data loss. If the value is set to >2, the first row exported is the Column names of the external table.
Reference:
https://docs.microsoft.com/en-us/azure/sql-data-warehouse/sql-data-warehouse-load-from-azure-data-lake-store https://docs.microsoft.com/en-us/sql/t-sql/statements/create-external-file-format-transact-sql?view=sql-server-ver15

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
elimey
3 years, 10 months ago
correct Answer is ACE
upvoted 3 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 ...