0
0
Snowflakecloud~20 mins

Result caching layers in Snowflake - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Result Cache Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Snowflake's result cache behave after data changes?

Snowflake caches query results to speed up repeated queries. What happens to the cached results if the underlying table data changes?

AThe cached results are automatically invalidated and not used for subsequent queries.
BThe cached results are used only if the query is run within 5 minutes of the data change.
CThe cached results are updated automatically to reflect the new data.
DThe cached results remain and are returned until manually cleared.
Attempts:
2 left
💡 Hint

Think about data consistency and cache freshness.

Architecture
intermediate
2:00remaining
Which layer in Snowflake caches query results for all users?

Snowflake has multiple caching layers. Which cache layer stores results that can be reused by any user running the same query?

ALocal disk cache on the user's client machine
BWarehouse cache specific to a virtual warehouse
CResult cache shared across all users and warehouses
DMetadata cache inside the database catalog
Attempts:
2 left
💡 Hint

Consider which cache is global and query-specific.

security
advanced
2:00remaining
What security consideration applies to Snowflake's result cache?

Snowflake caches query results globally. What security feature ensures users only see cached results they are authorized to access?

AResult cache requires manual approval before sharing results.
BResult cache stores results only for queries run by the same user.
CResult cache encrypts data with user-specific keys.
DResult cache respects role-based access control and only returns results if the user has permission.
Attempts:
2 left
💡 Hint

Think about how Snowflake enforces data access controls.

Best Practice
advanced
2:00remaining
How can you maximize the benefit of Snowflake's result cache in your queries?

To get the most speed from Snowflake's result cache, what practice should you follow when writing queries?

AUse SELECT * to ensure all columns are cached.
BWrite queries with consistent syntax and avoid unnecessary changes.
CRun queries from different warehouses to increase cache hits.
DDisable caching to always get fresh data.
Attempts:
2 left
💡 Hint

Think about how query text affects cache matching.

🧠 Conceptual
expert
2:00remaining
What is the maximum duration Snowflake retains results in the result cache?

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?

A24 hours
B90 days
C7 days
DIndefinitely until cache is manually cleared
Attempts:
2 left
💡 Hint

Consider Snowflake's default cache retention policy.