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

- Free Preparation Discussions

Snowflake Exam DSA-C02 Topic 1 Question 33 Discussion

Actual exam question for Snowflake's DSA-C02 exam
Question #: 33
Topic #: 1
[All DSA-C02 Questions]

Mark the correct steps for saving the contents of a DataFrame to a Snowflake table as part of Moving Data from Spark to Snowflake?

Show Suggested Answer Hide Answer
Suggested Answer: C

Moving Data from Spark to Snowflake

The steps for saving the contents of a DataFrame to a Snowflake table are similar to writing from Snowflake to Spark:

1. Use the write() method of the DataFrame to construct a DataFrameWriter.

2. Specify SNOWFLAKE_SOURCE_NAME using the format() method.

3. Specify the connector options using either the option() or options() method.

4. Use the dbtable option to specify the table to which data is written.

5. Use the mode() method to specify the save mode for the content.

Examples

1. df.write

2. .format(SNOWFLAKE_SOURCE_NAME)

3. .options(sfOptions)

4. .option('dbtable', 't2')

5. .mode(SaveMode.Overwrite)

6. .save()


Contribute your Thoughts:

Frank
1 months ago
The answer is C, no doubt. Though I'm honestly surprised they didn't include an option that involves throwing the data at the Snowflake server and hoping it sticks. That's how I usually do it.
upvoted 0 times
Cheryl
5 days ago
Haha, throwing data at the server and hoping it sticks sounds like a risky move!
upvoted 0 times
...
Veronique
7 days ago
I always go with the correct steps, C is the way to go.
upvoted 0 times
...
...
Lemuel
1 months ago
I'm going with C. Who needs step-by-step instructions when you've got the power of Spark? This is like a walk in the park... or a walk on the moon, in the case of Snowflake.
upvoted 0 times
...
Rasheeda
1 months ago
C is definitely the way to go. I've used this approach a bunch of times, it's rock solid. But hey, at least the other options don't involve using a ouija board to communicate with the Snowflake API, right?
upvoted 0 times
Karan
23 days ago
User4: Definitely, C is the most reliable method for saving DataFrame to Snowflake.
upvoted 0 times
...
Sarah
24 days ago
User3: I agree, C is the best option for moving data from Spark to Snowflake.
upvoted 0 times
...
Kathrine
25 days ago
User2: Yeah, C is the correct steps for saving DataFrame to Snowflake table.
upvoted 0 times
...
Fabiola
27 days ago
User1: C is definitely the way to go. I've used this approach a bunch of times, it's rock solid.
upvoted 0 times
...
...
Casie
2 months ago
Wait, is this a trick question? I'm going to go with B just to be safe. Snowflake is like a magical unicorn, you never know what's going to happen.
upvoted 0 times
Lawanda
2 days ago
User3: I'm not sure, but I'll go with option B just to be safe.
upvoted 0 times
...
Justine
4 days ago
User2: I agree, option C looks like the right choice.
upvoted 0 times
...
Jess
1 months ago
User1: I think the correct steps are in option C.
upvoted 0 times
...
Jaime
1 months ago
User3: Yeah, I'm going with option C as well.
upvoted 0 times
...
Margurite
1 months ago
User2: I agree, option C looks like the right choice.
upvoted 0 times
...
Barney
1 months ago
User1: I think the correct steps are in option C.
upvoted 0 times
...
...
Theodora
2 months ago
Hmm, I'm pretty sure the correct answer is C. Gotta love those Spark DataFrameWriter methods!
upvoted 0 times
Glory
22 days ago
Thanks for clarifying, C it is for saving DataFrame to Snowflake.
upvoted 0 times
...
Jeanice
1 months ago
I always get confused with these steps, but C seems to be the right one.
upvoted 0 times
...
Rory
1 months ago
Yes, C is the correct choice. The DataFrameWriter methods are really helpful.
upvoted 0 times
...
Shizue
2 months ago
I think you're right, C is the correct answer for saving DataFrame to Snowflake.
upvoted 0 times
...
...
Tarra
2 months ago
I agree with Karan, option C seems to be the right choice.
upvoted 0 times
...
Karan
2 months ago
I think the correct steps are in option C.
upvoted 0 times
...

Save Cancel