SpinTheMic
Pro

Interview practice question

Masking PII for most users

Data Engineering · Databricks · Intermediate

Customer email and phone must be visible only to the support team. Everyone else should see masked values. How do you do it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Create column mask functions for email and phone.
  • Return real values for the support group, masked values for others.
  • Attach masks to the columns with ALTER TABLE.
  • Tag PII columns for discovery.
  • Masks apply in all query paths.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics