SnowPro Core Exam QuestionsBrowse all questions from this exam

SnowPro Core Exam - Question 12


Which of the following commands sets the Virtual Warehouse for a session?

Show Answer
Correct Answer: C

To set the Virtual Warehouse for a session in Snowflake, the correct command is 'USE WAREHOUSE <<warehouse name>>;'. This command specifies or changes the current warehouse for a session. The other options do not follow the correct syntax or functionality for setting a Virtual Warehouse in Snowflake.

Discussion

18 comments
Sign in to comment
Sundarr
Jan 27, 2022

Answer is C. Example : use warehouse compute_wh;

LuciBhishOption: C
Mar 2, 2022

USE WAREHOUSE <VWH>;

rajivgupta780Option: C
Jan 22, 2023

C is correct

instrideOption: C
Jun 5, 2023

The correct answer is C. According to snowflake docs, "A Snowflake session can only have one current warehouse at a time. The current warehouse for a session can be specified or changed at any time through the USE WAREHOUSE command."

Vivek121
May 7, 2024

Why NOT B?

Percy2112Option: C
Aug 14, 2022

Use Warehouse command.

Tapasgup007Option: C
Dec 2, 2022

C is correct

Mayuri917233Option: C
May 11, 2023

C is correct

VS3497
Jun 14, 2023

C. USE WAREHOUSE <<warehouse name>>;

KHarish
Dec 4, 2023

USE WAREHOUSE <<warehouse name>> . C is correct

_yyuktaOption: C
Feb 23, 2024

C.USE WAREHOUSE <<warehouse name>> . C is correct

AnireddySaikiranReddy
Feb 25, 2024

C. USE WAREHOUSE <<warehouse name>>;

Mallikharjuna452
Jul 17, 2024

C. USE WAREHOUSE <<warehouse name>>;

tharangaweerOption: C
Feb 1, 2025

c.use warehouse <warehouse name>

reachbharathanOption: B
Mar 11, 2025

Both USE WAREHOUSE and SET WAREHOUSE commands serve the same purpose - they switch the current session to use the specified warehouse. They are completely interchangeable and functionally identical. The only difference is syntactic preference, similar to how both USE SCHEMA and SET SCHEMA are equivalent commands. Example usage: USE WAREHOUSE compute_wh SET WAREHOUSE compute_wh Choose whichever syntax you prefer - they will produce the same result.

jeny12138Option: D
Apr 7, 2025

D or C

jeny12138Option: C
Apr 7, 2025

c is correct

Deepika_sOption: C
Apr 16, 2025

Although, USE WAREHOUSE and SET WAREHOUSE commands serve the same purpose -w.r.t. SNOWFLAKE we use USE WAREHOUSE command, so Ans is C.