Certified Data Engineer Associate Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Associate Exam - Question 14


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?

Show Answer
Correct Answer: CD

To complete the task of creating a new table while indicating that it contains personally identifiable information (PII), you should use the COMMENT keyword. The correct syntax is COMMENT "Contains PII". This will ensure that anyone who describes the table will see the comment indicating that the table contains PII.

Discussion

17 comments
Sign in to comment
HuroyeOption: D
Nov 15, 2023

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.

Gems1Option: D
Jul 29, 2023

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';

softthinkersOption: C
May 4, 2023

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.

VirendevOption: D
May 21, 2023

syntax of C is wrong.

[Removed]
May 24, 2023

Exactly. The correct syntax for table properties is: TBLPROPERTIES ('foo'='bar');

AtnafuOption: D
Jul 7, 2023

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.

agAshishOption: C
Feb 1, 2024

answer C : CREATE TABLE new_table AS SELECT customer_name FROM original_table WHERE country = 'France' TBLPROPERTIES ('PII'='true');

naxacod574Option: D
Apr 20, 2023

Option D

Varma_SaraswathulaOption: D
Apr 21, 2023

D https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-ddl-create-table-using

vctrhugoOption: D
Sep 3, 2023

D. COMMENT "Contains PII"

KalavathiPOption: D
Sep 26, 2023

D is correct

chris_machOption: D
Sep 29, 2023

D is correct

awofalusOption: D
Nov 7, 2023

correct :D

SerGreyOption: D
Jan 3, 2024

Correct answer is D

a_51Option: D
Mar 16, 2024

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.

ItmmaOption: D
Mar 19, 2024

D is correct

benni_aleOption: D
Apr 27, 2024

D is correct

3fbc31bOption: D
Jul 8, 2024

The correct answer is D. There is no syntax for TBLPROPERTIES PII.