Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

Posted by Rana on Jun 22, 2024 at 12:03 PM

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?

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


Get Premium Databricks Certified Data Engineer Associate Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
KE
Kerrie 10 months ago
Not sure if D is the right choice, sounds too vague.
LA
Lashaunda 11 months ago
A seems like a good option too.
SA
Samira 11 months ago
Wait, isn't PII just a comment?
EL
Elli 11 months ago
Definitely agree with D!
FR
Frederica 11 months ago
I think it's D, TBLPROPERTIES PII.
IL
Iluminada 12 months ago
I believe option C is just a comment and not a property. I think we need to use TBLPROPERTIES for this one.
LA
Latonia 12 months ago
I’m a bit confused about the syntax here. Is it 'COMMENT' or 'TBLPROPERTIES'? I wish I had practiced more examples.
KE
Kenia 12 months ago
I remember a similar question where we had to specify table properties, so I feel like it could be option D.
RO
Roy 1 year ago
I think the correct answer might be related to table properties, but I'm not entirely sure which one to use.
VI
Virgie 1 year ago
Hmm, I'm a little confused by the wording of this question. Is it asking for the exact line of code to fill in the blank, or just the general approach? I want to make sure I understand the requirements before I commit to an answer.
LO
Loise 1 year ago
Okay, I've got this. The blank should be filled with the 'TBLPROPERTIES PII' option. That's the correct syntax for adding a table property to indicate the presence of personally identifiable information. Easy peasy!
CR
Cristal 1 year ago
Hmm, this looks straightforward. I think the key is to identify the correct syntax for adding a table property to indicate the PII data. Let me think through the options carefully.
KE
Keneth 1 year ago
I'm a bit unsure about this one. The question seems to be asking for a specific line of code, but I'm not totally clear on the syntax for adding table properties. I'll need to review the documentation to make sure I understand the right approach.
MA
Malika 1 year ago
I feel pretty confident about this one. The key things to remember are that you can use non-alphabetic characters in table names, and the row name length isn't limited to 16 characters. I'll select those two options.
BR
Brinda 1 year ago
This seems like a straightforward question about program management. I'll carefully read through the options and think about the key phases of a program to determine the best answer.
VE
Veda 2 years 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.
TY
Ty 2 years ago
↳ replying to Veda
Yeah, we definitely need to include the table property for personally identifiable information.
DA
Dannette 2 years ago
↳ replying to Veda
I agree, 511 doesn't make any sense in this context.
DE
Deja 2 years ago
I believe the answer is indeed C) "COMMENT PII" because it explicitly mentions PII in the comment.
MA
Margarett 2 years ago
I'm not sure, but I think D) TBLPROPERTIES PII might also work to indicate PII in the new table.
IN
Ines 2 years ago
I agree with Chandra, including a comment indicating PII is important for compliance.
HO
Hobert 2 years 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.
KE
Kenia 2 years 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.
DA
Daniela 2 years ago
↳ replying to Kenia
User 2
NI
Nicolette 2 years ago
↳ replying to Kenia
User 1
CH
Chandra 2 years ago
I think the correct answer is C) "COMMENT PII".
0/2000 characters

Save Cancel