フリー問題

SnowPro Specialty: Snowpark のフリー問題 4 / 20 問目

問題文

A developer writes the first script for a new project and needs a session against a Snowflake account, passing the account, user, password, role, warehouse, database, and schema from a configuration object the team already has. Which sequence creates the session?

選択肢

  1. Pass the dictionary directly to the constructor of the session class, which validates the parameters and opens the connection.
  2. Call the connect function, of the Python connector, to get a connection, then read the DataFrame API from that connection object.
  3. Set the parameters as variables and call create with no arguments, because the builder reads the environment whenever nothing is supplied to it.
  4. Build a dictionary of the parameter names and values, pass it to the configs method of the session builder, and call create on the returned builder.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。