exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 1 question 22 discussion

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

HOTSPOT -
You are performing exploratory analysis of bus fare data in an Azure Data Lake Storage Gen2 account by using an Azure Synapse Analytics serverless SQL pool.
You execute the Transact-SQL query shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: CSV files that have file named beginning with "tripdata_2020"

Box 2: a header -
FIRSTROW = 'first_row'
Specifies the number of the first row to load. The default is 1 and indicates the first row in the specified data file. The row numbers are determined by counting the row terminators. FIRSTROW is 1-based.
Example: Option firstrow is used to skip the first row in the CSV file that represents header in this case (firstrow=2). select top 10 * from openrowset( bulk 'https://pandemicdatalake.blob.core.windows.net/public/curated/covid-19/ecdc_cases/latest/ecdc_cases.csv', format = 'csv', parser_version = '2.0', firstrow = 2 ) as rows
Reference:
https://docs.microsoft.com/en-us/azure/synapse-analytics/sql/develop-openrowset https://docs.microsoft.com/en-us/azure/synapse-analytics/sql/query-single-csv-file

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
learnazureportal
Highly Voted 1 year, 9 months ago
The provided answer is correct.
upvoted 10 times
...
tesen_tolga
Highly Voted 1 year, 4 months ago
This is a DP-203 question.
upvoted 10 times
...
Ciupaz
Most Recent 8 months, 1 week ago
Exam DP-203: Data Engineering on Microsoft Azure
upvoted 1 times
gboy115
8 months ago
if it is a DP-203 question, is a question like this still on the DP-300 Exam?
upvoted 1 times
Ciupaz
6 months, 3 weeks ago
Azure Data Lake Storage questions are not present in the MeasureUp practice test, and also in the DP-300 documentation.
upvoted 1 times
...
...
...
ajaykadu555
10 months, 3 weeks ago
The answer is correct
upvoted 1 times
...
CaptainJameson
1 year, 6 months ago
I would go with header. In all examples I've seen from ms they use first_row=2 when there is a header row, which is not used. https://docs.microsoft.com/en-us/azure/synapse-analytics/sql/query-single-csv-file
upvoted 1 times
...
o2091
1 year, 7 months ago
2da- a data, its ok?
upvoted 1 times
...
azure2022
1 year, 10 months ago
2nd one should be a data https://docs.microsoft.com/en-us/sql/t-sql/functions/openrowset-transact-sql?view=sql-server-ver15
upvoted 1 times
pepix74
1 year, 9 months ago
the query stated to start from 2nd row, so the first row should be header (and therefore discarded) and 2nd the data - just my opinion
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 ...