What is the difference between a Stream and a Task in Snowflake?

Quick Overview

Asks how a Stream and a Task differ in Snowflake and how they fit together in a data pipeline. Tests understanding of change data capture, when a stream's offset advances, how tasks are scheduled and triggered, and how to build an incremental load that processes only changed rows.

What is the difference between a Stream and a Task in Snowflake?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

What is the difference between a `Stream` and a `Task` in Snowflake? ```hint What state does each keep Think about what a Stream remembers between reads, and which event moves that state forward. ``` ```hint Look at the run condition Consider what a Task can check before it runs, and how that helps an incremental pipeline. ``` ### What a Strong Answer Covers - What a Stream records about a table and how it exposes inserts, updates and deletes - When a Stream's offset advances and which reads leave it unchanged - What a Task runs and what can trigger it - How the two combine into an incremental pipeline that processes only changed rows ### Follow-up Questions - Two different tasks need the same table's changes. Why is one shared stream a problem, and what would you do instead? - What makes a stream go stale, and how do you prevent it? - How does an update to a row appear in a standard stream, and how would a `MERGE` handle it? - When would you choose an append-only stream?

Overview: Asks how a Stream and a Task differ in Snowflake and how they fit together in a data pipeline. Tests understanding of change data capture, when a stream's offset advances, how tasks are scheduled and triggered, and how to build an incremental load that processes only changed rows.

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

What is the difference between a Stream and a Task in Snowflake?

What a Strong Answer Covers Guidance

  • What a Stream records about a table and how it exposes inserts, updates and deletes
  • When a Stream's offset advances and which reads leave it unchanged
  • What a Task runs and what can trigger it
  • How the two combine into an incremental pipeline that processes only changed rows

Follow-up Questions Guidance

  • Two different tasks need the same table's changes. Why is one shared stream a problem, and what would you do instead?
  • What makes a stream go stale, and how do you prevent it?
  • How does an update to a row appear in a standard stream, and how would a MERGE handle it?
  • When would you choose an append-only stream?