
Answer-first summary for fast verification
Answer: The SQL texts the same.
The correct answer is B because Snowflake's Result Cache requires the SQL text to be identical for query reuse. As confirmed by the community discussion and Snowflake documentation, any variation in SQL syntax (including whitespace, capitalization, table aliases, or literal values) prevents result cache reuse. While the virtual warehouse being the same (option D) was mentioned by some users, the official documentation and majority consensus clearly state that the SQL text must match exactly, and the result cache works across different virtual warehouses as long as the SQL is identical and underlying data hasn't changed. Options A (user being the same) and C (query profile being the same) are not requirements for result cache reuse.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.