QuestionQ174

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 set up data access with ACLs.

The user_ltv table has this schema:

email STRING, age INT, ltv INT

The following view definition is run:

Question Image

An analyst who is not a member of the marketing group runs the following query:

SELECT * FROM email_ltv  

Which statement describes the results returned by this query?

Explanation

is_member('marketing') returns false for a user outside that workspace group. Consequently, the CASE expression returns 'REDACTED' as email in every row, while ltv is selected unchanged; age is not part of the view. Databricks documents this dynamic-view pattern for column masking.

Learn more

Community Discussion

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