Recall & Review
beginner
What is a row access policy in Snowflake?
A row access policy controls which rows a user can see or query in a table based on conditions. It helps protect sensitive data by filtering rows dynamically.
Click to reveal answer
intermediate
How do you apply a row access policy to a table in Snowflake?
You attach the row access policy to a table column using the ALTER TABLE command with ADD ROW ACCESS POLICY. This enforces the policy when querying the table.
Click to reveal answer
beginner
What is the purpose of the USING clause in a row access policy?
The USING clause defines the condition that determines if a row is visible to the user. It returns TRUE for rows the user can access and FALSE for rows to hide.
Click to reveal answer
intermediate
Can row access policies be combined with masking policies in Snowflake?
Yes, row access policies filter rows, while masking policies hide or transform column data. Using both together enhances data security by controlling both row visibility and column content.
Click to reveal answer
beginner
What happens if a user queries a table with a row access policy and no rows meet the policy condition?
The user sees an empty result set because the policy filters out all rows. This prevents unauthorized access to any data in the table.
Click to reveal answer
What does a row access policy in Snowflake control?
✗ Incorrect
Row access policies control row-level visibility, not columns or table size.
How do you attach a row access policy to a table?
✗ Incorrect
You attach row access policies with ALTER TABLE ADD ROW ACCESS POLICY.
What does the USING clause in a row access policy specify?
✗ Incorrect
The USING clause defines the condition that filters rows.
If no rows meet the row access policy condition, what is the query result?
✗ Incorrect
The query returns no rows if none meet the policy condition.
Can row access policies and masking policies be used together?
✗ Incorrect
They can be combined to control both row visibility and column data.
Explain how a row access policy works in Snowflake and why it is useful.
Think about how you hide certain rows from some users.
You got /4 concepts.
Describe the steps to create and apply a row access policy in Snowflake.
Consider policy creation and linking to a table.
You got /4 concepts.