CertKeen

Databricks Data Engineer Associate · Free practice question 9 of 12

Transferring object ownership

The owner of the Unity Catalog table ops.gold.kpis at Tarrant Foods is leaving the company, and the team wants the group platform_admins to become the table's owner. Which statement does this?

  1. A.GRANT OWNERSHIP ON TABLE ops.gold.kpis TO `platform_admins`
  2. B.ALTER TABLE ops.gold.kpis OWNER TO `platform_admins`
  3. C.GRANT ALL PRIVILEGES ON TABLE ops.gold.kpis TO `platform_admins`
  4. D.ALTER TABLE ops.gold.kpis SET TBLPROPERTIES ('owner' = 'platform_admins')
Show answer and explanation

Correct answer: B. ALTER TABLE ops.gold.kpis OWNER TO `platform_admins`

Why: In Unity Catalog, ownership of an object is transferred with ALTER ... OWNER TO followed by the new principal, which can be a group. GRANT OWNERSHIP is not Databricks SQL syntax, ALL PRIVILEGES grants privileges without changing the owner, and ownership is not controlled by a table property.

More free Databricks Data Engineer Associate questions