0
0
Snowflakecloud~5 mins

Result caching layers in Snowflake - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is result caching in Snowflake?
Result caching in Snowflake stores the results of a query so that if the same query is run again, Snowflake can return the stored results instantly without re-executing the query.
Click to reveal answer
beginner
How long does Snowflake keep query results in the result cache?
Snowflake keeps query results in the result cache for 24 hours, as long as the underlying data has not changed.
Click to reveal answer
intermediate
What conditions must be met for Snowflake to use the result cache for a query?
The query text must be exactly the same, the underlying data must not have changed, and the user must have the same access rights.
Click to reveal answer
beginner
What is the benefit of result caching in Snowflake?
It reduces query execution time and saves compute resources by returning stored results instantly instead of running the query again.
Click to reveal answer
intermediate
Can result caching be disabled in Snowflake?
Yes, result caching can be disabled by setting the parameter USE_CACHED_RESULT to FALSE in the query.
Click to reveal answer
How long does Snowflake keep query results in the result cache?
A7 days
B1 hour
C24 hours
DUntil the warehouse is restarted
Which of the following is NOT a requirement for Snowflake to use the result cache?
AUnderlying data must not have changed
BWarehouse must be running on the same server
CUser must have the same access rights
DQuery text must be exactly the same
What happens if the underlying data changes after a query is cached?
ASnowflake ignores the cache and reruns the query
BSnowflake returns the cached result anyway
CSnowflake deletes the cache but returns old results
DSnowflake pauses the query
How can you disable result caching for a specific query in Snowflake?
ASet USE_CACHED_RESULT = FALSE
BSet CACHE_ENABLED = FALSE
CUse NO_CACHE keyword
DResult caching cannot be disabled
What is the main benefit of using result caching in Snowflake?
AAutomatically backs up data
BIncreases storage space
CAllows multiple users to edit data simultaneously
DImproves query speed and saves compute resources
Explain how Snowflake's result caching works and when it is used.
Think about what must stay the same for cache to be used.
You got /3 concepts.
    Describe how to disable result caching for a query in Snowflake and why you might want to do that.
    Consider scenarios needing fresh data always.
    You got /3 concepts.