Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 492

Which function returns the URL of a stage using the stage name as the input?

    Correct Answer: D

    The correct function for returning the URL of a stage using the stage name as the input is GET_STAGE_LOCATION. This function is specifically designed to retrieve the location of a stage, which is what the question is asking for. Other functions like GET_PRESIGNED_URL are used for obtaining temporary access URLs, which are not directly relevant to the question.

Discussion
bibisaOption: D

Retrieves the URL for an external or internal named stage using the stage name as the input.

lalit_2k311Option: D

Answer id D https://docs.snowflake.com/en/sql-reference/functions/get_stage_location

_yyuktaOption: D

D. GET_STAGE_LOCATION

Snow_POption: C

The GET_PRESIGNED_URL function in Snowflake is used to obtain a pre-signed URL for a stage object. This URL allows temporary access to the stage object and can be used for operations like copying data into or out of the stage.

akb33

GET_PRESIGNED_URL function also gives out the relative path along with the stage name as URL.

Def21Option: C

D) Gives STAGE and uses the STAGE name SELECT GET_STAGE_LOCATION(@images_stage); => s3://photos/national_parks/us/yosemite/ A) Gives file SELECT BUILD_STAGE_FILE_URL(@images_stage,'/us/yosemite/half_dome.jpg'); => https://my_account.snowflakecomputing.com/api/files/MY_DB/PUBLIC/IMAGES_STAGE/us/yosemite/half_dome.jpg https://docs.snowflake.com/en/sql-reference/functions/build_stage_file_url https://docs.snowflake.com/en/sql-reference/functions/get_stage_location

MultiCloudIronManOption: D

Verified