ExamGecko
Home Home / Snowflake / DEA-C01

Snowflake DEA-C01 Practice Test - Questions Answers, Page 13

Question list
Search
Search

Which UDF programming language is not supported with Snowflake Secure Data Sharing feature?

A.
SQL
A.
SQL
Answers
B.
JAVA
B.
JAVA
Answers
C.
JAVASCRIPT
C.
JAVASCRIPT
Answers
D.
PYTHON
D.
PYTHON
Answers
Suggested answer: C

While creating even Secure UDF, snowflake recommended to use randomized identifiers (e.g. generated by UUID_STRING) instead of sequence-generated values?

A.
TRUE (Correct)
A.
TRUE (Correct)
Answers
B.
FALSE
B.
FALSE
Answers
Suggested answer: A

When using the CURRENT_ROLE and CURRENT_USER functions with secure UDFs that will be shared with Snowflake accounts, Snowflake returns a NULL value for these functions?

A.
TRUE
A.
TRUE
Answers
B.
FALSE
B.
FALSE
Answers
Suggested answer: A

Explanation:

When using the CURRENT_ROLE and CURRENT_USER functions with secure UDFs that will be shared with Snowflake accounts, Snowflake returns a NULL value for these functions. The rea-son is that the owner of the data being shared does not typically control the users or roles in the ac-count with which the UDF is being shared.

Bob, a Lead Data Engineer is looking out to get the function definition & queried below statement to check if this function is secure enough to use in his script or not.

select is_secure from information_schema.functions where function_name = 'JOHNFUNCTION';

From the query output he is sure that, Function is secure UDF, what are the way provided by snowflake to get the function definition of secure UDF?

A.
He can get the secure UDF definition using GET_DDL utility function.
A.
He can get the secure UDF definition using GET_DDL utility function.
Answers
B.
UDF definition or text, is visible to users via Query Profile (in the web interface).
B.
UDF definition or text, is visible to users via Query Profile (in the web interface).
Answers
C.
SHOW FUNCTIONS Commands
C.
SHOW FUNCTIONS Commands
Answers
D.
Declaring a UDF as "secure" hide the definition from Bob & all the required Definition commands will throw error.
D.
Declaring a UDF as "secure" hide the definition from Bob & all the required Definition commands will throw error.
Answers
Suggested answer: D

A SQL UDF evaluates an arbitrary SQL expression and returns the result(s) of the expression. Which value type it can returns?

A.
Single Value
A.
Single Value
Answers
B.
A Set of Rows
B.
A Set of Rows
Answers
C.
Scaler or Tabular depend on input SQL expression
C.
Scaler or Tabular depend on input SQL expression
Answers
D.
Regex
D.
Regex
Answers
Suggested answer: C

For SQL UDFs, The invoker of the function need not have access to the objects referenced in the function definition, but only needs the privilege to use the function?

A.
TRUE
A.
TRUE
Answers
B.
FALSE
B.
FALSE
Answers
Suggested answer: A

Select the correct usage statements with regards to SQL UDF?

A.
The body of a UDF cannot contain DDL statements or any DML statement other than SELECT.
A.
The body of a UDF cannot contain DDL statements or any DML statement other than SELECT.
Answers
B.
Scalar functions (UDFs) have a limit of 500 input arguments.
B.
Scalar functions (UDFs) have a limit of 500 input arguments.
Answers
C.
When using a query expression in a SQL UDF, do not include a semicolon within the UDF body to terminate the query expression.
C.
When using a query expression in a SQL UDF, do not include a semicolon within the UDF body to terminate the query expression.
Answers
D.
You can include only one query expression.
D.
You can include only one query expression.
Answers
E.
All of above are correct.
E.
All of above are correct.
Answers
Suggested answer: E

Which is the non-supportable JavaScript UDF data types?

A.
Integers
A.
Integers
Answers
B.
String
B.
String
Answers
C.
Binary
C.
Binary
Answers
D.
Double
D.
Double
Answers
Suggested answer: A

If using a JavaScript UDF in a masking policy, Data Engineer needs to ensure the data type of the column, UDF, and masking policy match irrespective of case-sensitivity?

A.
TRUE
A.
TRUE
Answers
B.
FALSE
B.
FALSE
Answers
Suggested answer: B

Explanation:

Please note JavaScript is case sensitive but if we are using a JavaScript UDF in a masking policy, ensure the data type of the column, UDF, and masking policy match.

External Function is a type of UDF & can be Scaler or Tabular?

A.
TRUE
A.
TRUE
Answers
B.
FALSE
B.
FALSE
Answers
Suggested answer: B

Explanation:

External functions must be scalar functions. A scalar external function returns a single value for each input row.


Total 130 questions
Go to page: of 13