問題文
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?
選択肢
- Pass the dictionary directly to the constructor of the session class, which validates the parameters and opens the connection.
- Call the connect function, of the Python connector, to get a connection, then read the DataFrame API from that connection object.
- Set the parameters as variables and call create with no arguments, because the builder reads the environment whenever nothing is supplied to it.
- 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.