
Ultimate access to all questions.
A new data engineering team team has been assigned to an ELT project: The new data engineering team will need full privileges on the table sales 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 ALL PRIVILEGES ON TABLE sales TO team;
B
GRANT SELECT CREATE MODIFY ON TABLE sales TO team;
C
GRANT SELECT ON TABLE sales TO team;
D
GRANT USAGE ON TABLE sales TO team;
E
GRANT ALL PRIVILEGES ON TABLE team TO sales;
Explanation:
Option A is correct because:
GRANT ALL PRIVILEGES ON TABLE <table_name> TO <principal>;Why other options are incorrect:
GRANT SELECT CREATE MODIFY ON TABLE sales TO team; - This syntax is invalid. In Databricks Unity Catalog, you cannot combine multiple privilege types in a single GRANT statement like this. You would need separate GRANT statements for each privilege.GRANT SELECT ON TABLE sales TO team; - This only grants SELECT privilege, not full permissions needed to manage the project.GRANT USAGE ON TABLE sales TO team; - USAGE privilege is for schemas/databases, not tables. For tables, you need specific privileges like SELECT, MODIFY, etc.GRANT ALL PRIVILEGES ON TABLE team TO sales; - This reverses the table and principal, attempting to grant privileges on a table called 'team' to 'sales', which doesn't make sense in this context.Key Points:
ALL PRIVILEGES is a special privilege that grants all available privileges on the objectGRANT ALL PRIVILEGES ON TABLE <table_name> TO <principal>;