SpinTheMic
Pro

Interview practice question

Region-based data access on one table

Data Engineering · Snowflake · Intermediate

Sales teams from five regions should each see only their region's rows in the same fact table. How do you implement it?

What a strong answer covers

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

  • Create a mapping table of role or user to allowed regions.
  • Create a row access policy that checks this mapping.
  • Attach the policy to the fact table.
  • Global leadership roles can be mapped to all regions.
  • Adding a region or user is just a row in the mapping table.
Practise this topic

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

See all topics