DATABRICKS-DATA-ENGINEER-ASSOCIATE practice question 11 of 25

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 command can be used to grant full permissions on the database to the new data engineering team?

Full set: 177 questions
Answer options
A: grant all privileges on table sales TO team; Correct answer
B: GRANT SELECT ON TABLE sales TO team;
C: GRANT SELECT CREATE MODIFY ON TABLE sales TO team;
D: GRANT ALL PRIVILEGES ON TABLE team TO sales;
Correct Answer:
A. grant all privileges on table sales TO team;
Explanation

The GRANT command is used in SQL to provide access privileges to database objects. To grant a team full permissions to manage a project, they need all applicable privileges on the relevant tables. The ALL PRIVILEGES keyword is the correct and most efficient way to assign all permissions (like SELECT, MODIFY, DELETE, etc.) that a principal can have on a given securable object. The syntax GRANT ALL PRIVILEGES ON TABLE sales TO team; correctly specifies granting all permissions on the sales table to the team principal.

Why Incorrect

B. GRANT SELECT ON TABLE sales TO team; grants only read-only permission, which is insufficient for a team that needs to "fully manage the project."
C. GRANT SELECT CREATE MODIFY ON TABLE sales TO team; is syntactically incorrect. The CREATE privilege applies to schemas or catalogs, not to an existing table.
D. GRANT ALL PRIVILEGES ON TABLE team TO sales; incorrectly reverses the principal and the securable object. It attempts to grant permissions on a table named team to a principal named sales. ---

References

1. Databricks SQL Language Reference

GRANT:

Documentation: "Grants a privilege on a securable object to a principal." The syntax is specified as GRANT privilegetypes ON securableobject TO principal. The privilegetypes section explicitly lists ALL PRIVILEGES as an option to grant all privileges applicable to the securableobject.

Source: Databricks Documentation > SQL reference > Data definition statements > GRANT.

2. Databricks Unity Catalog Documentation

Privileges and securable objects:

Documentation: This document outlines the privilege model in Unity Catalog. For tables

it lists privileges such as SELECT (query the table) and MODIFY (add

delete

and update data). ALL PRIVILEGES is used to grant all privileges available to the securable object type.

Source: Databricks Documentation > Unity Catalog > Manage privileges in Unity Catalog > Unity Catalog privileges and securable objects.

Scroll to Top