exam questions

Exam Certified Data Engineer Associate All Questions

View all questions & answers for the Certified Data Engineer Associate exam

Exam Certified Data Engineer Associate topic 1 question 14 discussion

Actual exam question from Databricks's Certified Data Engineer Associate
Question #: 14
Topic #: 1
[All Certified Data Engineer Associate Questions]

A data engineer wants to create a new table containing the names of customers that live in France.
They have written the following command:

A senior data engineer mentions that it is organization policy to include a table property indicating that the new table includes personally identifiable information (PII).
Which of the following lines of code fills in the above blank to successfully complete the task?

  • A. There is no way to indicate whether a table contains PII.
  • B. "COMMENT PII"
  • C. TBLPROPERTIES PII
  • D. COMMENT "Contains PII"
  • E. PII
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Huroye
Highly Voted 1 year, 5 months ago
The correct answer is D. COMMENT "Contains PII". Context matters. Yes, you can use Table Property to add additional metadata. But you cannot view that property when you describe the table. With the Comment "this is ..." anyone who describe the table <DESC <table name> will see the comment.
upvoted 11 times
...
Gems1
Highly Voted 1 year, 9 months ago
D Ref:https://www.databricks.com/discover/pages/data-quality-management CREATE TABLE my_table (id INT COMMENT 'Unique Identification Number', name STRING COMMENT 'PII', age INT COMMENT 'PII') TBLPROPERTIES ('contains_pii'=True) COMMENT 'Contains PII';
upvoted 8 times
...
SoumyaHK
Most Recent 4 days, 16 hours ago
Selected Answer: D
The response is D
upvoted 1 times
...
3fbc31b
9 months, 3 weeks ago
Selected Answer: D
The correct answer is D. There is no syntax for TBLPROPERTIES PII.
upvoted 1 times
...
benni_ale
1 year ago
Selected Answer: D
D is correct
upvoted 1 times
...
Itmma
1 year, 1 month ago
Selected Answer: D
D is correct
upvoted 1 times
...
a_51
1 year, 1 month ago
Selected Answer: D
https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-create-table-using.html COMMENT column_comment A string literal to describe the column.
upvoted 1 times
...
agAshish
1 year, 2 months ago
answer C : CREATE TABLE new_table AS SELECT customer_name FROM original_table WHERE country = 'France' TBLPROPERTIES ('PII'='true');
upvoted 2 times
...
SerGrey
1 year, 3 months ago
Selected Answer: D
Correct answer is D
upvoted 1 times
...
awofalus
1 year, 5 months ago
Selected Answer: D
correct :D
upvoted 1 times
...
chris_mach
1 year, 7 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
KalavathiP
1 year, 7 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
vctrhugo
1 year, 7 months ago
Selected Answer: D
D. COMMENT "Contains PII"
upvoted 1 times
...
Atnafu
1 year, 9 months ago
D The COMMENT keyword is used to add a comment to a table. The comment can be used to provide additional information about the table, such as its purpose or the data that it contains. In this case, the data engineer wants to add a comment to the customersInFrance table indicating that the table contains PII. The following line of code will do this: Code snippet COMMENT "Contains PII" Use code with caution. Learn more This will add the comment "Contains PII" to the customersInFrance table. The other options are not valid ways to indicate that a table contains PII. The TBLPROPERTIES keyword is used to set the table properties, but there is no property for indicating whether a table contains PII. The PII keyword is not a valid keyword in SQL. Therefore, the only valid way to indicate that a table contains PII is to use the COMMENT keyword.
upvoted 3 times
...
Virendev
1 year, 11 months ago
Selected Answer: D
syntax of C is wrong.
upvoted 2 times
[Removed]
1 year, 11 months ago
Exactly. The correct syntax for table properties is: TBLPROPERTIES ('foo'='bar');
upvoted 1 times
...
...
softthinkers
1 year, 12 months ago
Correct answer should be C asommand creates a new table called "customersInFrance" with the properties of Personally Identifiable Information (PII) and selects the columns ID, FIRSTNAME, LASTNAME, ADDRESS, and PHONE_NUMBER from the existing "customers" table where the country is France.
upvoted 2 times
...
D https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-ddl-create-table-using
upvoted 1 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