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 5 Question 30 Discussion

Actual exam question for Databricks's Databricks-Certified-Data-Engineer-Associate exam
Question #: 30
Topic #: 5
[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:

Alease
4 months ago
Ah, the age-old battle between commenting and setting table properties. I'd go with C, just to be on the safe side. Plus, it's more fun to type out 'COMMENT PII' than some boring old property.
upvoted 0 times
Lorrie
4 months ago
Definitely, 'COMMENT PII' is the way to go for sure.
upvoted 0 times
...
Antione
4 months ago
Yeah, I think it's better to be explicit with 'COMMENT PII'.
upvoted 0 times
...
Karan
4 months ago
I agree, 'COMMENT PII' seems like the safer option here.
upvoted 0 times
...
...
Buffy
5 months ago
I'm still learning the ins and outs of data engineering, but I think C makes the most sense here. Gotta love those PII comments!
upvoted 0 times
Cammy
4 months ago
Definitely! It's crucial to handle sensitive data properly in data engineering.
upvoted 0 times
...
Carmen
4 months ago
That's correct! Including a comment indicating the table contains personally identifiable information is important for compliance.
upvoted 0 times
...
Winfred
4 months ago
C) \'COMMENT PII\'
upvoted 0 times
...
...
Jade
5 months ago
I totally got this one! The answer is definitely C. Who needs table properties when you can just comment on it, am I right?
upvoted 0 times
...
Lavera
5 months ago
I'm not sure, but I think D) TBLPROPERTIES PII might also work to indicate PII.
upvoted 0 times
...
Tegan
5 months ago
Wait, why are we even creating a table for French customers? Shouldn't we just move them all to Canada? Kidding, kidding, I know it's part of the job. C is the way to go.
upvoted 0 times
Cammy
5 months ago
Exactly, we have to make sure we handle personally identifiable information properly. C it is.
upvoted 0 times
...
Cherilyn
5 months ago
Haha, good one! But yeah, we need to follow the organization policy. C is the right choice.
upvoted 0 times
...
...
Elliott
5 months ago
I agree with Yong, adding a comment indicating PII is important for compliance.
upvoted 0 times
...
Craig
5 months ago
Wow, this is a tricky one! I'm pretty sure the answer is C, 'COMMENT PII'.
upvoted 0 times
Glenna
4 months ago
The answer is definitely 'COMMENT PII'.
upvoted 0 times
...
Myong
4 months ago
Yes, 'COMMENT PII' is the correct answer.
upvoted 0 times
...
Karl
5 months ago
I agree, it should be 'COMMENT PII'.
upvoted 0 times
...
An
5 months ago
I think it's C, 'COMMENT PII'.
upvoted 0 times
...
...
Yong
5 months ago
I think the correct answer is C) "COMMENT PII".
upvoted 0 times
...

Save Cancel