SnowPro Core Exam QuestionsBrowse all questions from this exam

SnowPro Core Exam - Question 172


Which of the following statements describe features of Snowflake data caching? (Choose two.)

Show Answer
Correct Answer: BE

Snowflake's data cache follows a least-recently used (LRU) eviction policy, meaning that when the cache is full, the least-recently used data will be cleared to make room for new data. The RESULT_SCAN table function allows users to access and filter the contents of the query result cache, making it useful for examining and manipulating cached query results.

Discussion

15 comments
Sign in to comment
DataEngineer7331Options: BE
May 3, 2023

Option A is incorrect because when a virtual warehouse is suspended, the data cache is not saved on the remote storage layer. The data cache is cleared when a virtual warehouse is suspended and any data that needs to be cached is reloaded from the remote storage layer when the virtual warehouse is resumed. Option C is incorrect because the query result cache is a shared cache and all users can access the data that has been cached. There are no restrictions based on user access. Option D is incorrect because the metadata cache is used by default in queries and there is no need for a user to explicitly set USE_METADATA_CACHE to TRUE. Option B is correct because Snowflake automatically manages its data cache and evicts the least-recently used data when the cache becomes full. Option E is correct because the RESULT_SCAN table function can be used to query and filter the data that has been cached in the query result cache.

pranalig
Jun 15, 2024

Great explaination

William_20Options: BE
Aug 30, 2022

result_scan: can return query results of past 24 hours: https://docs.snowflake.com/en/sql-reference/functions/result_scan.html

brian_69420Options: CE
Apr 4, 2023

CE. From SF docs: C: Only the user who ran the original query can use the RESULT_SCAN function to post-process the results of that query. Even another user with ACCOUNTADMIN privilege cannot access the results of another user’s query by calling RESULT_SCAN. E: The query containing the RESULT_SCAN can include clauses, such as filters and ORDER BY clauses, that were not in the original query. This allows you to narrow down or modify the result set. https://docs.snowflake.com/en/sql-reference/functions/result_scan

baig123
Dec 17, 2022

B and E should be correct one.

dmitriypoOptions: CE
May 10, 2023

Only the user who ran the original query can use the RESULT_SCAN function to post-process the results of that query. Even another user with ACCOUNTADMIN privilege cannot access the results of another user’s query by calling RESULT_SCAN. https://docs.snowflake.com/en/sql-reference/functions/result_scan#usage-notes

Rajivnb
Oct 15, 2023

Your statement is correct and that is why E is correct. but C is not correct. Query Result cache is different. This cached data is pulled when the same query is ran by any User/Role. but running queries specifically on this Query Result cache is done thru RESULT_SCAN. And this is only by the particular user who ran the initial query. this is because the user is now able to see the data.

Kvk117Options: CE
Apr 5, 2023

https://docs.snowflake.com/en/sql-reference/functions/result_scan

jawllalabad
Apr 11, 2023

This is not right. The answer is B&E. The reasoning "Only the user who ran the original query can use the RESULT_SCAN function to post-process the results of that query." does not apply to using the cache in general. The role must have the same set of permissions to use the cache.

RajuNaik
Apr 26, 2023

CE correct answer

ajsharma22
Aug 27, 2023

"Only the user who ran the original query can use the RESULT_SCAN function to post-process the results of that query. Even another user with ACCOUNTADMIN privilege cannot access the results of another user’s query by calling RESULT_SCAN." - https://docs.snowflake.com/en/sql-reference/functions/result_scan

Sk_3
Oct 10, 2023

b,E RESULT_SCAN IS DIFFERENT FROM QUERY RESULT CACAHE

_yyuktaOptions: BE
Feb 25, 2024

B and E are correct

sambathchandran
Jun 5, 2024

Snowflake's data cache follows a least-recently used (LRU) eviction policy. When the cache is full, the least-recently used data will be removed to make space for new data. The RESULT_SCAN table function allows users to access and filter the contents of the query result cache. This function is useful for examining and manipulating cached query results.

pranalig
Jun 15, 2024

Correct Answer: BE

pranalig
Jun 16, 2024

Correct Answer: BE

56d43d6Options: BE
Dec 30, 2024

C is NOT correct: any user can retrieve results from the query result cache as long as the query is exactly the same as another user's query, and the underlying data has not changed. https://community.snowflake.com/s/article/Caching-in-the-Snowflake-Cloud-Data-Platform#:~:text=Snowflake%20Cache%20Layers&text=Result%20Cache:%20Which%20holds%20the,underlying%20data%20has%20not%20changed.

JRayanOptions: CE
Feb 6, 2025

CE are the right option.