Complete the code to create a resource monitor named 'monthly_monitor'.
CREATE RESOURCE MONITOR monthly_monitor WITH (CREDIT_QUOTA = [1]);The credit quota sets the maximum credits allowed. 1000 is a common monthly limit.
Complete the code to set the trigger for the resource monitor to suspend warehouses at 90% usage.
ALTER RESOURCE MONITOR monthly_monitor SET TRIGGERS ON [1]% DO SUSPEND;Setting the trigger at 90% means warehouses suspend when 90% of the quota is used.
Fix the error in the code to correctly create a resource monitor with a credit quota of 2000.
CREATE RESOURCE MONITOR cost_control WITH ([1] = 2000);
The correct keyword to set the credit limit is CREDIT_QUOTA.
Fill both blanks to create a resource monitor that notifies at 80% and suspends at 95%.
CREATE RESOURCE MONITOR alert_suspend WITH (CREDIT_QUOTA = 1500) TRIGGERS ON [1]% DO NOTIFY, [2]% DO SUSPEND;
80% triggers notification, 95% triggers suspension to control costs effectively.
Fill all three blanks to create a resource monitor with a 3000 credit quota, notify at 70%, and suspend at 85%.
CREATE RESOURCE MONITOR [1] WITH (CREDIT_QUOTA = [2]) TRIGGERS ON [3]% DO NOTIFY, 85% DO SUSPEND;
The monitor is named 'cost_guard', quota is 3000 credits, and notify trigger is set at 70%.