Explain Snowflake's result caching mechanism and how it affects query behavior.

Quick Overview

Asks you to explain how Snowflake caches query results, when a stored result can be reused, and how long it is kept. Tests whether you understand the effect of result reuse on cost, dashboard latency and benchmarking, and how to switch it off.

Explain Snowflake's result caching mechanism and how it affects query behavior.

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

Explain Snowflake's result caching mechanism and how it affects query behavior. ```hint Where and when Think about which layer of Snowflake holds a stored result, and what has to be true about the query text, the underlying data and the user's role before that result can be returned again. ``` ```hint Side effects Consider what the cache does to a dashboard's cost and to a benchmark you run twice in a row. ``` ### What a Strong Answer Covers - Where query results are stored and why reusing one needs no running warehouse. - The conditions that must all hold before a stored result is reused. - How long results are kept and how reuse extends that period. - The practical effects on latency, cost, dashboards and benchmarking, and how to turn result reuse off. ### Follow-up Questions - How does the result cache differ from the warehouse's local disk cache and the metadata cache? - A query you expected to hit the result cache ran on the warehouse anyway. What could explain it? - How would you benchmark a query fairly in Snowflake? - How can you query a previous result again with `RESULT_SCAN`, and when is that useful?

Overview: Asks you to explain how Snowflake caches query results, when a stored result can be reused, and how long it is kept. Tests whether you understand the effect of result reuse on cost, dashboard latency and benchmarking, and how to switch it off.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

Explain Snowflake's result caching mechanism and how it affects query behavior.

What a Strong Answer Covers Guidance

  • Where query results are stored and why reusing one needs no running warehouse.
  • The conditions that must all hold before a stored result is reused.
  • How long results are kept and how reuse extends that period.
  • The practical effects on latency, cost, dashboards and benchmarking, and how to turn result reuse off.

Follow-up Questions Guidance

  • How does the result cache differ from the warehouse's local disk cache and the metadata cache?
  • A query you expected to hit the result cache ran on the warehouse anyway. What could explain it?
  • How would you benchmark a query fairly in Snowflake?
  • How can you query a previous result again with RESULT_SCAN , and when is that useful?