
Answer-first summary for fast verification
Answer: If the referenced data in the table has changed
The correct answer is C because Snowflake's query results cache is invalidated when the underlying data in referenced tables changes. This ensures that cached results remain consistent with the current data state. Option A is incorrect because deterministic functions do not affect cache usage; only non-deterministic functions (except current_date) impact caching. Option B is wrong as warehouse suspension does not clear the result cache, which resides in the cloud services layer and persists independently. Option D is incorrect because multiple users sharing a warehouse does not affect cache utilization; the same query returns cached results regardless of user count, provided the data hasn't changed.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What factors determine whether the query results cache can be utilized?
A
If the query contains a deterministic function
B
If the virtual warehouse has been suspended
C
If the referenced data in the table has changed
D
If multiple users are using the same virtual warehouse
No comments yet.