04-18-2023 06:55 AM
I have recently completed the Data Engineering with Databricks v3 course on the Partner Academy. Some of the quiz questions have me mixed up.
Specifically, I am wondering about this question from the "Manage Data Access with Unity Catalog" module.
I have gathered from submitting with different answers that the answer it is marking as correct is "GRANT CREATE ON SCHEMA customers TO `data.engineer@company.com`;" This has left me confused about a few things:
Perhaps the better way to ask this is to ignore all of the options provided...how would you accomplish the task? I would simply grant the team member USAGE and SELECT on the schema, which would apply to all current and future tables within. no?
04-24-2023 08:52 PM
@Kenny Shaevel :
Yes, there is a hierarchy of permissions within schema permissions in Databricks. Here is the order of permissions, from least to most permissive:
Regarding your specific questions:
In summary, the best approach would be to grant the team member USAGE and SELECT on the schema, which would allow them to view the tables within the schema without granting unnecessary permissions.
04-19-2023 06:26 AM
@Kenny Shaevel
I'm really confused with this question tbh. It might refer to the public preview of Unity Catalog.
With Privilege Model Version 1.0 IMO it should look like this:
GRANT USE_SCHEMA ON SCHEMA customers TO `data.engineer@company.com`;
GRANT SELECT ON SCHEMA customers TO `data.engineer@company.com`;
This privileges will allow `data.engineer@company.com` to use customers schema and read tables from it.
https://docs.databricks.com/data-governance/unity-catalog/manage-privileges/privileges.html
04-24-2023 08:52 PM
@Kenny Shaevel :
Yes, there is a hierarchy of permissions within schema permissions in Databricks. Here is the order of permissions, from least to most permissive:
Regarding your specific questions:
In summary, the best approach would be to grant the team member USAGE and SELECT on the schema, which would allow them to view the tables within the schema without granting unnecessary permissions.
04-25-2023 07:30 AM
Thanks, Suteja! This is very clear.
Please also pass on to the appropriate team at Databricks that the quiz has the wrong answer marked.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group