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.
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.
| Where files land | Notification path |
|---|---|
| Amazon S3 | S3 event notifications through Amazon SQS, Amazon SNS or Amazon EventBridge |
| Google Cloud Storage | Google Cloud Pub/Sub plus a notification integration |
| Microsoft Azure Blob Storage / Data Lake Storage Gen2 | Azure Event Grid, a storage queue and a notification integration |
| Internal stage | Public 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;AUTO_INGEST = TRUE turns on automated loading, so Snowpipe queues each file when the storage event notification arrives. Without it, the pipe defaults to FALSE and loads only the files an application submits through the Snowpipe REST API. Either way, the pipe does not pick up files that were already in the stage.
Source: docs.snowflake.comCheckpoint 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?
Correct answer: A — Create a pipe with AUTO_INGEST = TRUE referencing the external stage, then configure the S3 bucket to publish s3:ObjectCreated:* events to the SQS queue that Snowflake generated for that pipe.
- A. Auto-ingest Snowpipe is driven entirely by cloud event notifications: the S3 bucket publishes object-created events to the SQS queue tied to the pipe, and Snowflake's own compute picks up and loads the files with no client calling Snowflake or polling the bucket. This matches the requirement for near-minute latency without any external service.
- B. This still loads through Snowpipe, but it requires standing up and operating a Lambda function as an external component that watches S3 and calls the REST API on every event. That contradicts the requirement of no external service polling or calling Snowflake.
- C. A scheduled task running
COPY INTOon a fixed one-minute cadence uses a customer-managed warehouse and polls the stage on a timer rather than reacting to file-arrival events, so it burns warehouse credits even when no files have landed and is not the event-driven mechanism being asked for. - D. Snowflake does not have a background process that scans a stage's directory table on an interval to auto-queue files; without
AUTO_INGESTand an event notification source, a pipe only loads files when explicitly told to viaALTER PIPE ... REFRESHor the REST API.
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.
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?
On Azure, auto-ingest can't load from internal stages. That is in preview on AWS only. The REST API loads from named internal stages on any cloud, and Snowpipe loads only the files the application submits, at the moment it submits them. That suits a batch that has to pass validation first.
“With the REST API, you can load from named internal stages and table stages on any cloud platform.”Source: docs.snowflake.com
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?
A 200 from insertFiles only means Snowpipe accepted the file into the pipe's queue. To confirm the load succeeded or failed, call insertReport (last 10 minutes) or loadHistoryScan (a time range you choose), or query the copy history.
“A 200 response means that Snowpipe queued the file. It doesn’t mean that the file loaded.”Source: docs.snowflake.com
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?
Correct answer: A — Have the ETL job call the Snowpipe REST insertFiles endpoint immediately after it finishes writing each file, authenticating with a JWT signed by the pipe owner's key pair.
- A. The REST API path is exactly for cases without a supported cloud event source: the client application explicitly notifies Snowpipe of new files by calling
insertFileswith the pipe name and file list, authenticated with a JWT built from the pipe owner's RSA key pair, so loading starts immediately after the write. - B. Auto-ingest depends on the underlying cloud storage (S3, Azure Blob, or GCS) publishing native event notifications to a queue Snowflake consumes; an internal stage has no such cloud event source, so
AUTO_INGEST = TRUEcannot be wired up for it. - C. Switching to Snowpipe Streaming changes the ingestion model entirely to row-level writes through an SDK channel, discarding the files already written to the stage rather than solving how to trigger loading of those existing files.
- D. A serverless task on a one-minute schedule still polls the stage on a timer using Snowflake-managed compute rather than being notified the instant a file appears, so it cannot guarantee within-seconds latency and adds unnecessary scheduled compute.
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_STATUSshows 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?
Snowpipe charges a fixed number of credits per GB loaded. It doesn't charge for compute time or file count. For text formats like CSV and JSON, the GB counted is the uncompressed size. Only binary formats such as Parquet, Avro and ORC are billed on their size in storage.
“A fixed number of credits per GB loaded: uncompressed size for text files, size in storage for binary files”Source: docs.snowflake.com
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?
Correct answer: A — Query the COPY_HISTORY table function or view for the target table to see per-file load status and error messages, and cross-reference it with PIPE_USAGE_HISTORY for the pipe's credit consumption over the same window.
- A.
COPY_HISTORYreports per-file load status, row counts, and error details for files a pipe attempted to load into a table, whilePIPE_USAGE_HISTORYreports the credits a pipe consumed over a time range, so together they confirm both that loads are failing and that compute usage dropped as a result. - B. Snowpipe loads run on Snowflake-managed serverless compute outside the session that issues ad hoc
COPY INTOstatements, so they do not generate ordinary Query History entries the way manually run copy statements do, making this the wrong place to look. - C. Pipes are a distinct object type from tasks and are not represented as task runs in
TASK_HISTORY; that view only tracks the SQL statements executed by actual task objects, not Snowpipe file-load activity. - D. A stage's directory table only tracks file metadata for staged files when directory tables are enabled on that stage, and it does not record load errors or credit consumption, so it cannot explain either the failures or the billing drop.
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.
| Mode | Delivery | Fits |
|---|---|---|
| Elastic Channels | At-least-once, no ordering guarantee; Snowflake creates and scales the channels | Most new applications, IoT and telemetry |
| Named Channels | Ordered, exactly-once within each channel, tracked by offset tokens | Sources 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.
The data's form decides the path. Use Snowpipe for files and Snowpipe Streaming for rows. If the rows are already in Kafka topics, use the Kafka connector instead of writing your own consumer. Databases and SaaS applications go through an Openflow connector.
“Your source is a database or SaaS application rather than files. Use an Openflow connector to ingest the data directly from the source system.”Source: docs.snowflake.com
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?
Named Channels give ordered, exactly-once ingestion within each channel. Offset tokens record committed progress, so a restarted client knows where to resume. Elastic Channels are at-least-once with no ordering guarantee, so resending unacknowledged events can create duplicates and doesn't preserve order.
“Named Channels provide ordered, exactly-once ingestion within each channel by using offset tokens.”Source: docs.snowflake.com
Sources
(3)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 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.
“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.https://docs.snowflake.com/en/user-guide/snowpipe-streaming/data-load-snowpipe-streaming-overviewOfficial docs
“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