New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks-Certified-Data-Engineer-Associate Topic 1 Question 28 Discussion

Actual exam question for Databricks's Databricks-Certified-Data-Engineer-Associate exam
Question #: 28
Topic #: 1
[All Databricks-Certified-Data-Engineer-Associate Questions]

A data engineer wants to create a new table containing the names of customers who live in France.

They have written the following command:

CREATE TABLE customersInFrance

_____ AS

SELECT id,

firstName,

lastName

FROM customerLocations

WHERE country = 'FRANCE';

A senior data engineer mentions that it is organization policy to include a table property indicating that the new table includes personally identifiable information (Pll).

Which line of code fills in the above blank to successfully complete the task?

Show Suggested Answer Hide Answer
Suggested Answer: D

To include a property indicating that a table contains personally identifiable information (PII), the TBLPROPERTIES keyword is used in SQL to add metadata to a table. The correct syntax to define a table property for PII is as follows:

CREATE TABLE customersInFrance

USING DELTA

TBLPROPERTIES ('PII' = 'true')

AS

SELECT id,

firstName,

lastName

FROM customerLocations

WHERE country = 'FRANCE';

The TBLPROPERTIES ('PII' = 'true') line correctly sets a table property that tags the table as containing personally identifiable information. This is in accordance with organizational policies for handling sensitive information.

Reference: Databricks documentation on Delta Lake: Delta Lake on Databricks


Contribute your Thoughts:

Veda
5 months ago
511? Really? That's just nonsense. I bet the person who suggested that is the same one who keeps asking for 'JSON support' in our SQL queries.
upvoted 0 times
Ty
4 months ago
Yeah, we definitely need to include the table property for personally identifiable information.
upvoted 0 times
...
Dannette
4 months ago
I agree, 511 doesn't make any sense in this context.
upvoted 0 times
...
...
Deja
5 months ago
I believe the answer is indeed C) "COMMENT PII" because it explicitly mentions PII in the comment.
upvoted 0 times
...
Margarett
5 months ago
I'm not sure, but I think D) TBLPROPERTIES PII might also work to indicate PII in the new table.
upvoted 0 times
...
Ines
5 months ago
I agree with Chandra, including a comment indicating PII is important for compliance.
upvoted 0 times
...
Hobert
6 months ago
Heh, 'COMMENT PII' sounds like it's trying to make a pun. Come on, let's be professional here. 'TBLPROPERTIES 'PII'=true' is the way to go.
upvoted 0 times
...
Kenia
6 months ago
Looks like a simple query to create a new table with customer data from France. I'd go with 'COMMENT 'Contains PII' to add the policy-required table property.
upvoted 0 times
Daniela
5 months ago
User 2
upvoted 0 times
...
Nicolette
6 months ago
User 1
upvoted 0 times
...
...
Chandra
6 months ago
I think the correct answer is C) "COMMENT PII".
upvoted 0 times
...

Save Cancel