Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam SnowPro Advanced Data Engineer All Questions

View all questions & answers for the SnowPro Advanced Data Engineer exam

Exam SnowPro Advanced Data Engineer topic 1 question 10 discussion

Actual exam question from Snowflake's SnowPro Advanced Data Engineer
Question #: 10
Topic #: 1
[All SnowPro Advanced Data Engineer Questions]

Which methods can be used to create a DataFrame object in Snowpark? (Choose three.)

  • A. session.jdbc_connection()
  • B. session.read.json()
  • C. session.table()
  • D. DataFrame.write()
  • E. session.builder()
  • F. session.sql()
Show Suggested Answer Hide Answer
Suggested Answer: BCF 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
aba2s
2 months, 1 week ago
Selected Answer: BCF
• To create a DataFrame to hold the data from a file in a stage, use the read property to get a DataFrameReader object. In the DataFrameReader object, call the method corresponding to the format of the data in the file: # Create DataFrames from data in a stage. df_json = session.read.json("@my_stage2/data1.json") • To create a DataFrame to hold the results of a SQL query, call the sql method: # Create a DataFrame from a SQL query df_sql = session.sql("SELECT name from sample_product_data") • To create a DataFrame from data in a table, view, or stream, call the table method: # Create a DataFrame from the data in the "sample_product_data" table. df_table = session.table("sample_product_data")
upvoted 1 times
...
rbeam
7 months, 4 weeks ago
Selected Answer: BCF
https://docs.snowflake.com/en/developer-guide/snowpark/python/working-with-dataframes
upvoted 1 times
...
stopthisnow
1 year ago
Selected Answer: BCF
df = session.sql("select 1/2") https://docs.snowflake.com/en/developer-guide/snowpark/reference/python/latest/api/snowflake.snowpark.DataFrame
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...