BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks-Machine-Learning-Professional Topic 12 Question 29 Discussion

Actual exam question for Databricks's Databricks-Machine-Learning-Professional exam
Question #: 29
Topic #: 12
[All Databricks-Machine-Learning-Professional Questions]

A data scientist has created a Python function compute_features that returns a Spark DataFrame with the following schema:

The resulting DataFrame is assigned to the features_df variable. The data scientist wants to create a Feature Store table using features_df.

Which of the following code blocks can they use to create and populate the Feature Store table using the Feature Store Client fs?

A)

B)

C)

features_df.write.mode("fs").path("new_table")

D)

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Myong
19 days ago
Haha, Option E? 'features_df.write.mode(feature).path(new_table)'? Is that like, a special 'feature-flavored' write mode or something?
upvoted 0 times
...
Bette
22 days ago
Option A is the winner here. The `fs.write_table()` method is the way to go. Although, I have to say, the 'new_table' name is a bit uninspired. How about 'feature_extravaganza'?
upvoted 0 times
Van
4 days ago
I think the 'feature_extravaganza' name suggestion is fun and creative!
upvoted 0 times
...
Valentine
12 days ago
I agree, Option A is the best choice for creating and populating the Feature Store table.
upvoted 0 times
...
...
Hyman
1 months ago
Option C? Really? 'features_df.write.mode(fs).path(new_table)'? That's not how you interact with the Feature Store, my dude.
upvoted 0 times
...
Annette
1 months ago
Hmm, I'd go with Option D. The `fs.create_feature_table()` method looks like it's specifically designed for this use case.
upvoted 0 times
Ty
2 days ago
I think Option D is the correct one as well. The `fs.create_feature_table()` method seems to be the way to go.
upvoted 0 times
...
Edna
7 days ago
I agree, Option D seems to be the most appropriate for creating and populating the Feature Store table.
upvoted 0 times
...
Shala
15 days ago
Option D looks good to me too. The `fs.create_feature_table()` method seems like the right choice.
upvoted 0 times
...
...
Alease
1 months ago
Hmm, that makes sense. Let's see what others think before making a final decision.
upvoted 0 times
...
Catrice
1 months ago
I disagree, I believe Option B is the right choice because it uses the Feature Store Client fs.
upvoted 0 times
...
Nydia
2 months ago
Option B seems the most straightforward way to create the Feature Store table. No need to overcomplicate things.
upvoted 0 times
Devora
16 days ago
Yeah, Option B seems like the most straightforward solution.
upvoted 0 times
...
Chan
28 days ago
I agree, Option B looks simple and effective.
upvoted 0 times
...
Carey
1 months ago
I think Option B is the best choice.
upvoted 0 times
...
...
Alease
2 months ago
I think Option A is the correct code block to create the Feature Store table.
upvoted 0 times
...

Save Cancel