Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks Certified Data Engineer Professional Topic 1 Question 1 Discussion

Actual exam question for Databricks's Databricks Certified Data Engineer Professional exam
Question #: 1
Topic #: 1
[All Databricks Certified Data Engineer Professional Questions]

A table named user_ltv is being used to create a view that will be used by data analysis 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:

An analyze who is not a member of the auditing group executing the following query:

Which result will be returned by this query?

Show Suggested Answer Hide Answer
Suggested Answer: A

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.


Contribute your Thoughts:

Mammie
1 years ago
Hmm, that makes sense too. It's a tough one, I'm still not sure.
upvoted 0 times
...
Natalie
1 years ago
I see where you're coming from, Lorrie. But I think it's actually A) All columns will be displayed normally for those records that have an age greater than 18; records not meeting this condition will be omitted.
upvoted 0 times
...
Lorrie
1 years ago
I disagree, I believe the correct answer is C) All age values less than 18 will be returned as null values all other columns will be returned with the values in user_ltv.
upvoted 0 times
...
Mammie
1 years ago
I think the answer is B) All columns will be displayed normally for those records that have an age greater than 17; records not meeting this condition will be omitted.
upvoted 0 times
...
Octavio
1 years ago
I think C is the correct answer because it mentions returning null values for age less than 18.
upvoted 0 times
...
Paris
1 years ago
But the query says 'age greater than 18', so A seems more logical.
upvoted 0 times
...
Dana
1 years ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Paris
1 years ago
I think the answer is A.
upvoted 0 times
...

Save Cancel