
Ultimate access to all questions.
A data scientist has developed a Python function titled ‘generate_features‘ that produces a Spark DataFrame with two columns: ‘Customer INT‘ and ‘Region STRING‘. The output DataFrame is stored in a variable called ‘feature_set‘. The next step is to create a Feature Store table using ‘feature_set‘ with the Feature Store Client ‘feature_client‘. Which code snippet correctly initiates and populates the Feature Store table?
A
feature_set.write(‘fs‘).saveAs(‘new_feature_table‘)_
B
feature_client.create_table(name=‘new_feature_table‘,primary_keys=‘customer_id‘,df=feature_set,schema=feature_set.schema,description=‘Client features‘)
C
feature_set.write.mode(‘feature‘).saveAsTable(‘new_feature_table‘)_
D
feature_client.create_table(function=‘generate_features‘,schema=feature_set.schema,description=‘Client features‘)
E
feature_client.create_table(name=‘new_feature_table‘,primary_keys=‘customer_id‘,schema=feature_set.schema,description=‘Client features‘)_