0
0
Snowflakecloud~20 mins

Auto-suspend and auto-resume in Snowflake - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Auto-suspend and Auto-resume Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when a Snowflake warehouse with auto-suspend enabled is idle?

A Snowflake warehouse has auto-suspend set to 5 minutes. What will happen if no queries run for 6 minutes?

AThe warehouse suspends immediately when the last query finishes.
BThe warehouse automatically suspends after 5 minutes of inactivity.
CThe warehouse continues running indefinitely until manually suspended.
DThe warehouse suspends only if manually triggered by the user.
Attempts:
2 left
💡 Hint

Think about what auto-suspend means for idle warehouses.

Configuration
intermediate
2:00remaining
Which SQL command enables auto-resume for a Snowflake warehouse?

Choose the correct SQL command to enable auto-resume on a warehouse named MY_WH.

AALTER WAREHOUSE MY_WH SET AUTO_RESUME = TRUE;
BALTER WAREHOUSE MY_WH SET AUTO_RESUME = ON;
CALTER WAREHOUSE MY_WH SET AUTO_RESUME = ENABLED;
DALTER WAREHOUSE MY_WH SET AUTO_RESUME = 1;
Attempts:
2 left
💡 Hint

Check the exact syntax for setting boolean options in Snowflake.

Architecture
advanced
2:00remaining
How does auto-resume affect query latency in Snowflake?

Consider a warehouse with auto-suspend enabled after 10 minutes and auto-resume enabled. What is the impact on query latency when a new query arrives after suspension?

AThe first query experiences a delay while the warehouse resumes, increasing latency.
BQueries run instantly with no delay because auto-resume is automatic.
CAll queries are queued until the warehouse is manually resumed.
DQueries fail if the warehouse is suspended, regardless of auto-resume.
Attempts:
2 left
💡 Hint

Think about what happens when a warehouse is suspended and a query arrives.

security
advanced
2:00remaining
What security risk can arise if auto-resume is enabled on a Snowflake warehouse?

Identify a potential security concern related to enabling auto-resume on a warehouse.

AAuto-resume encrypts data less securely during warehouse startup.
BAuto-resume disables user authentication, allowing anonymous access.
CAuto-resume causes warehouses to run with elevated privileges automatically.
DUnauthorized queries can trigger warehouse startup, increasing exposure to data.
Attempts:
2 left
💡 Hint

Consider who can run queries and what happens when the warehouse starts automatically.

Best Practice
expert
2:00remaining
Which combination of auto-suspend and auto-resume settings optimizes cost and performance for unpredictable workloads?

You manage a Snowflake warehouse with unpredictable query patterns. Which setting combination best balances cost savings and query responsiveness?

AAuto-suspend set to 60 minutes; auto-resume disabled.
BAuto-suspend disabled; auto-resume disabled.
CAuto-suspend set to 5 minutes; auto-resume enabled.
DAuto-suspend disabled; auto-resume enabled.
Attempts:
2 left
💡 Hint

Think about how quickly the warehouse suspends and restarts for cost and speed.