Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam NAS-C01 Topic 1 Question 109 Discussion

Actual exam question for Snowflake's NAS-C01 exam
Question #: 109
Topic #: 1
You're developing a Snowflake Native Application that stores user preferences in a table named 'USER PREFERENCES'. In version 1.0, this table only contained 'USER ID and 'THEME' columns. In version 2.0, you need to add a new 'LOCALE' column with a default value of 'en-CIS'. However, existing users should retain their existing preferences and not have the new 'LOCALE' column set to 'NULL'. Which of the following 'setup.sql' scripts correctly implements this requirement during the version upgrade?

Suggested Answer: C Vote an answer

Option C is the correct answer. Adding the column with DEFAULT 'en-US' and using the IF NOT EXISTS check will prevent errors when upgrading a second time (or if the column was manually added previously). Setting a default value at the column definition level automatically populates the new column for existing rows when the column is added. Option A will accomplish the immediate objective, but doesn't account for repeated runs of the script. Options B and E will not check the column existence and result in an error, as well as will populate all rows with 'en-US'. Option D is redundantly updating to 'en-US', but it has the same issue as Option B, as it doesn't check column existence and result in an error.

by Blithe at Jul 13, 2026, 06:42 AM

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.