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 questionsThe 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.
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. ---
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.
Keep practicing
Take the free DATABRICKS-DATA-ENGINEER-ASSOCIATE practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DATABRICKS-DATA-ENGINEER-ASSOCIATE practice questions
- Question 1In which of the following scenarios should a data engineer use the MERGE INTO command ins…
- Question 2Which of the following data workloads will utilize a Gold table as its source?
- Question 3A data engineer has developed a data pipeline to ingest data from a JSON source using Aut…
- Question 4Which two components function in the DB platform architecture’s control plane? (Choose tw…
- Question 5Which of the following code blocks will remove the rows where the value in column age is …
- Question 7Which of the following statements regarding the relationship between Silver tables and Br…
