exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 172 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 172
Topic #: 1
[All SnowPro Core Questions]

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

  • A. When a virtual warehouse is suspended, the data cache is saved on the remote storage layer.
  • B. When the data cache is full, the least-recently used data will be cleared to make room.
  • C. A user can only access their own queries from the query result cache.
  • D. A user must set USE_METADATA_CACHE to TRUE to use the metadata cache in queries.
  • E. The RESULT_SCAN table function can access and filter the contents of the query result cache.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DataEngineer7331
Highly Voted 1 year, 9 months ago
Selected Answer: BE
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.
upvoted 15 times
pranalig
8 months, 1 week ago
Great explaination
upvoted 2 times
...
...
William_20
Highly Voted 2 years, 5 months ago
Selected Answer: BE
result_scan: can return query results of past 24 hours: https://docs.snowflake.com/en/sql-reference/functions/result_scan.html
upvoted 10 times
...
JRayan
Most Recent 2 weeks, 3 days ago
Selected Answer: CE
CE are the right option.
upvoted 1 times
...
56d43d6
1 month, 3 weeks ago
Selected Answer: BE
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.
upvoted 1 times
...
pranalig
8 months, 1 week ago
Correct Answer: BE
upvoted 1 times
...
pranalig
8 months, 1 week ago
Correct Answer: BE
upvoted 1 times
...
sambathchandran
8 months, 3 weeks ago
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.
upvoted 1 times
...
_yyukta
12 months ago
Selected Answer: BE
B and E are correct
upvoted 1 times
...
Sk_3
1 year, 4 months ago
b,E RESULT_SCAN IS DIFFERENT FROM QUERY RESULT CACAHE
upvoted 1 times
...
ajsharma22
1 year, 5 months ago
"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
upvoted 1 times
...
dmitriypo
1 year, 9 months ago
Selected Answer: CE
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
upvoted 3 times
Rajivnb
1 year, 4 months ago
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.
upvoted 1 times
...
...
RajuNaik
1 year, 10 months ago
CE correct answer
upvoted 1 times
...
Kvk117
1 year, 10 months ago
Selected Answer: CE
https://docs.snowflake.com/en/sql-reference/functions/result_scan
upvoted 2 times
jawllalabad
1 year, 10 months ago
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.
upvoted 3 times
...
...
brian_69420
1 year, 10 months ago
Selected Answer: CE
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
upvoted 5 times
...
baig123
2 years, 2 months ago
B and E should be correct one.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago