
Answer-first summary for fast verification
Answer: SAMPLE is used and the seed is not set.
The correct answer is B because when SAMPLE is used without setting a seed, Snowflake uses a pseudo-random sampling method that can return different rows each time the query is executed. According to Snowflake documentation and the community discussion, SAMPLE without a fixed seed produces non-deterministic results, which explains why the same query could return different results on subsequent runs. Option A is incorrect because setting a seed makes the sampling deterministic. Option C (fraction-based sampling) and Option D (fixed-size sampling) are both types of sampling that Snowflake supports, but they would only cause different results if no seed is specified, making them specific cases covered by the more general principle in option B.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.