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
MITZ619
1 month, 1 week ago
Selected Answer: A
In Snowflake, unqualified object names (e.g., just my_table instead of schema.my_table) inside a User-Defined Function (UDF) are resolved using the SEARCH_PATH. This parameter defines the order of schemas that Snowflake searches when trying to resolve object names that are not fully qualified. This behavior applies both during creation and execution of the UDF.
upvoted 1 times
...
_yyukta
9 months, 2 weeks ago
Selected Answer: B
B. Snowflake will only check the schema the UDF belongs to
upvoted 1 times
...
BobFar
1 year, 2 months 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, 5 months ago
Selected Answer: B
correct
upvoted 1 times
...
shujaz
1 year, 6 months ago
Selected Answer A if search_path than it has to be A
upvoted 1 times
vishnuas
1 year ago
Not for UDF or views. so answer is B
upvoted 1 times
...
...
dmitriypo
1 year, 7 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, 9 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, 10 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 ...