What you will be able to do
- Pick the Snowflake driver that matches an application's language or connectivity standard
- Explain what the Snowflake Connector for Python offers a Python script, including pandas support
- Tell apart drivers, which you build your own applications on, from the Kafka and Spark connectors, which plug one external system into Snowflake
- Choose between Snowpipe and Snowpipe Streaming for the Kafka connector with snowflake.ingestion.method
- Describe how the Spark connector moves data and when query pushdown applies
Key concept
Clients call in, integrations reach out — Drivers and connectors are libraries that run outside Snowflake and open a connection into it. Integrations work the other way round: they are named objects inside Snowflake that let it reach cloud storage, HTTPS APIs or Git servers without anyone pasting credentials into a stage or a query.
1.Snowflake drivers, one per language or standard
A Snowflake driver is a library your own application uses to connect to Snowflake and run statements. Snowflake ships one for each major language or connectivity standard, so the choice usually comes down to what the application is written in, or which database API the tools around it already expect. A Python service uses the Python connector. A Node.js service uses the Node.js driver. A reporting tool that only speaks ODBC uses the ODBC driver.
| Driver | Use it when |
|---|---|
| JDBC Driver | A Java application, or any client tool that supports JDBC, needs to connect |
| ODBC Driver | The client application is ODBC-based |
| Snowflake Connector for Python | You are writing Python applications that perform standard operations |
| Go Snowflake Driver | The application is written in Go |
| .NET Driver | The application is built on the Microsoft .NET framework |
| Node.js Driver | You want a native asynchronous Node.js interface |
| PHP PDO Driver for Snowflake | The application is written in PHP |
JDBC is the broadest option for Java. The JDBC driver lets you connect from most client tools and applications that support JDBC, so a Java scheduler, IDE or BI tool that is already built on Java Database Connectivity can connect to Snowflake without custom code. The other drivers do not fill that role. The Node.js driver offers an asynchronous interface for JavaScript runtimes. The Go driver offers its own interface for Go programs. PHP PDO is PHP's own database abstraction layer. None of the three gives a Java tool the JDBC surface it expects.
Every driver encrypts traffic with TLS. TLS 1.3 is supported everywhere except some .NET platforms, such as macOS before .NET 10. Two drivers, ODBC Driver 4.x and the Python connector, are now built on the Universal Core, a shared Rust library. A connection must also name the account it targets, in the format covered under Account identifiers. Unattended services should authenticate without a stored password, using one of the methods in Authentication: SSO/federated, MFA, OAuth, key-pair.
Checkpoint 1 of 7· Match them up
Match each client application to the Snowflake driver it should use
Tap a term, then the definition that fits it.
You choose a driver by the application's language or by the database API the tool already uses. The JDBC driver covers most tools that support JDBC. ODBC-based tools use the ODBC driver, Node.js gets the asynchronous driver, and Python applications use the Snowflake Connector for Python. Despite its name, the Python connector is listed among the drivers.
“Connect to Snowflake from most client tools/applications that support JDBC.”Source: docs.snowflake.com
Checkpoint 2 of 7· Exam question
A platform team is building a Java-based ETL scheduler that must connect to Snowflake through a broad set of existing client tools already standardized on a common database connectivity API. Which driver best fits this requirement?
Correct answer: A — The JDBC driver, because it implements the widely adopted Java Database Connectivity standard that most Java tools already expect.
- A. The JDBC driver implements the standard Java Database Connectivity API, which is exactly the interface Java-based schedulers and most client tools already expect, giving the broadest compatibility described.
- B. The Node.js driver targets JavaScript runtimes and does not provide a JDBC interface, so it would not satisfy a requirement built around Java-based tooling and JDBC compatibility.
- C. Go applications use the Go Snowflake driver's own native interface; Go does not natively expose a JDBC-compatible surface, so this does not meet the stated requirement.
- D. PDO is PHP's own database abstraction layer and is unrelated to JDBC, so Java-based tooling cannot consume it without an entirely different integration layer.
Sources1
2.The Snowflake Connector for Python
For Python code, the Python connector is the native choice. It does the same job as JDBC or ODBC, but you write Python instead of Java or C/C++. It follows the Python Database API v2 specification (PEP 249), so its objects are the ones Python developers already know. A Connection object opens the session, and a Cursor object runs DDL, DML and queries. You install it with pip on Linux, macOS or Windows, and it needs Python 3.11 or later. From version 5.0 the connector runs on the Universal Core, but the public module is still snowflake.connector.
A typical data-science script runs parameterized SQL, pulls the results into pandas and closes the session at the end of a CI job. The connector supports this directly: it has documented pandas support, asynchronous I/O, and a SQLAlchemy toolkit. Wrapping the ODBC driver in a Python library adds a layer you don't need. Shelling out to SnowSQL from a script returns text, not DataFrames. To create databases, schemas, tables or warehouses from Python without writing SQL, use the separate Snowflake Python APIs.
Checkpoint 3 of 7· Check yourself
A nightly CI job in Python runs parameterized SQL against Snowflake. It loads the results into pandas DataFrames for analysis and closes the session when it finishes. What should the job use to talk to Snowflake?
The Python connector is the native PEP 249 library for running SQL from Python, and it supports pandas directly. Wrapping ODBC adds a layer the job doesn't need. SnowSQL returns text, not DataFrames. The Snowflake Python APIs are for managing objects such as databases and warehouses without SQL, not for running queries.
“Using Pandas with the Python Connector”Source: docs.snowflake.com
Checkpoint 4 of 7· Exam question
A data science team writes Python automation scripts that run parameterized SQL, fetch results into pandas DataFrames, and manage sessions as part of a CI pipeline. Which connectivity option is purpose-built for this workflow?
Correct answer: A — The Python connector, since it offers a native session and query API with built-in helpers for loading results into DataFrames.
- A. The Python connector is Snowflake's native Python library, offering session management, parameterized query execution, and built-in helpers to load results into pandas DataFrames, matching every part of the scenario.
- B. ODBC can be called from Python but is not Python's native interface and is not the only scripted option; the Python connector avoids the extra wrapper layer and is purpose-built for this case.
- C. SnowSQL is a command-line client for interactive or scripted SQL execution, but it does not return DataFrame objects to a Python process, so it does not satisfy the DataFrame integration requirement.
- D. .NET is Microsoft's framework for building C#/.NET applications and has no native pandas DataFrame support, so it cannot serve this Python-based CI automation requirement.
Sources2
3.The Kafka connector: topics into tables
Connectors are a separate group from drivers. A driver is something you build your own application on. A connector is software Snowflake provides to link Snowflake to one particular external system, and Snowflake ships two: one for Apache Kafka and one for Apache Spark. On an exam, if the question asks for a Snowflake-provided connector for a specific data source, the answer is one of these two, not JDBC, ODBC or the Python connector.
The Kafka connector moves data in one direction only, from Kafka into Snowflake. It runs inside a Kafka Connect cluster, which is separate from the Kafka cluster itself. It reads one or more topics and writes the messages as rows into Snowflake tables. You can map topics to existing tables. An unmapped topic gets a new table named after the topic: the name is converted to uppercase, and illegal characters become underscores. By default each table has two VARIANT columns. RECORD_CONTENT holds the Kafka message, and RECORD_METADATA holds details such as the topic the message came from. Snowflake ships separate versions for Confluent and for open-source Apache Kafka, and recommends the v4 connector for new implementations.
The connector has two ways to load: file-based Snowpipe or row-based Snowpipe Streaming. You choose with snowflake.ingestion.method in the connector properties file. SNOWPIPE is the default, and SNOWPIPE_STREAMING switches to streaming. In streaming mode the connector buffers records until a flush threshold (time, memory or message count) is reached, then writes the rows through the Snowpipe Streaming API. This gives lower latency and, for similar volumes, lower cost. Streaming needs Kafka connector version 2.0.0 or later. For when to use each path, see Snowpipe Streaming and choosing an ingestion path.
Checkpoint 5 of 7· Check yourself
Your team wants to move messages from several Apache Kafka topics into Snowflake tables. They want to use software that Snowflake provides for this, not code they write themselves. Which should they deploy?
Snowflake documents only Kafka and Spark as its connectors for external systems, and the Kafka connector is the one that reads topics and writes their messages into tables. JDBC and the Python connector are drivers that you build your own applications on, even though one of them is called a connector.
“See Drivers and Using Snowflake with Kafka and Spark for documentation for the drivers and connectors, respectively.”Source: docs.snowflake.com
Checkpoint 6 of 7· Exam question
Which of the following is a Snowflake-provided native connector for a specific data source, rather than a general-purpose driver library for building custom client applications?
Correct answer: A — Kafka connector
- A. The Kafka connector is a native connector that reads from Kafka topics and loads data into Snowflake tables automatically, rather than a generic library used to build custom client applications.
- B. JDBC is a general-purpose driver library that lets developers build or connect custom Java-based client applications to Snowflake, not a purpose-built source connector.
- C. The Python connector is a general-purpose driver library for writing custom Python applications against Snowflake, not a dedicated source-system connector.
- D. ODBC is a general-purpose driver library used by many client tools to build database connectivity, not a native connector tied to a specific data source.
4.The Spark connector: two-way DataFrame transfer
The Spark connector makes Snowflake a Spark data source, alongside sources like PostgreSQL, HDFS or S3. It runs as a Spark plugin, ships as the spark-snowflake package, and moves data in both directions. You can fill a Spark DataFrame from a Snowflake table or query, and write a DataFrame back to a Snowflake table. The Spark cluster can be self-hosted or managed by a service such as AWS EMR or Databricks.
The Spark connector runs on top of the JDBC driver; it does not replace it. You could connect Spark to Snowflake with a third-party JDBC driver alone. The connector adds two things that matter at scale: transfers optimized for large data volumes, and query pushdown. Pushdown, available from version 2.1.0, translates parts of a Spark logical plan into SQL that runs in Snowflake. Not everything can be pushed down. Spark UDFs, for example, always run in Spark. If you need every operation to run inside Snowflake, Snowflake suggests the Snowpark API instead.
The connector moves data through one of two transfer modes. Internal transfer uses a temporary stage that the connector creates when the session starts and drops when it ends. It is the recommended default. Its temporary credentials expire after 36 hours, so use external transfer to a storage location you manage for transfers that may run longer, or on connector versions 2.1.x and earlier. External transfer has a cleanup cost: the connector does not delete its files, so you remove them manually, set the connector's purge parameter, or add a storage lifecycle policy.
Checkpoint 7 of 7· Check yourself
Spark jobs on a Databricks cluster need to load Snowflake tables into DataFrames and write transformed DataFrames back to Snowflake. The jobs handle large volumes, so filters should run inside Snowflake where possible. The team wants Snowflake-provided software for this. What should they use?
Snowflake provides two connectors for external systems, Kafka and Spark. Only the Spark connector moves DataFrames in both directions and pushes parts of the Spark plan down to Snowflake as SQL. It uses the JDBC driver rather than replacing it. The Kafka connector only loads topics into Snowflake, and the Python connector is a driver.
“See Drivers and Using Snowflake with Kafka and Spark for documentation for the drivers and connectors, respectively.”Source: docs.snowflake.com
Sources
(9)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Connect to Snowflake from most client tools/applications that support JDBC.”
↩︎ Snowflake drivers, one per language or standard“Connect to Snowflake with a native asynchronous Node.js interface.”
↩︎ Snowflake drivers, one per language or standard“All Snowflake drivers support TLS to secure communications between the client and the Snowflake service.”
↩︎ Snowflake drivers, one per language or standard“Both are built on the Universal Core, a shared Rust library.”
↩︎ Snowflake drivers, one per language or standard“Using languages such as Go, C#, JavaScript, and Python, you can write applications that perform operations on Snowflake.”
↩︎ Prediction - 2.
“Cursor objects for executing DDL/DML statements and queries.”
↩︎ The Snowflake Connector for Python“It can be installed using pip on Linux, macOS, and Windows where Python 3.11 or later is installed.”
↩︎ The Snowflake Connector for Python“Using Pandas with the Python Connector”
↩︎ The Snowflake Connector for Python“It provides a programming alternative to developing applications in Java or C/C++ using the Snowflake JDBC or ODBC drivers.”
↩︎ Exam trap 1 - 3.
“See Drivers and Using Snowflake with Kafka and Spark for documentation for the drivers and connectors, respectively.”
↩︎ The Kafka connector: topics into tables“See Drivers and Using Snowflake with Kafka and Spark for documentation for the drivers and connectors, respectively.”
↩︎ Checkpoint - 4.
“reads data from one or more Apache Kafka topics and loads the data into a Snowflake table.”
↩︎ The Kafka connector: topics into tables - 5.
“designed to run in a Kafka Connect cluster to read data from Kafka topics and write the data into Snowflake tables”
↩︎ The Kafka connector: topics into tables“If the topics are not mapped, then the Kafka connector creates a new table for each topic using the topic name.”
↩︎ The Kafka connector: topics into tables“every Snowflake table loaded by the Kafka connector has a schema consisting of two VARIANT columns”
↩︎ The Kafka connector: topics into tables - 6.https://docs.snowflake.com/en/user-guide/snowpipe-streaming/snowpipe-streaming-classic-kafkaOfficial docs
“SNOWPIPE_STREAMING SNOWPIPE (default)”
↩︎ The Kafka connector: topics into tables“Version 2.0.0 (or later) of the Kafka connector is required for use with Snowpipe Streaming Classic.”
↩︎ The Kafka connector: topics into tables“For new implementations, Snowflake recommends the Snowflake Connector for Kafka (v4)”
↩︎ The Kafka connector: topics into tables“Specifies whether to use Snowpipe Streaming or standard Snowpipe to load your Kafka topic data.”
↩︎ Exam trap 2 - 7.
“The connector runs as a Spark plugin and is provided as a Spark package (spark-snowflake).”
↩︎ The Spark connector: two-way DataFrame transfer - 8.
“The connector supports bi-directional data movement between a Snowflake cluster and a Spark cluster.”
↩︎ The Spark connector: two-way DataFrame transfer“uses the Snowflake JDBC driver to communicate with Snowflake.”
↩︎ The Spark connector: two-way DataFrame transfer“Spark UDFs cannot be pushed down to Snowflake.”
↩︎ The Spark connector: two-way DataFrame transfer“internal transfer uses temporary credentials that expire after 36 hours”
↩︎ The Spark connector: two-way DataFrame transfer“the connector does not automatically delete the files from the storage location.”
↩︎ The Spark connector: two-way DataFrame transfer“The Snowflake Connector for Spark is not strictly required to connect Snowflake and Apache Spark; other 3rd-party JDBC drivers can be used.”
↩︎ Exam trap 3
Also cited
“Integrations are named, first-class Snowflake objects that avoid the need for passing explicit cloud provider credentials such as secret keys or access tokens.”
↩︎ Key concept