QuestionQ207

VerifiedEnsuring Data Security and Compliance

A table named user_ltv is used to create a view for data analysts across several teams. Workspace users are configured in groups, which are used to set up data access with ACLs.

The user_ltv table has this schema:

email STRING, age INT, ltv INT

The following view definition is executed:

Question Image

An analyst who is not a member of the auditing group runs this query:

SELECT * FROM user_ltv_no_minors  

Which statement describes the results returned by this query?

Explanation

For a user who is not in the auditing workspace group, is_member("auditing") evaluates to false, so the WHERE clause applies age >= 18. Rows for users aged 18 or older are returned with all selected column values unchanged; rows for younger users are excluded. Databricks documents is_member() as checking membership in a workspace-level group and supports this CASE-based pattern for row-level permissions in dynamic views.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!