
Answer-first summary for fast verification
Answer: BUILD_STAGE_FILE_URL
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.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.