CertSafari
    Snowflake SnowPro Advanced: Data Engineer (DEA-C02)· Lessons

    Domain 1 · Lesson 4/22

    Snowpipe, Snowpipe Streaming and Openflow for continuous ingestion

    Design, build, and troubleshoot continuous data pipelines.

    15 min read
    4% of exam
    3 sources
    Published 20 Oct 2026
    Docs as of 18 Oct 2026

    What you will be able to do

    • Choose between auto-ingest and the Snowpipe REST API for a given storage location and trigger
    • Explain how a pipe queues, loads, deduplicates and bills for files, and where to look when loads stop
    • Choose between Snowpipe, Snowpipe Streaming, the Kafka connector and Openflow for a source

    Key concept

    Pipe — A pipe is a schema object that wraps one COPY INTO statement. Snowflake runs that statement on serverless compute for each new file it learns about, and the pipe keeps its own record of which files it has already seen.

    1.A pipe is a COPY statement that runs itself

    A continuous pipeline starts with getting data in without anyone running a load by hand. Snowpipe handles this for data that arrives as files. You write the COPY INTO statement once, inside a pipe. Snowflake then runs it for each new file on compute that it provides and scales, so there is no warehouse to size, start or suspend. New data is usually queryable within minutes.

    An auto-ingest pipe that loads JSON files from an external stage into a tablesql
    CREATE PIPE mydb.myschema.orders_pipe
      AUTO_INGEST = TRUE
      AS
      COPY INTO mydb.myschema.orders
        FROM @mydb.myschema.orders_stage
        FILE_FORMAT = (TYPE = 'JSON')
        MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE;

    Each pipe watches one location: the stage URL plus any optional path in its FROM clause. A pipe can read from a named internal stage, a table stage, or an external stage, which usually reaches cloud storage through a storage integration (Internal and external stages (including stage encryption)). For auto-ingest, the stage is normally external, and the bucket's event notifications have to cover the pipe's path. If they don't, no file under that path is ever announced to the pipe.

    With AUTO_INGEST = TRUE, your cloud storage service tells Snowpipe that a file has arrived. Snowpipe adds the file to the pipe's ingest queue, runs the COPY on the queued files, and records the file in the pipe's load metadata. It records the file whether the load succeeded or failed, so the file is ignored if it is staged again. Notifications reach Snowpipe through a notification channel. On S3 you configure the bucket to send events to the Amazon SQS queue shown in the SHOW PIPES output. You don't need a Lambda function, a polling script or a scheduled task. Files that were already in the stage before notifications were set up need a separate backfill.

    How each storage location notifies an auto-ingest pipe
    Where files landNotification path
    Amazon S3S3 event notifications through Amazon SQS, Amazon SNS or Amazon EventBridge
    Google Cloud StorageGoogle Cloud Pub/Sub plus a notification integration
    Microsoft Azure Blob Storage / Data Lake Storage Gen2Azure Event Grid, a storage queue and a notification integration
    Internal stagePublic preview only, and only for accounts hosted on AWS

    A pipe only loads. Neither Snowpipe nor bulk loading can join, aggregate or filter rows during a load. The usual design is to land the raw data with a pipe and transform it downstream.

    Checkpoint 1 of 9· Fill the gap

    This pipe should load each new JSON file as soon as the cloud storage service reports that it arrived, without your application calling an API. Which property completes the definition?

    CREATE PIPE mydb.myschema.orders_pipe
       ?  = TRUE
      AS
      COPY INTO mydb.myschema.orders
        FROM @mydb.myschema.orders_stage
        FILE_FORMAT = (TYPE = 'JSON')
        MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE;

    Checkpoint 2 of 9· Exam question

    A retail company lands clickstream JSON files in an S3 bucket every few seconds and wants them loaded into a raw table within about a minute of arrival, with no external service polling S3 or calling Snowflake. Which design meets this requirement?

    Sources1

    2.When your application calls insertFiles instead

    Leave AUTO_INGEST at its default of FALSE and the pipe waits for your application. The application stages a file, with PUT for an internal stage or with cloud tools for an external one. It then POSTs the file's path to the pipe's insertFiles endpoint. The path is relative to the location in the pipe's COPY statement.

    Asking orders_pipe to load one staged file through the Snowpipe REST APIbash
    curl --request POST \
      "https://myorg-myaccount.snowflakecomputing.com/v1/data/pipes/MYDB.MYSCHEMA.ORDERS_PIPE/insertFiles?requestId=$(uuidgen)" \
      --header "Authorization: Bearer ${JWT}" \
      --header "Content-Type: application/json" \
      --header "Accept: application/json" \
      --data '{"files": [{"path": "2026/10/03/orders_0001.json.gz"}]}'

    Auto-ingest needs no code, so it is the default choice for files in S3, GCS or Azure. The REST API is the better choice in three situations:

    • The storage can't send event notifications to Snowflake, for example S3-compatible storage or a bucket whose notification settings you can't change.
    • The files are in an internal stage. The REST API loads from named internal stages and table stages on any cloud, while auto-ingest from internal stages is in preview on AWS only.
    • The application decides when a file is ready, for example after writing it in several steps or validating a batch. Snowpipe loads only what the application submits, at the moment it submits it.

    A response from insertFiles tells you less than it seems to. A 200 means the file was queued, not loaded. To confirm the load, call insertReport (last 10 minutes) or loadHistoryScan (a time range you specify), or query the copy history. Calling insertFiles requires OPERATE on the pipe. The two report endpoints require MONITOR on the pipe or MONITOR EXECUTION on the account. Every request is authenticated on its own, usually with a JWT signed by a user's private key, or with workload identity federation. A JWT is valid for at most one hour. Each request runs as the user's default role, which you can't override per request. The files themselves are loaded with the privileges of the role that owns the pipe.

    Deduplication is per pipe. Snowpipe skips any path that the pipe has already received in the last 14 days. That history belongs to the pipe and is separate from the load metadata that a manual COPY records on the table (Load metadata and the 64-day deduplication window). A pipe definition can't be edited. Recreating a pipe drops its load metadata, so a recreated pipe no longer remembers what it already loaded.

    Checkpoint 3 of 9· Check yourself

    A Snowflake account runs on Azure. An application writes order files to a named internal stage in several steps and validates each batch before anything should load. Which Snowpipe setup fits?

    Checkpoint 4 of 9· Check yourself

    An ingestion service POSTs a file path to a pipe's insertFiles endpoint and gets back HTTP 200. What does the service know at this point, and what should it do next?

    Checkpoint 5 of 9· Exam question

    An on-premises ETL tool writes export files to a Snowflake internal stage rather than cloud storage, so no cloud storage event notification service is available to trigger loading. The team still wants each new file loaded within seconds of the ETL job finishing its write. Which mechanism should they use?

    Sources21

    3.Ordering, billing and finding failed loads

    Each pipe has a single queue, but several processes pull files from it. Older files usually load first, but staging order isn't guaranteed. If downstream logic assumes files arrive in order, that assumption has to be enforced in the data, for example with a timestamp column, not in the pipe.

    Billing follows data volume, not time. Snowpipe charges a fixed number of credits per GB loaded, with no charge for warehouse time or file count. Text formats such as CSV and JSON are billed on uncompressed size. Binary formats such as Parquet, Avro and ORC are billed on their size in storage. When a pipe's credit consumption drops suddenly, it usually means fewer bytes are being loaded, often because every file is failing.

    Pipes aren't tasks, and their loads don't run on a warehouse that you own. Monitoring tools built for tasks or warehouses therefore can't explain them. The pipe-specific tools are:

    • SYSTEM$PIPE_STATUS shows whether a pipe is running and how many files are waiting.
    • The COPY_HISTORY table function or view, and VALIDATE_PIPE_LOAD, show which files loaded and why a file failed.
    • Error notifications through SNS, Pub/Sub or Event Grid tell you when a load fails.
    • The Snowpipe costs pages explain how to query actual credit usage.

    Checkpoint 6 of 9· Check yourself

    Your team's Snowpipe loads gzip-compressed CSV files: 10 GB as stored in the bucket, 40 GB once uncompressed, split across 8,000 small files. What determines the Snowpipe charge for this load?

    Checkpoint 7 of 9· Exam question

    A data engineer suspects a Snowpipe pipe silently stopped loading files two days ago after a schema drift caused repeated COPY errors, and finance is now asking why Snowpipe credit consumption dropped. Where should the engineer look first to confirm both the load failures and the associated compute usage?

    Sources1

    4.Rows, Kafka topics and source systems

    Snowpipe Streaming is for data that arrives as rows or events rather than files. Applications send rows directly into tables or Snowflake-managed Iceberg tables, with no staged files. Ingest-to-queryable latency can be as low as 5 seconds, and throughput can reach 20 GB/s per table. Compute is serverless, and billing is credits per uncompressed GB ingested. Rows travel over channels through a PIPE object, which can use COPY syntax to reorder columns, cast types and apply expressions before the rows are committed.

    The two Snowpipe Streaming channel modes
    ModeDeliveryFits
    Elastic ChannelsAt-least-once, no ordering guarantee; Snowflake creates and scales the channelsMost new applications, IoT and telemetry
    Named ChannelsOrdered, exactly-once within each channel, tracked by offset tokensSources with strict ordering, such as Kafka partitions or CDC

    Offset tokens let a Named Channel client recover exactly once: each token records the committed progress in that channel. Clients can be written with the Java, Python or Node.js SDKs, which share a Rust core that buffers, batches and compresses appends. Raw REST is the alternative, where your code sends newline-delimited JSON and handles compression itself. Use the SDK where you can, and keep REST for lightweight or edge clients.

    Whether you need your own streaming client depends on the source. If the events are already in Kafka topics, use the Snowflake Connector for Kafka, which is built on Snowpipe Streaming, rather than writing a consumer (Snowflake Kafka connector). Write an SDK client when there is no Kafka, for example devices or services producing events directly, or when you need direct control over channels and offsets.

    Some sources are neither files nor event streams. For a database or SaaS application, the right tool is an Openflow connector, which ingests directly from the source system. A typical pipeline design therefore assigns each source to one path: Openflow for databases and SaaS applications, Snowpipe for files, and Snowpipe Streaming or the Kafka connector for rows.

    Checkpoint 8 of 9· Match them up

    A pipeline design gives each source one ingestion path. Match each source to the path it should use.

    Tap a term, then the definition that fits it.

    Checkpoint 9 of 9· Check yourself

    A team writes a custom Snowpipe Streaming client that reads a partitioned change log. Rows in each partition must be applied in their original order. After the client crashes and restarts, it must resume without duplicating rows. Which approach meets these requirements?

    Sources31

    Sources

    (3)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “Automated loading from internal stages is in public preview and is available only for accounts hosted on AWS.”
      ↩︎ A pipe is a COPY statement that runs itself
      “Neither Snowpipe nor bulk loading can join, aggregate, or filter rows during a load.”
      ↩︎ A pipe is a COPY statement that runs itself
      “You can’t edit a pipe’s definition. To change it, you recreate the pipe, which drops its load metadata.”
      ↩︎ When your application calls insertFiles instead
      “Snowpipe generally loads older files first, but doesn’t guarantee that files load in the order that they were staged.”
      ↩︎ Ordering, billing and finding failed loads
      “Snowpipe charges a fixed number of credits per GB of data loaded, with no charge for warehouse time or for the number of files.”
      ↩︎ Ordering, billing and finding failed loads
      “To ingest Apache Kafka topics, use the Snowflake Connector for Kafka, which is built on Snowpipe Streaming.”
      ↩︎ Rows, Kafka topics and source systems
      “Your source is a database or SaaS application rather than files. Use an Openflow connector to ingest the data directly from the source system.”
      ↩︎ Rows, Kafka topics and source systems
      “You define the load once in a pipe, a schema object that holds a COPY INTO statement”
      ↩︎ Key concept
      “With automated loading, a new pipe loads only the files that arrive after you set up event notifications.”
      ↩︎ Exam trap 1
      “With automated loading, a new pipe loads only the files that arrive after you set up event notifications.”
      ↩︎ Prediction
      “A fixed number of credits per GB loaded: uncompressed size for text files, size in storage for binary files”
      ↩︎ Checkpoint
    2. 2.
      “Snowpipe skips any path that the pipe already received in the last 14 days”
      ↩︎ When your application calls insertFiles instead
      “A 200 response means that Snowpipe queued the file. It doesn’t mean that the file loaded.”
      ↩︎ Exam trap 2
      “Requests run with the user’s default role. You can’t choose a role in the request.”
      ↩︎ Exam trap 3
      “With the REST API, you can load from named internal stages and table stages on any cloud platform.”
      ↩︎ Checkpoint
      “A 200 response means that Snowpipe queued the file. It doesn’t mean that the file loaded.”
      ↩︎ Checkpoint
    3. 3.
      “Named Channels provide ordered, exactly-once ingestion within each channel by using offset tokens.”
      ↩︎ Rows, Kafka topics and source systems
      “Where possible, use the Snowpipe Streaming SDK instead of the REST API to benefit from automatic batching and simpler integration.”
      ↩︎ Rows, Kafka topics and source systems

    Continue to part 2 of 2

    Streams, tasks and dynamic tables for continuous transformation

    Spotted a mistake, or was something unclear? Tell us.