SpinTheMic
Pro

Interview practice question

Hiding salary from most users

Data Engineering · Snowflake · Beginner

HR wants the salary column visible only to HR users, while other teams can still query the employee table. How do you do it?

What a strong answer covers

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

  • Create a masking policy that returns salary only for HR roles.
  • Return NULL or a fixed mask for other roles.
  • Attach the policy to the salary column.
  • No need for separate tables or views per team.
  • Test with different roles before rollout.
Practise this topic

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

See all topics