0
0
Snowflakecloud~20 mins

Resource monitors for cost control in Snowflake - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Resource Monitor Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate
2:00remaining
How does a resource monitor behave when the credit usage threshold is reached?

In Snowflake, what happens when a resource monitor reaches its defined credit usage threshold?

AThe monitor sends an alert and can optionally suspend warehouses if configured to do so.
BThe monitor sends an alert and suspends all warehouses immediately.
CThe monitor automatically increases the credit quota to avoid suspension.
DThe monitor deletes all query history to free up credits.
Attempts:
2 left
πŸ’‘ Hint

Think about whether the monitor acts automatically or requires configuration to suspend warehouses.

❓ Configuration
intermediate
2:00remaining
Which SQL command creates a resource monitor with a monthly credit quota of 100 credits?

Select the correct Snowflake SQL command to create a resource monitor named monthly_monitor with a 100 credit monthly quota.

ACREATE RESOURCE MONITOR monthly_monitor WITH CREDIT_QUOTA = 100;
BCREATE RESOURCE MONITOR monthly_monitor WITH CREDIT_QUOTA = 100 TRIGGERS ON 100 PERCENT DO NOTIFY;
CCREATE RESOURCE MONITOR monthly_monitor SET CREDIT_QUOTA = 100 MONTHLY;
DCREATE RESOURCE MONITOR monthly_monitor CREDIT_QUOTA = 100 MONTHLY;
Attempts:
2 left
πŸ’‘ Hint

Check the correct syntax for specifying credit quota and period.

❓ Architecture
advanced
2:00remaining
What is the best architecture to monitor and control costs across multiple Snowflake accounts?

You manage multiple Snowflake accounts for different teams. Which architecture allows centralized cost monitoring and control using resource monitors?

AUse a shared Snowflake account with resource monitors assigned to each team’s warehouses via tags.
BCreate separate resource monitors in each account and manually aggregate reports externally.
CCreate a single resource monitor in one account and link it to warehouses in other accounts.
DDisable resource monitors and rely on billing alerts from the cloud provider.
Attempts:
2 left
πŸ’‘ Hint

Consider how Snowflake resource monitors can be assigned and how to centralize control.

❓ security
advanced
2:00remaining
Which role is required to create and manage resource monitors in Snowflake?

To securely manage resource monitors, which Snowflake role must a user have?

ASECURITYADMIN role
BSYSADMIN role
CPUBLIC role
DACCOUNTADMIN role
Attempts:
2 left
πŸ’‘ Hint

Think about which role has the highest privileges related to account-wide settings.

βœ… Best Practice
expert
2:00remaining
How should you configure resource monitors to avoid unexpected warehouse suspensions during business hours?

Which approach best prevents resource monitors from suspending warehouses unexpectedly during critical business hours?

ADo not use resource monitors and manually track credit usage daily.
BCreate multiple resource monitors with overlapping quotas and suspend warehouses immediately when thresholds are hit.
CSchedule resource monitors to suspend warehouses only outside business hours using Snowflake tasks and alerts.
DSet a high credit quota and disable automatic suspension, relying only on alerts.
Attempts:
2 left
πŸ’‘ Hint

Consider how to combine scheduling and monitoring to protect business operations.