nerdexam
Databricks

CERTIFIED-DATA-ENGINEER-PROFESSIONAL · Question #115

A table named user_ltv is being used to create a view that will be used by data analysts on various teams. Users in the workspace are configured into groups, which are used for setting up data access

The correct answer is A. All columns will be displayed normally for those records that have an age greater than 18; records. Given the CASE statement in the view definition, the result set for a user not in the auditing group would be constrained by the ELSE condition, which filters out records based on age. Therefore, the view will return all columns normally for records with an age greater than 18, a

Data Governance and Security

Question

A table named user_ltv is being used to create a view that will be used by data analysts on various teams. Users in the workspace are configured into groups, which are used for setting up data access using ACLs. The user_ltv table has the following schema:

email STRING, age INT, ltv INT The following view definition is executed:

An analyst who is not a member of the auditing group executes the following query:

SELECT * FROM user_ltv_no_minors Which statement describes the results returned by this query?

Exhibit

CERTIFIED-DATA-ENGINEER-PROFESSIONAL question #115 exhibit

Options

  • AAll columns will be displayed normally for those records that have an age greater than 18; records
  • BAll columns will be displayed normally for those records that have an age greater than 17; records
  • CAll age values less than 18 will be returned as null values all other columns will be returned with
  • DAll records from all columns will be displayed with the values in user_ltv.
  • EAll values for the age column will be returned as null values, all other columns will be returned

How the community answered

(55 responses)
  • A
    87% (48)
  • C
    7% (4)
  • D
    4% (2)
  • E
    2% (1)

Explanation

Given the CASE statement in the view definition, the result set for a user not in the auditing group would be constrained by the ELSE condition, which filters out records based on age. Therefore, the view will return all columns normally for records with an age greater than 18, as users who are not in the auditing group will not satisfy the is_member('auditing') condition. Records not meeting the age > 18 condition will not be displayed.

Topics

#SQL Views#Data Filtering#Access Control

Community Discussion

No community discussion yet for this question.

Full CERTIFIED-DATA-ENGINEER-PROFESSIONAL Practice