When would you choose Snowflake Streams and Tasks versus Dynamic Tables for a CDC pipeline?

Quick Overview

Asks when a change data capture pipeline in a cloud data warehouse should use Streams and Tasks and when it should use Dynamic Tables. Tests whether you can weigh declarative refresh against imperative control, handle deletes and history, and account for offsets, staleness and compute cost.

When would you choose Snowflake Streams and Tasks versus Dynamic Tables for a CDC pipeline?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

In Snowflake, when would you choose Streams + Tasks versus Dynamic Tables for a CDC (change data capture) pipeline? ```hint Who owns the logic For each option, ask who decides what changed, when the refresh runs and in what order. Then ask what kind of logic cannot be written as one `SELECT`. ``` ```hint Think about history Consider a source table that is updated in place. Which option can still see the old version of a row after it changes? ``` ### What a Strong Answer Covers - What each option is, and who manages change tracking, refresh scheduling and dependency order. - The kinds of logic only the imperative option can express. - The operational cost of each: offsets, staleness, scheduling, monitoring and compute spend. - A clear decision rule, and when a mix of both fits. ### Follow-up Questions - How would you build an SCD Type 2 history table from a source that is updated in place? - What happens if a stream is not consumed for longer than the source table's data retention period? - How do you tell whether a dynamic table refreshes incrementally or fully, and what forces a full refresh? - How would you pick target lags for a chain of dynamic tables feeding a dashboard?

Overview: Asks when a change data capture pipeline in a cloud data warehouse should use Streams and Tasks and when it should use Dynamic Tables. Tests whether you can weigh declarative refresh against imperative control, handle deletes and history, and account for offsets, staleness and compute cost.

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

In Snowflake, when would you choose Streams + Tasks versus Dynamic Tables for a CDC (change data capture) pipeline?

What a Strong Answer Covers Guidance

  • What each option is, and who manages change tracking, refresh scheduling and dependency order.
  • The kinds of logic only the imperative option can express.
  • The operational cost of each: offsets, staleness, scheduling, monitoring and compute spend.
  • A clear decision rule, and when a mix of both fits.

Follow-up Questions Guidance

  • How would you build an SCD Type 2 history table from a source that is updated in place?
  • What happens if a stream is not consumed for longer than the source table's data retention period?
  • How do you tell whether a dynamic table refreshes incrementally or fully, and what forces a full refresh?
  • How would you pick target lags for a chain of dynamic tables feeding a dashboard?