In Snowflake, the query results cache can be used based on certain conditions. Specifically, whether the referenced data in the table has changed affects the use of the query results cache. If the data has changed since the last query, the cache cannot be used.
Therefore, the correct answer is:
C. If the referenced data in the table has changed
Changes to the underlying data will invalidate the cached results, necessitating a new query execution to retrieve the updated data.
Answer is C.
A is wrong because non-deterministic function has impact on result cache except current_date
Answer B is wrong because :
If a virtual warehouse is suspended, it won't be available to execute any queries, so the result cache won't come into play for queries that would have been processed by that warehouse.
When a virtual warehouse is resumed after being suspended, any query that benefits from the result cache will continue to do so. The result cache is independent of the state of the virtual warehouse.
The result cache is a feature that helps optimize query performance regardless of the state (active or suspended) of the virtual warehouse.
Answer D is wrong because same query returns from the cache.
Only the local disk cache is lost when the VW is suspended. Result Cache is in the service layer and will survive (at least 24 hours) even if all warehouses are suspended.
Answer: C
Result Cache: Which holds the results of every query executed in the past 24 hours. These are available across virtual warehouses, so query results returned to one user is available to any other user on the system who executes the same query, provided the underlying data has not changed.
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.
SnowProCertDec22
Highly Voted 1 year, 11 months agopranalig
Most Recent 5 months agoPrashantGupta1616
5 months, 2 weeks ago_yyukta
8 months, 4 weeks agoAaron_w_mendelson
9 months, 2 weeks agoBobFar
1 year, 1 month agoshanksund
1 year, 1 month agoMike722
9 months, 1 week agoThaiya
1 year, 2 months agoThaiya
1 year, 2 months agoMultiCloudIronMan
1 year, 4 months agobonniezl
1 year, 5 months agomighty_kafta
1 year, 8 months agon21007
1 year, 9 months agomuks86
1 year, 9 months agoKarBiswa
1 year, 9 months agoJRayan
1 year, 9 months agojtm22
1 year, 9 months agoNaah
1 year, 10 months ago