ExamGecko
Question list
Search
Search

Question 592 - SnowPro Core discussion

Report
Export

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

A.

BUILD_STAGE_FILE_URL

Answers
A.

BUILD_STAGE_FILE_URL

B.

BUILD_SCOPED_FILE_URL

Answers
B.

BUILD_SCOPED_FILE_URL

C.

GET_PRESIGNED_URL

Answers
C.

GET_PRESIGNED_URL

D.

GET STAGE LOCATION

Answers
D.

GET STAGE LOCATION

Suggested answer: C

Explanation:

The function in Snowflake that returns the URL of a stage using the stage name as the input is C. GET_PRESIGNED_URL. This function generates a pre-signed URL for a specific file in a stage, enabling secure, temporary access to that file without requiring Snowflake credentials. While the function is primarily used for accessing files in external stages, such as Amazon S3 buckets, it is instrumental in scenarios requiring direct, secure file access for a limited time.

It's important to note that as of my last update, Snowflake's documentation does not specifically list a function named GET_PRESIGNED_URL for directly obtaining a stage's URL by its name. The description aligns closely with functionality available in cloud storage services (e.g., AWS S3's presigned URLs) which can be used in conjunction with Snowflake stages for secure, temporary access to files. For direct interaction with stages and their files, Snowflake offers various functions and commands, but the exact match for generating a presigned URL through a simple function call may vary or require leveraging external cloud services APIs in addition to Snowflake's capabilities.

Snowflake Documentation and cloud services (AWS, Azure, GCP) documentation on presigned URLs and stage interactions.

asked 29/10/2024
Lakshmana Mittadoddi
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first