nerdexam
Snowflake

DEA-C02 · Question #12

What is the purpose of the BUILD_STAGE_FILE_URL function in Snowflake?

The correct answer is C. It generates a permanent URL for accessing files in a stage. BUILD_STAGE_FILE_URL generates a permanent Snowflake file URL for accessing a staged file. Unlike pre-signed URLs, this URL does not expire - it remains valid indefinitely as long as the file exists in the stage and the caller has the appropriate Snowflake privileges to access…

Data Movement

Question

What is the purpose of the BUILD_STAGE_FILE_URL function in Snowflake?

Options

  • AIt generates an encrypted URL for accessing a file in a stage.
  • BIt generates a staged URL for accessing a file in a stage.
  • CIt generates a permanent URL for accessing files in a stage.
  • DIt generates a temporary URL for accessing a file in a stage.

How the community answered

(44 responses)
  • A
    2% (1)
  • B
    5% (2)
  • C
    91% (40)
  • D
    2% (1)

Explanation

BUILD_STAGE_FILE_URL generates a permanent Snowflake file URL for accessing a staged file. Unlike pre-signed URLs, this URL does not expire - it remains valid indefinitely as long as the file exists in the stage and the caller has the appropriate Snowflake privileges to access it.

Why the distractors are wrong:

  • A (encrypted): Snowflake URLs are served over HTTPS, but "encrypted URL" is not a recognized URL type in Snowflake - the function doesn't produce a specially encrypted token.
  • B (staged URL): "Staged URL" is not a defined Snowflake URL type; this is a distractor mixing up the word "stage" (the storage location) with URL classification.
  • D (temporary URL): Temporary/expiring URLs are produced by GET_PRESIGNED_URL (which expires after a configurable time) or BUILD_SCOPED_FILE_URL - not BUILD_STAGE_FILE_URL.

Memory tip: Associate BUILD_STAGE_FILE_URL"FILE URL" = Forever. The word "BUILD" implies constructing something durable. When you need something that expires, reach for GET_PRESIGNED_URL instead - "pre-signed" implies a time-bound credential, like a signed check with an expiry date.

Topics

#Snowflake Stages#File URLs#Data Access

Community Discussion

No community discussion yet for this question.

Full DEA-C02 Practice