In which order does Snowflake determine the default warehouse for a session?

Master the SnowPro Advanced Architect Test with flashcards, multiple-choice questions, and detailed explanations. Prepare thoroughly for your certification!

Multiple Choice

In which order does Snowflake determine the default warehouse for a session?

Explanation:
When a session starts, Snowflake uses the value provided by the client as the first place to determine the warehouse. If you pass a warehouse on the client side—either via the command line or through the driver/connector parameters—that explicit setting becomes the session’s warehouse. This takes precedence over any defaults that might exist in a client config file or at the user level. In other words, the most direct instruction for that session is the warehouse specified in the connection parameters, so that choice will be used even if a config-file default or a user-level default exists. If no warehouse is provided at connect time, Snowflake would fall back to whatever defaults are configured elsewhere, but those are not as authoritative as the direct connection parameter. The session timezone setting is unrelated to selecting the warehouse.

When a session starts, Snowflake uses the value provided by the client as the first place to determine the warehouse. If you pass a warehouse on the client side—either via the command line or through the driver/connector parameters—that explicit setting becomes the session’s warehouse. This takes precedence over any defaults that might exist in a client config file or at the user level.

In other words, the most direct instruction for that session is the warehouse specified in the connection parameters, so that choice will be used even if a config-file default or a user-level default exists. If no warehouse is provided at connect time, Snowflake would fall back to whatever defaults are configured elsewhere, but those are not as authoritative as the direct connection parameter. The session timezone setting is unrelated to selecting the warehouse.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy