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.
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?
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.
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.
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up / login
(it's free).
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).