QuestionQ10

VerifiedData Governance & Quality

A new data engineering team has been assigned to work on a project. The team will need access to database customers in order to see what tables already exist. The team has its own group team.

Which of the following commands can be used to grant the necessary permission on the entire database to the new team?

Explanation

The current exam tests access control in Unity Catalog, where the schema-level usage privilege is USE SCHEMA, which took over from the legacy USAGE privilege (still used by Hive metastore table ACLs), and Databricks SQL accepts DATABASE as a synonym for SCHEMA. So GRANT USE SCHEMA ON DATABASE customers TO team; gives the group the required permission on the whole customers schema. USE SCHEMA is required but not sufficient on its own: the team also needs USE CATALOG on the parent catalog, and to see a table with SQL it needs a privilege on that table, such as SELECT granted on the schema, which all its tables inherit. Option A is invalid because VIEW is a securable object type, not a privilege. Options B and D grant CREATE TABLE, which lets the team create new tables rather than access the existing ones, and D also swaps the schema and the group. Option C swaps the catalog and the group. This is Databricks SQL, not PostgreSQL, so PostgreSQL's CONNECT privilege does not apply.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!