ExamGecko
Question list
Search
Search

Question 691 - COF-C02 discussion

Report
Export

What optional properties can a Snowflake user set when creating a virtual warehouse? (Select TWO).

A.
Auto-suspend
Answers
A.
Auto-suspend
B.
Cache size
Answers
B.
Cache size
C.
Default role
Answers
C.
Default role
D.
Resource monitor
Answers
D.
Resource monitor
E.
Storage size
Answers
E.
Storage size
Suggested answer: A, D

Explanation:

When creating a virtual warehouse in Snowflake, users have the option to set several properties to manage its behavior and resource usage. Two of these optional properties are Auto-suspend and Resource monitor.

Auto-suspend: This property defines the period of inactivity after which the warehouse will automatically suspend. This helps in managing costs by stopping the warehouse when it is not in use.

CREATE WAREHOUSE my_warehouse

WITH WAREHOUSE_SIZE = 'XSMALL'

AUTO_SUSPEND = 300; -- Auto-suspend after 5 minutes of inactivity

Resource monitor: Users can assign a resource monitor to a warehouse to control and limit the amount of credit usage. Resource monitors help in setting quotas and alerts for warehouse usage.

CREATE WAREHOUSE my_warehouse

WITH WAREHOUSE_SIZE = 'XSMALL'

RESOURCE_MONITOR = 'my_resource_monitor';

References:

Snowflake Documentation: Creating Warehouses

Snowflake Documentation: Resource Monitors

asked 23/09/2024
Khalid Hamid
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first