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