exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 53 discussion

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

HOTSPOT -
You are building a database in an Azure Synapse Analytics serverless SQL pool.
You have data stored in Parquet files in an Azure Data Lake Storege Gen2 container.
Records are structured as shown in the following sample.
{
"id": 123,
"address_housenumber": "19c",
"address_line": "Memory Lane",
"applicant1_name": "Jane",
"applicant2_name": "Dev"
}
The records contain two applicants at most.
You need to build a table that includes only the address fields.
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: CREATE EXTERNAL TABLE -
An external table points to data located in Hadoop, Azure Storage blob, or Azure Data Lake Storage. External tables are used to read data from files or write data to files in Azure Storage. With Synapse SQL, you can use external tables to read external data using dedicated SQL pool or serverless SQL pool.
Syntax:
CREATE EXTERNAL TABLE { database_name.schema_name.table_name | schema_name.table_name | table_name }
( <column_definition> [ ,...n ] )
WITH (
LOCATION = 'folder_or_filepath',
DATA_SOURCE = external_data_source_name,
FILE_FORMAT = external_file_format_name

Box 2. OPENROWSET -
When using serverless SQL pool, CETAS is used to create an external table and export query results to Azure Storage Blob or Azure Data Lake Storage Gen2.
Example:

AS -
SELECT decennialTime, stateName, SUM(population) AS population

FROM -
OPENROWSET(BULK 'https://azureopendatastorage.blob.core.windows.net/censusdatacontainer/release/us_population_county/year=*/*.parquet',
FORMAT='PARQUET') AS [r]
GROUP BY decennialTime, stateName

GO -
Reference:
https://docs.microsoft.com/en-us/azure/synapse-analytics/sql/develop-tables-external-tables

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
Deeksha1234
Highly Voted 2 years, 8 months ago
Correct answer
upvoted 20 times
...
Piantoni
Most Recent 5 months, 1 week ago
1) CREATE EXTERNAL TABLE 2) OPENROWSET
upvoted 1 times
...
dgerok
1 year ago
1) CREATE EXTERNAL TABLE (because this is SERVERLESS sql pool) 2) OPENROWSET
upvoted 3 times
...
kkk5566
1 year, 7 months ago
correct
upvoted 1 times
...
cjb0
2 years, 7 months ago
Why is it External Table if it's a Serverless SQL pool?
upvoted 2 times
vctrhugo
1 year, 9 months ago
"You have data stored in Parquet files in an Azure Data Lake Storege Gen2 container."
upvoted 2 times
...
NORLI
2 years, 6 months ago
because serverless SQL pool does not have internal tables
upvoted 15 times
...
...
dkamat
2 years, 9 months ago
correct
upvoted 3 times
...
SandipSingha
2 years, 11 months ago
correct
upvoted 3 times
...
Feljoud
2 years, 11 months ago
correct
upvoted 4 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