Snowflake · Beginner
Explain Snowflake's architecture.
By Anurag Pandey, Lead Data Engineer ·
The short answer
Snowflake has three layers: database storage, compute done by virtual warehouses, and cloud services that handle login, metadata, optimization and access control. Storage and compute scale separately.
Opens this question on SpinTheMic. Start without signing up; sign in free for an AI report card.
Say it like this
About 45 seconds out loud. Use it as a model, then put it in your own words.
Snowflake has three layers. The storage layer holds all table data in cloud object storage, organised into compressed, columnar micro-partitions that Snowflake manages for me. The compute layer is made of virtual warehouses, which are clusters that run queries. Every warehouse reads the same central storage but has its own compute, so a heavy data load and a dashboard can run on different warehouses without slowing each other down. On top sits the cloud services layer. It handles authentication, metadata, query parsing and optimization, access control and transactions. The big idea is that storage and compute are separate: I can resize or suspend a warehouse without touching the data, and pay for compute only while it runs.
What interviewers look for
- You name all three layers and say what each one does.
- You explain the benefit of separating storage and compute, with an example.
- You mention that warehouses don't compete with each other for resources.
Common mistakes
- Calling a virtual warehouse a place where data is stored. It is compute only.
- Leaving out the cloud services layer, which does optimization and metadata.
- Listing the layers without saying why the design matters.
Follow-up questions to expect
- 1How would you isolate a data load from BI users?
- 2What happens to your data when you suspend a warehouse?
- 3When would you use a multi-cluster warehouse?
Opens this question on SpinTheMic. Start without signing up; sign in free for an AI report card.