exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 522 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 522
Topic #: 1
[All SnowPro Core Questions]

A Snowflake user is writing a User-Defined Function (UDF) with some unqualified object names.

How will those object names be resolved during execution?

  • A. Snowflake will resolve them according to the SEARCH_PATH parameter.
  • B. Snowflake will only check the schema the UDF belongs to.
  • C. Snowflake will first check the current schema, and then the schema the previous query used.
  • D. Snowflake will first check the current schema, and then the PUBLIC schema of the current database.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
_yyukta
7 months, 4 weeks ago
Selected Answer: B
B. Snowflake will only check the schema the UDF belongs to
upvoted 1 times
...
BobFar
1 year ago
The correct answer is B. In queries, unqualified object names are resolved through a search path. The SEARCH_PATH is not used inside views or Writing User-Defined Functions (UDFs). All unqualified objects in a view or UDF definition will be resolved in the view’s or UDF’s schema only. https://docs.snowflake.com/en/sql-reference/name-resolution#name-resolution-in-queries
upvoted 3 times
...
MultiCloudIronMan
1 year, 3 months ago
Selected Answer: B
correct
upvoted 1 times
...
shujaz
1 year, 4 months ago
Selected Answer A if search_path than it has to be A
upvoted 1 times
vishnuas
11 months, 1 week ago
Not for UDF or views. so answer is B
upvoted 1 times
...
...
dmitriypo
1 year, 5 months ago
Selected Answer: B
https://docs.snowflake.com/en/sql-reference/name-resolution#:~:text=The%20SEARCH_PATH%20is%20not%20used%20inside%20views%20or%20User%2DDefined%20Functions%20Overview.%20All%20unqualifed%20objects%20in%20a%20view%20or%20UDF%20definition%20will%20be%20resolved%20in%20the%20view%E2%80%99s%20or%20UDF%E2%80%99s%20schema%20only.
upvoted 1 times
...
OTE
1 year, 7 months ago
Selected Answer: B
In queries, unqualified object names are resolved through a search path. The SEARCH_PATH is not used inside views or Writing User-Defined Functions (UDFs). All unqualifed objects in a view or UDF definition will be resolved in the view’s or UDF’s schema only. https://docs.snowflake.com/en/sql-reference/name-resolution
upvoted 4 times
...
Simbajagnole
1 year, 8 months ago
Selected Answer: B
Should be B https://docs.snowflake.com/en/sql-reference/name-resolution
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago