Exam NAS-C01 Topic 1 Question 234 Discussion

Actual exam question for Snowflake's NAS-C01 exam
Question #: 234
Topic #: 1
You are designing the setup script for a Snowflake Native Application. This application requires the creation of several views based on data residing in the consumer's account. These views need to be dynamically created based on a configuration table that is part of your application package. The configuration table contains view names, the underlying tables in the consumer's account, and the specific SQL queries for each view. The design must adhere to best practices for security and data governance. Which approach would you use for designing this setup script, considering security vulnerabilities and execution context?

Suggested Answer: D Vote an answer

Option D represents the most secure and maintainable approach. By using a stored procedure owned by the application, you encapsulate the dynamic SQL generation and execution within a controlled environment. This reduces the risk of SQL injection vulnerabilities because the stored procedure is executed with the privileges of the application, and not the installer or end user. Parameterized SQL (Option B) is not directly supported for object names or complex SQL structures in Snowflake. String concatenation (Option A) is highly vulnerable to SQL injection. Using a temporary table (Option C) adds unnecessary complexity without significantly improving security. Static views (Option E) are inflexible and don't address the requirement of dynamic view creation.

by Julie at Sep 17, 2026, 04:10 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10