nerdexam
Snowflake

COF-C02 · Question #576

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

The correct answer is C. GET_PRESIGNED_URL. 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…

Storage and Data Protection

Question

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

Options

  • ABUILD_STAGE_FILE_URL
  • BBUILD_SCOPED_FILE_URL
  • CGET_PRESIGNED_URL
  • DGET STAGE LOCATION

How the community answered

(27 responses)
  • B
    7% (2)
  • C
    89% (24)
  • D
    4% (1)

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

Topics

#Stages#Presigned URLs#Data Access#SQL Functions

Community Discussion

No community discussion yet for this question.

Full COF-C02 Practice