Exam SnowPro Advanced Data Engineer All QuestionsBrowse all questions from this exam
Question 10

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

    Correct Answer: B, C, F

    There are multiple methods for creating a DataFrame object in Snowpark. The method session.read.json() allows the creation of a DataFrame from a JSON file. The method session.table() is used to create a DataFrame from an existing table in Snowflake. The method session.sql() allows the creation of a DataFrame by executing a SQL query. While other methods are related to sessions or writing data, they do not directly pertain to creating a DataFrame.

Discussion
stopthisnowOptions: BCF

df = session.sql("select 1/2") https://docs.snowflake.com/en/developer-guide/snowpark/reference/python/latest/api/snowflake.snowpark.DataFrame

rbeamOptions: BCF

https://docs.snowflake.com/en/developer-guide/snowpark/python/working-with-dataframes