Dynamic Views for Security Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Data Access Control

What you'll be asked

  1. Which SQL function is primarily used within a dynamic view definition to filter rows based on the current user's identity in Unity Catalog?
  2. When creating a dynamic view to mask sensitive data, what is the recommended approach to ensure that users with the 'Account Admin' role can still see the raw data if necessary?
  3. A data engineer creates a dynamic view using 'current_user()'. If a user is granted 'SELECT' access to the view but does not have access to the underlying base table, what happens when they query the view?
  4. You want to implement column-level masking where the 'email' column is masked for everyone except the user 'analyst@company.com'. Which SQL construct is most appropriate for this dynamic view?
  5. Consider a scenario where you have a dynamic view that uses 'IS_MEMBER('finance_team')' to filter rows. If a user is added to the 'finance_team' group, how long does it take for the view to reflect the updated access permissions?

Answers and explanations come after you submit.