ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 56 - ADA-C01 discussion

Report
Export

An Administrator has a warehouse which is intended to have a credit quota set for 3000 for each calendar year. The Administrator needs to create a resource monitor that will perform the following tasks:

1. At 80% usage notify the account Administrators.

2. At 100% usage suspend the warehouse and notify the account Administrators.

3. At 120% stop all running executions, suspend the warehouse, and notify the account Administrators.

Which SQL command will meet these requirements?

A.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
Answers
A.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
B.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
Answers
B.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
C.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do notify and suspend on 120 percent do notify and suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
Answers
C.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do notify and suspend on 120 percent do notify and suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
D.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
Answers
D.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
Suggested answer: B

Explanation:

Option B is the correct SQL command to create a resource monitor that meets the requirements. It sets the credit quota to 3000, the frequency to yearly, the start timestamp to January 1, 2022, and the triggers to notify and suspend the warehouse at the specified thresholds. Option A is incorrect because it does not specify the frequency. Option C is incorrect because it does not specify the frequency and it uses notify and suspend instead of suspend and suspend_immediate. Option D is incorrect because it does not specify the start timestamp. For more information about resource monitors, see Working with Resource Monitors and CREATE RESOURCE MONITOR.

asked 23/09/2024
Sivagami Narayanan
49 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first