
Ultimate access to all questions.
A new data engineer has started at a company. The data engineer has recently been added to the company's Databricks workspace as new.engineer@company.com. The data engineer needs to be able to query the table sales in the database retail. The new data engineer already has been granted USAGE on the database retail. Which of the following commands can be used to grant the appropriate permissions to the new data engineer?
A
GRANT USAGE ON TABLE sales TO new.engineer@company.com;
B
GRANT CREATE ON TABLE sales TO new.engineer@company.com;
C
GRANT SELECT ON TABLE sales TO new.engineer@company.com;
D
GRANT USAGE ON TABLE new.engineer@company.com TO sales;
E
GRANT SELECT ON TABLE new.engineer@company.com TO sales;
Explanation:
To query a table in Databricks Unity Catalog, a user needs the SELECT permission on that specific table. Let's break down the requirements:
Current permissions: The data engineer already has USAGE on the database retail. This allows them to see the database and its objects, but not necessarily access the tables within it.
Required permission: To query (read data from) the sales table, the data engineer needs the SELECT permission on that table.
Analysis of options:
GRANT USAGE ON TABLE sales - This grants the ability to see the table exists, but not to query it.GRANT CREATE ON TABLE sales - This grants permission to create new tables in the same schema, not to query existing tables.GRANT SELECT ON TABLE sales - CORRECT. This grants the permission to query (SELECT) data from the sales table.GRANT USAGE ON TABLE new.engineer@company.com TO sales - This syntax is incorrect and reversed; it's trying to grant permissions on a user to a table.GRANT SELECT ON TABLE new.engineer@company.com TO sales - This syntax is also incorrect and reversed.Key point: In Databricks Unity Catalog, permissions are hierarchical. While USAGE on the database is required to see the database, SELECT on the table is required to actually query the data. The data engineer already has database USAGE, so only table-level SELECT permission is needed.
Correct Answer: C