QuestionQ168

VerifiedEnsuring Data Security and Compliance

A table named user_ltv is used to create a view for data analysts across various teams. Workspace users are configured into groups, which are used to configure data access through 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 marketing group runs this query:

SELECT * FROM email_ltv -  

Which statement describes the results returned by this query?

Explanation

For a user outside the marketing group, is_member('marketing') is false, so the CASE expression returns 'REDACTED' as email for every row. The view projects that aliased email expression and ltv only. Databricks documents this dynamic-view masking pattern, in which a CASE expression returns 'REDACTED' for users who lack the required group membership.

Learn more

Community Discussion

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