ExamGecko
Question list
Search
Search

Question 450 - COF-C02 discussion

Report
Export

Which privilege is required to use the search optimization service in Snowflake?

A.
GRANT SEARCH OPTIMIZATION ON SCHEMA <schema_name> TO ROLE <role>
Answers
A.
GRANT SEARCH OPTIMIZATION ON SCHEMA <schema_name> TO ROLE <role>
B.
GRANT SEARCH OPTIMIZATION ON DATABASE <database_name> TO ROLE <role>
Answers
B.
GRANT SEARCH OPTIMIZATION ON DATABASE <database_name> TO ROLE <role>
C.
GRANT ADD SEARCH OPTIMIZATION ON SCHEMA <schema_name> TO ROLE <role>
Answers
C.
GRANT ADD SEARCH OPTIMIZATION ON SCHEMA <schema_name> TO ROLE <role>
D.
GRANT ADD SEARCH OPTIMIZATION ON DATABASE <database name> TO ROLE <role>
Answers
D.
GRANT ADD SEARCH OPTIMIZATION ON DATABASE <database name> TO ROLE <role>
Suggested answer: C

Explanation:

To utilize the search optimization service in Snowflake, the correct syntax for granting privileges to a role involves specific commands that include adding search optimization capabilities:

Option C: GRANT ADD SEARCH OPTIMIZATION ON SCHEMA <schema_name> TO ROLE <role>. This command grants the specified role the ability to implement search optimization at the schema level, which is essential for enhancing search capabilities within that schema.

Options A and B do not include the correct verb 'ADD,' which is necessary for this specific type of grant command in Snowflake. Option D incorrectly mentions the database level, as search optimization privileges are typically configured at the schema level, not the database level. References: Snowflake documentation on the use of GRANT statements for configuring search optimization.

asked 23/09/2024
David Romano
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first