exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 15 discussion

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

You have an enterprise data warehouse in Azure Synapse Analytics.
Using PolyBase, you create an external table named [Ext].[Items] to query Parquet files stored in Azure Data Lake Storage Gen2 without importing the data to the data warehouse.
The external table has three columns.
You discover that the Parquet files have a fourth column named ItemID.
Which command should you run to add the ItemID column to the external table?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: C
Incorrect Answers:
A, D: Only these Data Definition Language (DDL) statements are allowed on external tables:
✑ CREATE TABLE and DROP TABLE
✑ CREATE STATISTICS and DROP STATISTICS
✑ CREATE VIEW and DROP VIEW
Reference:
https://docs.microsoft.com/en-us/sql/t-sql/statements/create-external-table-transact-sql

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
Chien_Nguyen_Van
Highly Voted 3 years, 2 months ago
C is correct https://www.examtopics.com/discussions/microsoft/view/19469-exam-dp-200-topic-1-question-27-discussion/
upvoted 58 times
...
baiy
Highly Voted 1 year, 8 months ago
C is correct, since "altering the schema or format of an external SQL table is not supported". https://learn.microsoft.com/en-us/azure/data-explorer/kusto/management/external-sql-tables
upvoted 16 times
...
ELJORDAN23
Most Recent 9 months, 3 weeks ago
Got this question on my exam on january 17, C is correct
upvoted 6 times
...
hassexat
1 year, 2 months ago
C is correct since you need to drop first and create again the external table
upvoted 2 times
...
vigilante89
1 year, 10 months ago
Answer is C. Drop the external table and recreate it. Because the column which needs to be added is the ItemID which seems like a primary key. So we have to drop the table and recreate it. Had it been any other column, we could have used ALTER syntax to add a column like shown below: ALTER EXTERNAL TABLE name action [, ... ] where action is one of: ADD [COLUMN] column_name type DROP [COLUMN] column ALTER [COLUMN] column TYPE type [USING expression] OWNER TO new_owner
upvoted 5 times
...
OldSchool
1 year, 12 months ago
C is Correct
upvoted 1 times
...
Selma97
1 year, 12 months ago
I still can't understand why it's not D.
upvoted 1 times
anto69
1 year, 11 months ago
ALTER statement is not supported on external table, you need to DROP it and CREATE it again
upvoted 10 times
...
...
Deeksha1234
2 years, 2 months ago
correct
upvoted 2 times
...
dsp17
2 years, 4 months ago
C is correct. Even if you are confuse with other options. The clue here is keyword Location while creating external table, LOCATION = 'folder_or_filepath' : Specifies the folder or the file path and file name for the actual data.
upvoted 2 times
...
Ozren
2 years, 7 months ago
Good thing the details are shown here: "The external table has three columns." And the solution yet reveals the column details. This doesn't make any sense to me. If C is the correct answer (only one that seems acceptable), then the question itself is flawed.
upvoted 2 times
dduque10
1 year, 11 months ago
The external table has 3 columns, but the files it references has 4 columns, so the external table has to be altered
upvoted 2 times
...
...
PallaviPatel
2 years, 9 months ago
c is correct.
upvoted 1 times
...
hugoborda
3 years, 1 month ago
Answer is correct
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago