
Answer-first summary for fast verification
Answer: The same exact query will return the precomputed results if the underlying data hasn't changed and the results were last accessed within previous 24 hour period, The ג€24 hourג€ timer on the precomputed results gets renewed every time the exact query is executed
Based on Snowflake's result cache behavior, option B is correct because the cached results are returned only if the underlying data hasn't changed and the results were last accessed within the previous 24 hours. Option D is correct because the 24-hour timer for cached results resets (renews) every time the exact query is executed, extending the cache validity. Option A is incorrect as it mentions 'RESULT_CACHE_ACTIVE = time period', which is not a standard Snowflake parameter and implies an absolute guarantee, whereas cache usage depends on data changes and access time. Option C is incorrect because cached results are not returned if the underlying data has changed, regardless of the last access time. The community discussion strongly supports B and D, with 86% of answers selecting BD and multiple comments explaining the 24-hour cache renewal and data consistency requirements.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A deterministic query is executed at 8:00 AM, takes 5 minutes to run, and its results are cached. Which of the following statements are true? (Select two.)
A
The exact query will ALWAYS return the precomputed result set for the RESULT_CACHE_ACTIVE = time period
B
The same exact query will return the precomputed results if the underlying data hasn't changed and the results were last accessed within previous 24 hour period
C
The same exact query will return the precomputed results even if the underlying data has changed as long as the results were last accessed within the previous 24 hour period
D
The ג€24 hourג€ timer on the precomputed results gets renewed every time the exact query is executed
No comments yet.