Snowflake caches query results to speed up repeated queries. What happens to the cached results if the underlying table data changes?
Think about data consistency and cache freshness.
Snowflake invalidates cached results automatically when the underlying data changes to ensure queries return fresh data.
Snowflake has multiple caching layers. Which cache layer stores results that can be reused by any user running the same query?
Consider which cache is global and query-specific.
The result cache stores the results of queries and is shared globally across all users and warehouses, enabling reuse of identical query results.
Snowflake caches query results globally. What security feature ensures users only see cached results they are authorized to access?
Think about how Snowflake enforces data access controls.
Snowflake enforces role-based access control on cached results, so users only receive cached data if they have permission to see it.
To get the most speed from Snowflake's result cache, what practice should you follow when writing queries?
Think about how query text affects cache matching.
Snowflake's result cache matches queries exactly by text. Writing queries consistently helps reuse cached results.
Snowflake keeps query results in the result cache for a limited time. What is the maximum time a result can stay cached if the underlying data does not change?
Consider Snowflake's default cache retention policy.
Snowflake retains query results in the result cache for up to 24 hours if the underlying data remains unchanged.