Databricks Machine Learning Associate Question 429
Select 4You are working on a machine learning project in Databricks and want to store a feature table in the Unity Catalog for consistent reuse across multiple teams. Which of the following steps are necessary to create a feature store table in Unity Catalog?
- A
Ensure that the Unity Catalog is enabled in your workspace and you have access to the desired catalog and schema.
- B
Use the
databricks.feature_store.create_feature_table()function and specify the Unity Catalog schema in thenameparameter. - C
Set up a Delta table in Unity Catalog and register it manually in the Feature Store UI.
- D
Write the feature data to Unity Catalog using the
FeatureStoreClient.create_table()method while specifyingcatalogandschemaparameters. - E
Configure access control policies in Unity Catalog to allow other teams to query the feature table.
Show answer and explanation
Correct answers: A, B, D, E
Explanation
To create a feature store table in Unity Catalog, you need to ensure that Unity Catalog is enabled and you have access to the appropriate catalog and schema. You can use either the databricks.feature_store.create_feature_table() function or the FeatureStoreClient.create_table() method to define the table and write feature data. Additionally, setting up proper access control policies in Unity Catalog ensures that other teams can access and query the table as intended. Manually registering a Delta table in the Feature Store UI is not part of this workflow.
- A. Correct.
Correct: Unity Catalog must be enabled, and you need access to the catalog and schema to store a feature table.
- B. Correct.
Correct: The
databricks.feature_store.create_feature_table()function allows you to specify the Unity Catalog schema and create a feature table. - C. Incorrect.
Incorrect: Setting up a Delta table and registering it manually in the Feature Store UI is not a valid or required workflow for creating a feature store table in Unity Catalog.
- D. Correct.
Correct: Using the
FeatureStoreClient.create_table()method with the correctcatalogandschemaparameters enables writing feature data to Unity Catalog. - E. Correct.
Correct: Configuring access control policies is necessary to enable other teams to query and use the feature table stored in Unity Catalog.