
Explanation:
The question asks for the function that generates a Snowflake-hosted file URL to a staged file using the stage name and relative file path as inputs. According to Snowflake documentation and the community discussion, BUILD_STAGE_FILE_URL is specifically designed for this purpose, generating a URL that does not expire. BUILD_SCOPED_FILE_URL creates a scoped URL, which is different from a standard file URL. GET_PRESIGNED_URL requires an optional expiration time and is for presigned URLs, not permanent file URLs. GET_STAGE_LOCATION returns the stage's location path, not a file URL. The community consensus strongly supports A, with 80% of votes and multiple upvoted comments confirming BUILD_STAGE_FILE_URL as the correct function.
Which function returns a Snowflake-hosted URL for a staged file when provided with the stage name and the relative file path as inputs?
A
BUILD_STAGE_FILE_URL
B
BUILD_SCOPED_FILE_URL
C
GET_PRESIGNED_URL
D
GET_STAGE_LOCATION
No comments yet.