CertSafari
    Snowflake SnowPro Core Certification (COF-C03)· Lessons

    Domain 3 · Lesson 11/19

    Snowpipe and Snowpipe Streaming: continuous loading in Snowflake

    Perform automated data ingestion

    17 min read
    6% of exam
    4 sources
    Published 21 Oct 2026
    Docs as of 18 Oct 2026

    What you will be able to do

    • Explain how a pipe wraps a COPY INTO statement and runs it on serverless compute
    • Diagnose why an auto-ingest pipe loads nothing, or why it ignores a re-staged file
    • Size staged files so Snowpipe processes them efficiently
    • Choose between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow for a given source
    • Place Openflow apart from pipes, and explain why it stays out of scope until it is globally GA

    Key concept

    Pipe — A pipe is a schema object that holds one COPY INTO statement. Snowpipe runs that statement on Snowflake-managed serverless compute each time it learns that a new file has arrived in the pipe's stage location.

    1.A pipe wraps one COPY INTO statement

    Snowpipe loads files continuously as they arrive in a stage, so the data does not wait for the next scheduled batch. A stage is a named pointer to files in internal or cloud storage; Stages (internal, external) and file formats covers how to create one. What Snowpipe adds is the pipe: a schema object that holds a single COPY INTO statement naming the source stage, the target table, the file format and any copy options. You define the load once, and Snowpipe runs it for every new file.

    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;

    The pipe definition has no WAREHOUSE clause. Snowflake supplies and scales the compute for every load, so there is no warehouse to size, start or suspend. You pay a fixed number of credits per GB loaded instead of paying for warehouse time. For text files that is the uncompressed size; for binary files it is the size in storage. New data typically becomes queryable within a minute of Snowpipe learning about the file. Snowflake does not guarantee that latency, and large files, or files that are expensive to decompress, decrypt or transform, take longer.

    Each new file goes through the same four steps:

    1. Snowpipe learns about the file, from a cloud storage event notification or from a call to the Snowpipe REST API.
    2. Snowpipe adds the file to the pipe's ingest queue.
    3. Snowflake-provided compute runs the pipe's COPY INTO on the queued files and commits the rows to the target table.
    4. Snowpipe records the file in the pipe's load metadata, whether it loaded or failed.

    The underlying statement is the same one described in COPY INTO for loading and unloading. Wrapping it in a pipe changes how it behaves in three ways. It runs serverless rather than on your warehouse. Snowpipe may combine or split loads across several transactions, whereas each bulk COPY INTO runs as a single transaction. The transformations are also limited: a pipe can reorder, omit or cast columns with a simple SELECT, but WHERE clauses, FLATTEN, joins and GROUP BY are not supported. A pipe's definition also cannot be edited. To change it you recreate the pipe, and recreating it drops its load metadata.

    Openflow is not a pipe, and it is not yet a service to design an ingestion path around. It is a separate integration service built on Apache NiFi that pulls straight from databases, SaaS applications and streaming services, so it needs no files in a stage, which is the one thing a pipe requires. Its gen 2 connector configuration is still in Public Preview, so Openflow stays out of scope until it is globally GA. Until then, ingestion questions are settled by Snowpipe, Snowpipe Streaming, streams and tasks, and dynamic tables.

    Checkpoint 1 of 9· Fill the gap

    This pipe loads JSON files from an external stage into a table as they arrive. Which keyword completes the statement the pipe wraps?

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

    Sources12

    2.How a pipe learns about new files: auto-ingest or REST

    A pipe can be triggered in two ways. With AUTO_INGEST = TRUE, your cloud storage service sends Snowpipe an event notification whenever a file lands. Without it (the default is FALSE), Snowpipe waits for your application to call the Snowpipe REST API insertFiles endpoint with the names of the files to load. The application authenticates with key pair authentication or workload identity federation. Both paths feed the same ingest queue. They differ only in how the pipe learns that a file exists.

    How Snowpipe is notified for each storage location
    Where the files areHow Snowpipe learns about them
    Amazon S3Auto-ingest: S3 event notifications delivered through Amazon SQS, Amazon SNS or Amazon EventBridge
    Google Cloud StorageAuto-ingest: Google Cloud Pub/Sub and a notification integration
    Microsoft Azure Blob Storage, Data Lake Storage Gen2, general-purpose v2Auto-ingest: Azure Event Grid, a storage queue and a notification integration
    Any supported external stage, a named internal stage, or a table stageREST API: a pipe without AUTO_INGEST = TRUE, called through insertFiles

    Auto-ingest only works when the notification chain is complete. For S3, the notification channel is an Amazon SQS queue that appears in the SHOW PIPES output, and the bucket has to publish its object-created events to that queue. On Google Cloud Storage and Azure, the pipe instead references a notification integration that gives Snowflake access to the Pub/Sub subscription or the storage queue. If that wiring is missing, the pipe still creates successfully and the stage still lists the files, but Snowpipe never hears about them. Auto-ingest from internal stages is in public preview and only available on AWS-hosted accounts.

    Enabling notifications does not backfill. A new pipe loads only the files that arrive after event notifications are set up, so files that were already in the stage have to be loaded separately. A file that fails to parse is not dropped silently either. It shows a Load failed status in the copy history and a FAILED state in Snowpipe events.

    Checkpoint 2 of 9· Check yourself

    A team creates an auto-ingest pipe on an S3 stage and finishes the event notification setup. The bucket already holds 500 files from last month. Then 20 new files arrive. What does the pipe load?

    Checkpoint 3 of 9· Exam question

    An engineer creates a Snowpipe object with AUTO_INGEST = TRUE referencing an external stage that points at an Amazon S3 bucket, but new files landing in the bucket are never automatically loaded into the target table. The pipe was created successfully and the stage lists the files when queried manually. What is the most likely cause of the missing automatic ingestion?

    Sources1

    3.Load metadata: why a pipe never reloads the same file

    Every pipe keeps load metadata, a record of the files it processed in the last 14 days. Snowpipe records a file whether it loaded or failed, and if the same file is staged again, Snowpipe ignores it. This is what stops duplicate rows when a notification is delivered twice. It also produces a common failure: an engineer overwrites sales_2026_09_10.csv in the stage with corrected data, keeps the same name, and waits. Nothing happens, because the pipe treats the file as already loaded.

    Bulk loading keeps its own, separate load history, and it lets you reload a file deliberately with FORCE. For standard tables it also lets you check files with VALIDATION_MODE before loading them. A pipe offers neither option. Recreating the pipe clears its load metadata, but that can lose files or load them twice, so it needs planning rather than being a quick reset.

    Errors follow a different default too. By default Snowpipe skips any file that contains an error (ON_ERROR = SKIP_FILE) and goes on loading the other files. A bulk COPY INTO stops the whole load by default (ON_ERROR = ABORT_STATEMENT), and pipes do not support that option.

    Checkpoint 4 of 9· Check yourself

    Yesterday an auto-ingest pipe loaded inventory_eu.csv. Today an analyst finds bad rows in it, fixes them, and uploads the corrected file to the stage under the same name. What gets the corrected data into the table?

    Checkpoint 5 of 9· Exam question

    A data engineer needs to reload a corrected version of a file named sales_2026_09_10.csv that Snowpipe already loaded successfully into the SALES table. The engineer overwrites the file in the stage with the corrected data using the same file name and waits for Snowpipe to reprocess it automatically. Why does the corrected data never reach the table?

    Sources1

    4.File size drives Snowpipe efficiency

    Snowflake's file-sizing guidance applies to Snowpipe as well as to bulk loads: aim for data files of roughly 100-250 MB (or larger) compressed. Every file adds processing overhead, so the recommendation is to aggregate smaller files. A source that writes thousands of 200 KB CSV files every few seconds pays that overhead thousands of times. Batching the records into larger files before they reach the stage cuts the per-file work and keeps costs and latency steadier.

    Several alternatives fail to fix this. Switching from auto-ingest to the REST API changes only how Snowpipe learns about each file; every file still goes through the same queue and COPY run. Stronger compression makes each file smaller but leaves the number of files unchanged. A clustering key on the target table has no effect on how files are discovered or grouped during a load. The opposite extreme is also a problem: loading very large files (for example, 100 GB or larger) is not recommended.

    Checkpoint 6 of 9· Check yourself

    An IoT gateway writes thousands of 200 KB CSV files to an S3 stage every few seconds, and an auto-ingest pipe loads them. Snowpipe costs and latency are uneven. Which change reduces the per-file overhead?

    Checkpoint 7 of 9· Exam question

    A retail company loads thousands of small CSV files (average 200 KB) into Snowflake every few seconds using Snowpipe with auto-ingest configured against an Amazon S3 event notification through SQS. The data engineering team notices that file processing latency is inconsistent. Which change best follows Snowflake's file-sizing guidance to reduce the per-file processing overhead while maintaining near-real-time ingestion?

    Sources3

    5.Snowpipe Streaming writes rows, not files

    Snowpipe Streaming skips files entirely. Applications, devices and services send rows directly into Snowflake tables or Snowflake-managed Iceberg tables, without staging files or intermediate object storage. Data becomes queryable in as little as 5 seconds, and throughput reaches up to 20 GB/s per table. Like Snowpipe, it is serverless, but it bills credits per uncompressed GB ingested. The rows still pass through a PIPE object, and that pipe can use COPY command syntax to reorder columns, cast types and apply expressions before the rows are committed.

    A channel is the logical path that carries rows through a pipe to a target table, and the two channel types offer different delivery guarantees. The choice depends on whether the source needs strict ordering.

    Elastic Channels compared with Named Channels
    AspectElastic ChannelsNamed Channels
    Who manages channelsSnowflake creates and scales them; producers just writeThe application, one channel per source partition
    Delivery guaranteeAt-least-once, no ordering guaranteeOrdered, exactly-once within each channel, using offset tokens
    FitsMost new applications, IoT and telemetrySources that need strict ordering, such as Kafka partitions or CDC

    Rows can arrive through the Java SDK, the Python SDK, the Node.js SDK, the REST API or the Snowflake Connector for Kafka. The three SDKs share a Rust-based client core that buffers, batches and compresses appends automatically. Direct REST clients have to group rows into newline-delimited JSON and handle compression themselves. Use an SDK where you can, and keep direct REST for lightweight workloads, IoT devices and edge deployments where an SDK does not fit.

    Checkpoint 8 of 9· Check yourself

    Which Snowpipe Streaming setup fits a CDC feed read from Kafka partitions, where rows must be applied in source order and must not be duplicated after a producer restarts?

    Sources4

    6.Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow

    The first question is the shape of the data when it arrives. If it is already files in cloud storage and a minute of delay is acceptable, use Snowpipe. If it is rows or events and you need them within seconds, use Snowpipe Streaming; Kafka topics go through the Kafka connector, which is built on Snowpipe Streaming. A large one-time or scheduled batch belongs to bulk COPY INTO on a warehouse.

    Bulk loading, Snowpipe and Snowpipe Streaming side by side
    CharacteristicBulk COPY INTOSnowpipeSnowpipe Streaming
    Data sourceFiles in a stageFiles in a stageRows from the SDK, REST API or Kafka connector
    How loading startsRun manually or on a schedule, such as from a taskEvent notification or a REST API callContinuously, as the client sends rows
    Typical latencyDepends on how often you run itTypically within a minuteAs low as 5 seconds
    ComputeVirtual warehouse you size and manageServerlessServerless
    BillingWarehouse credits while it runsFixed credits per GB loadedCredits per uncompressed GB ingested

    Openflow covers sources that are neither files nor event streams, such as an operational database or a SaaS application. It is an integration service built on Apache NiFi that connects any data source to any destination. Its connectors pull data straight from the source system, so you do not have to export files first. It runs as a managed service, deployed either inside your own VPC or within your Snowflake deployment.

    None of these paths joins, aggregates or filters rows during a load. Where you need that logic, land the raw data first, then transform it inside Snowflake with dynamic tables, or with streams and tasks.

    Checkpoint 9 of 9· Match them up

    For each ingestion requirement, pick the loading path this lesson recommends.

    Tap a term, then the definition that fits it.

    Sources124

    Sources

    (4)

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

    1. 1.
      “You define the load once in a pipe, a schema object that holds a COPY INTO statement”
      ↩︎ A pipe wraps one COPY INTO statement
      “you pay a fixed number of credits for each GB of data that Snowpipe loads”
      ↩︎ A pipe wraps one COPY INTO statement
      “With automated loading, a new pipe loads only the files that arrive after you set up event notifications.”
      ↩︎ How a pipe learns about new files: auto-ingest or REST
      “AUTO_INGEST = TRUE turns on automated loading (also called auto-ingest)”
      ↩︎ How a pipe learns about new files: auto-ingest or REST
      “Each pipe keeps load metadata, which is a record of the files that it processed in the last 14 days”
      ↩︎ Load metadata: why a pipe never reloads the same file
      “Your source is a database or SaaS application rather than files. Use an Openflow connector to ingest the data directly from the source system.”
      ↩︎ Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow
      “Snowpipe runs that statement for every new file on serverless compute that Snowflake manages”
      ↩︎ Key concept
      “Each pipe keeps load metadata, which is a record of the files that it processed in the last 14 days”
      ↩︎ Exam trap 1
      “Bulk loading, in contrast, stops the load by default when a file contains an error (ON_ERROR = ABORT_STATEMENT)”
      ↩︎ Exam trap 2
      “Snowpipe learns about the file, either from a cloud storage event notification or from a call to the Snowpipe REST API.”
      ↩︎ Exam trap 3
      “For automated loading, you also configure event notifications for your storage location so that Snowpipe learns about new files.”
      ↩︎ Prediction
      “Bulk loading also lets you reload files with FORCE”
      ↩︎ Checkpoint
      “Snowpipe learns about the file, either from a cloud storage event notification or from a call to the Snowpipe REST API.”
      ↩︎ Checkpoint
    2. 2.
      “gen 2 connector configuration remains in Public Preview”
      ↩︎ A pipe wraps one COPY INTO statement
      “Snowflake Openflow is an integration service that connects any data source and any destination”
      ↩︎ A pipe wraps one COPY INTO statement
      “Snowflake Openflow is an integration service that connects any data source and any destination”
      ↩︎ Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow
      “gen 2 connector configuration remains in Public Preview”
      ↩︎ Exam trap 4
    3. 3.
      “we recommend aiming to produce data files roughly 100-250 MB (or larger) in size compressed”
      ↩︎ File size drives Snowpipe efficiency
      “Aggregate smaller files to minimize the processing overhead for each file.”
      ↩︎ File size drives Snowpipe efficiency
      “these recommendations apply to bulk data loads as well as continuous loading using Snowpipe”
      ↩︎ File size drives Snowpipe efficiency
    4. 4.
      “Named Channels provide ordered, exactly-once ingestion within each channel by using offset tokens.”
      ↩︎ Snowpipe Streaming writes rows, not files
      “Elastic Channels provide at-least-once delivery without an ordering guarantee.”
      ↩︎ Snowpipe Streaming writes rows, not files
      “Use Snowpipe when your pipeline already produces files in cloud storage and batch-oriented, higher-latency loading is acceptable.”
      ↩︎ Choosing between bulk COPY, Snowpipe, Snowpipe Streaming and Openflow
      “Use Named Channels when reading from a source that requires strict ordering semantics, such as Kafka partitions or Change Data Capture (CDC).”
      ↩︎ Checkpoint

    Continue to part 2 of 2

    Streams, tasks and dynamic tables for continuous pipelines

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