QuestionQ91

VerifiedEnsuring Data Security and Compliance

The data-governance team requires that the "user" table containing Personally Identifiable Information (PII) apply the appropriate masking to the SSN column. Therefore, anyone outside HRAdminGroup must see Social Security numbers masked as ***-**-****.

The team created this masking function:

Question Image

What must the data-governance team do next to meet this goal?

Explanation

A Databricks column mask is applied by associating the masking function with the target column using ALTER TABLE ... ALTER COLUMN ... SET MASK. The ssn_mask function takes a STRING and returns either the original value for HRAdminGroup members or the required masked string, so the ssn column must be a STRING and have ssn_mask set as its mask.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!