
Ultimate access to all questions.
A new data engineering team has been assigned to an ELT project. The new data engineering team will need full privileges on the database customers to fully manage the project. Which of the following commands can be used to grant full permissions on the database to the new data engineering team?
A
GRANT USAGE ON DATABASE customers TO team;
B
GRANT ALL PRIVILEGES ON DATABASE team TO customers;
C
GRANT SELECT PRIVILEGES ON DATABASE customers TO teams;
D
GRANT SELECT CREATE MODIFY USAGE PRIVILEGES ON DATABASE customers TO team;
E
GRANT ALL PRIVILEGES ON DATABASE customers TO team;
Explanation:
The correct answer is E because:
GRANT ALL PRIVILEGES ON DATABASE customers TO team; - This is the correct syntax for granting all privileges on a database to a user or group in Databricks Unity Catalog.
Why other options are incorrect:
GRANT USAGE ON DATABASE customers TO team; - This only grants USAGE privilege, not full privileges.GRANT ALL PRIVILEGES ON DATABASE team TO customers; - This reverses the database and recipient, granting privileges on database 'team' to 'customers'.GRANT SELECT PRIVILEGES ON DATABASE customers TO teams; - This only grants SELECT privileges, not full privileges, and has a typo ('teams' instead of 'team').GRANT SELECT CREATE MODIFY USAGE PRIVILEGES ON DATABASE customers TO team; - This lists specific privileges but is not the standard way to grant all privileges. The correct syntax uses ALL PRIVILEGES.Key Points:
ALL PRIVILEGES on a database includes: CREATE TABLE, CREATE VIEW, CREATE FUNCTION, CREATE MATERIALIZED VIEW, MODIFY, SELECT, READ VOLUME, WRITE VOLUME, and USAGE.GRANT ALL PRIVILEGES ON DATABASE <database_name> TO <principal>;This question tests knowledge of Databricks Unity Catalog privilege management for database-level permissions.