Snowflake's three caches (result, warehouse, metadata): how each speeds up queries and cuts cost

Quick Overview

Asks you to describe Snowflake's result cache, warehouse (local disk) cache and metadata cache, and how each one affects query speed and compute cost. It tests what each cache stores, when it can be reused or is cleared, and how warehouse settings change the trade-off.

Snowflake's three caches (result, warehouse, metadata): how each speeds up queries and cuts cost

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

Describe the three types of caches in Snowflake (result cache, local disk/warehouse cache, and metadata cache) and how each contributes to query performance and cost optimization. ```hint Follow one query Trace a query through the cloud services layer, the virtual warehouse and remote storage. At each stage, ask what work could be skipped and whether a warehouse has to be running. ``` ```hint What makes each cache go away For each cache, ask what invalidates or clears it, and what that means for warehouse settings such as auto-suspend. ``` ### What a Strong Answer Covers - Where each cache lives and what it stores - When each cache can serve a query, and what invalidates or clears it - Which caches avoid warehouse credits entirely and which only cut I/O and latency - How auto-suspend and resizing interact with the warehouse cache, and the cost trade-off that creates - How to tell from the query profile or query history which cache served a query ### Follow-up Questions - A dashboard is slow on its first refresh each morning and fast afterward. Which caches explain this, and what would you change? - Two analysts run what looks like the same query an hour apart, and only one gets a result cache hit. What could explain it? - How would you choose an auto-suspend value for a BI warehouse compared with an ETL warehouse? - How would you benchmark a query fairly when caches keep changing its runtime?

Overview: Asks you to describe Snowflake's result cache, warehouse (local disk) cache and metadata cache, and how each one affects query speed and compute cost. It tests what each cache stores, when it can be reused or is cleared, and how warehouse settings change the trade-off.

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

Describe the three types of caches in Snowflake (result cache, local disk/warehouse cache, and metadata cache) and how each contributes to query performance and cost optimization.

What a Strong Answer Covers Guidance

  • Where each cache lives and what it stores
  • When each cache can serve a query, and what invalidates or clears it
  • Which caches avoid warehouse credits entirely and which only cut I/O and latency
  • How auto-suspend and resizing interact with the warehouse cache, and the cost trade-off that creates
  • How to tell from the query profile or query history which cache served a query

Follow-up Questions Guidance

  • A dashboard is slow on its first refresh each morning and fast afterward. Which caches explain this, and what would you change?
  • Two analysts run what looks like the same query an hour apart, and only one gets a result cache hit. What could explain it?
  • How would you choose an auto-suspend value for a BI warehouse compared with an ETL warehouse?
  • How would you benchmark a query fairly when caches keep changing its runtime?