
Ultimate access to all questions.
A new data engineering team has been assigned to work on a project. The team will need access to database customers in order to see what tables already exist. The team has its own group team. Which of the following commands can be used to grant the necessary permission on the entire database to the new team?
A
GRANT VIEW ON CATALOG customers TO team;
B
GRANT CREATE ON DATABASE customers TO team;
C
GRANT USAGE ON CATALOG team TO customers;
D
GRANT CREATE ON DATABASE team TO customers;
E
GRANT USAGE ON DATABASE customers TO team;
Explanation:
In Databricks Unity Catalog, the USAGE privilege is required to access and view objects within a database. Here's why option E is correct:
GRANT USAGE ON DATABASE customers TO team;
USAGE is the privilege being grantedDATABASE customers specifies the target databaseTO team specifies the recipient groupWhy other options are incorrect:
A: GRANT VIEW ON CATALOG customers TO team; - Incorrect because:
VIEW is not a valid privilege for catalogs in this contextcustomers is a database, not a catalogB: GRANT CREATE ON DATABASE customers TO team; - Incorrect because:
CREATE privilege allows creating new objects (tables, views) in the databaseC: GRANT USAGE ON CATALOG team TO customers; - Incorrect because:
CATALOG instead of DATABASEteam is a group, not a catalogD: GRANT CREATE ON DATABASE team TO customers; - Incorrect because:
team instead of customers)CREATE privilege instead of USAGEKey Databricks Unity Catalog Privileges:
USAGE: Required to access and view objects in a databaseSELECT: Required to query data from tablesCREATE: Required to create new objects in a databaseMODIFY: Required to modify existing objectsThe team needs USAGE on the database to see what tables exist, which is exactly what option E provides.