Databricks Machine Learning Associate Question 434
Select 3You are working on a machine learning project in Databricks, and you need to write a DataFrame containing processed features to a Feature Store table for future use. Which of the following steps are required to successfully write the features to the Feature Store table?
- A
Ensure the DataFrame includes a primary key column to uniquely identify each record.
- B
Use the
FeatureStoreClient.create_tablemethod to write the DataFrame to the Feature Store table. - C
Specify the table name and schema correctly when writing the DataFrame to the Feature Store.
- D
Register the Feature Store table with the MLflow experiment using the
mlflow.register_feature_tablemethod. - E
Use the
FeatureStoreClient.write_tablemethod to persist the DataFrame to the Feature Store.
Show answer and explanation
Correct answers: A, C, E
Explanation
To write data to a Feature Store table in Databricks, you need to ensure the DataFrame includes a primary key column for unique identification, specify the correct table name and schema, and use the FeatureStoreClient.write_table method. While the FeatureStoreClient.create_table method is used to define a new feature table, it is not used for writing data. Additionally, MLflow does not directly handle Feature Store registration.
- A. Correct.
Correct: A primary key is required for each record in a Feature Store table to uniquely identify the data and enable efficient retrieval.
- B. Incorrect.
Incorrect: The
FeatureStoreClient.create_tablemethod is used to create a feature table, not to write data to an existing table. - C. Correct.
Correct: The table name and schema must be correctly specified to ensure the data is written to the appropriate Feature Store table.
- D. Incorrect.
Incorrect: MLflow does not have a method to directly register Feature Store tables. Feature Store operations are independent of MLflow registration.
- E. Correct.
Correct: The
FeatureStoreClient.write_tablemethod is specifically used to write a DataFrame to a Feature Store table.