SnowPro Advanced Data Engineer Exam QuestionsBrowse all questions from this exam

SnowPro Advanced Data Engineer Exam - Question 40


Assuming a Data Engineer has all appropriate privileges and context, which statements would be used to assess whether the User-Defined Function (UDF), MYDATABASE.SALES.REVENUE_BY_REGION, exists and is secure? (Choose two.)

Show Answer
Correct Answer: AC

To assess whether the User-Defined Function (UDF), MYDATABASE.SALES.REVENUE_BY_REGION, exists and is secure, the appropriate statements would be: First, using 'SHOW USER FUNCTIONS LIKE 'REVENUE_BY_REGION' IN SCHEMA SALES;' checks the existence of the UDF in the specified schema, ensuring that you are querying within the correct context. Second, 'SELECT IS_SECURE FROM INFORMATION_SCHEMA.FUNCTIONS WHERE FUNCTION_SCHEMA = 'SALES' AND FUNCTION_NAME = 'REVENUE_BY_REGION';' queries the information schema to check if the function is secure. By combining these two steps, it ensures both the existence and security of the UDF.

Discussion

1 comment
Sign in to comment
stopthisnowOptions: AC
Nov 13, 2024

SHOW USER FUNCTIONS LIKE 'DAY_NAME_ON' IN SCHEMA DEMO_SCHEMA; SELECT IS_SECURE FROM INFORMATION_SCHEMA.FUNCTIONS WHERE FUNCTION_SCHEMA = 'DEMO_SCHEMA' AND FUNCTION_NAME = 'DAY_NAME_ON';

19Arpit98
Jan 10, 2025

Why B is incorrect?

akellaanurag
Jan 31, 2025

The database is MYDATbase AND snowflake.information_schema.fucntions view will only have the functions that are available in the database"Snowflake".

akellaanurag
Jan 31, 2025

The database is MYDATbase AND snowflake.information_schema.fucntions view will only have the functions that are available in the database"Snowflake".