Snowpro Advanced Architect · Free Practice Question Medium

Question 3

When evaluating the use of SECURE FUNCTIONS in Snowflake, what is a primary trade-off that an architect should consider regarding their impact on query performance?
  • A Secure functions enforce row-level security, which is always faster than non-secure functions.
  • B Declaring a function as SECURE might prevent the optimizer from performing certain pushdown optimizations, potentially impacting performance.
  • C Secure functions always run on larger warehouses, increasing compute costs.
  • D Secure functions require data to be decrypted on the client side, leading to network latency.
  • E Secure functions automatically leverage query caching more aggressively than non-secure functions.
Reveal correct answer

Correct answer: B

Explanation


✅ Declaring a function as SECURE might prevent the optimizer from performing certain pushdown optimizations, potentially impacting performance.

Explanation:

  • SECURE functions in Snowflake restrict visibility of their logic and execution details to enhance data security.

  • However, this security constraint can limit the optimizer’s ability to perform pushdown optimizations, meaning certain operations may not be executed as efficiently as non-secure functions.

  • This trade-off is important for architects to consider when balancing performance vs. security in their Snowflake environment.

❌ Why the other options are incorrect?

  • Secure functions always run on larger warehouses, increasing compute costs. → Incorrect, because warehouse size is independent of function security settings.

  • Secure functions enforce row-level security, which is always faster than non-secure functions. → Incorrect, as row-level security is managed separately and does not inherently improve performance.

  • Secure functions require data to be decrypted on the client side, leading to network latency. → Incorrect, because Snowflake handles encryption/decryption internally, not on the client side.

  • Secure functions automatically leverage query caching more aggressively than non-secure functions. → Incorrect, as query caching behavior is not affected by function security settings.

You can find more details on Snowflake Secure Functions and their impact on query optimization here and here.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need