QuestionQ58

Secure and govern Unity Catalog objects

You have an Azure Databricks workspace attached to a Unity Catalog metastore named metastore1. metastore1 contains a catalog named catalog1.

You need to create a new schema named schema2 that meets the following requirements:

  • Is contained in catalog1.
  • Uses abfss://[email protected]/data as its managed location.

Which SQL statement should you execute?

  • A CREATE SCHEMA catalog1.schema2 -LOCATION ‘abfss://[email protected]/data’;
  • B CREATE SCHEMA catalog1.schema2 -MANAGED LOCATION ‘abfss://[email protected]/data’;
  • C CREATE CATALOG schema2 -MANAGED LOCATION ‘abfss://[email protected]/data’;
  • D CREATE SCHEMA catalog1.schema2 -WITH DBPROPERTIES (LOCATION-’abfss://[email protected]/data’);
Explanation

A Unity Catalog schema is created with the qualified name catalog1.schema2. Its managed storage root must be specified using the MANAGED LOCATION clause; LOCATION is not supported for Unity Catalog schemas. The storage path must also correspond to a configured external location for which the required managed-storage privilege is held.

Learn more

Community Discussion

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