What you will be able to do
- Apply the most-managed-layer-first rule to pick between Lakeflow Connect managed connectors, standard connectors, and custom, community or partner options
- Tell when custom logic calls for Auto Loader in your own Structured Streaming code and when it calls for a Lakeflow pipeline
- Decide between Auto Loader and COPY INTO from file volume, schema drift, data types and ingestion frequency
- Explain the Unity Catalog governance each method gives you, including who owns tables that ingestion partners create
Key concept
Most-managed-layer-first ingestion rule — Start with the most automated ingestion option that supports your source: a Lakeflow Connect managed connector first, then a standard connector such as Auto Loader or COPY INTO, and only then custom code, community connectors or ingestion partners. Move down a layer only when the one above cannot meet a real requirement, such as an unsupported source or transformation logic you have to control yourself.
1.Start at the most managed layer that fits
Databricks gives you several ways to bring the same data into a table, and the methods differ in how much work they leave to you. A managed connector handles authentication, change tracking and retries itself. A streaming job you write yourself lets you control every line, but you also have to maintain every line. Choosing an ingestion method mostly means deciding how much of that work your team should own.
Start managed and drop down only when you must. The ingestion stack has three layers. Each one builds on the layer below it and takes on more work for you. Flexibility is not a reason to start at the bottom. You move down a layer when the one above doesn't support your source or blocks a requirement you actually have.
| Layer | What it handles for you | When it wins |
|---|---|---|
| Structured Streaming | End-to-end fault tolerance with exactly-once processing, using Spark APIs you write yourself | You need full control of parsing and transformation code |
| Lakeflow pipelines | Declarative pipelines; the framework manages orchestration, monitoring, data quality and errors | You need custom logic but want orchestration and monitoring provided |
| Managed connectors | Everything Lakeflow pipelines do, plus source-specific authentication, CDC, retries and automated schema evolution | A connector exists for your source and you don't need custom ingestion logic |
Managed connectors take on the source-specific work. They build on Lakeflow pipelines and add the parts that usually turn into maintenance work: authentication against the source's API, change data capture, edge cases, long-term API maintenance, automated retries and automated schema evolution. Lakeflow Connect has managed connectors for SaaS applications such as Salesforce, HubSpot, Jira, Workday and Google Analytics, and database connectors for MySQL, PostgreSQL and SQL Server that use change data capture. Each connector reads changes in the way its source supports. The SQL Server connector can use change tracking or CDC. The Salesforce connector picks a cursor column from a fixed list of options. Either way, after the first full load, each run ingests only the data that changed since the previous run.
Governance comes built in. The pipelines that managed connectors create are governed by Unity Catalog and run on serverless compute. Credentials are stored in a Unity Catalog connection, which is a securable object, so they never appear in pipeline code. You can schedule the pipeline, and Lakeflow Connect creates a Lakeflow Job for each schedule you add.
A worked case. A team needs Salesforce opportunities and accounts in Unity Catalog tables, with very little transformation and no custom authentication or CDC code to maintain. Every requirement points to the Salesforce managed connector. Here is why each alternative loses:
- A Structured Streaming or Lakeflow pipeline built on a standard connector gives the team transformation control they don't need, and it leaves authentication and change tracking for them to write.
- Auto Loader reading a Salesforce export bucket adds an export step to run, and it infers schema from files instead of following the source.
- A notebook calling the Salesforce API on a schedule is the custom layer, so the team keeps all the code the connector would have handled.
Checkpoint 1 of 7· Match them up
Match each ingestion requirement to the layer it points to.
Tap a term, then the definition that fits it.
Each layer builds on the one below it and takes on more of the work. Managed connectors add source-specific authentication and CDC on top of Lakeflow pipelines. Lakeflow pipelines add managed orchestration and monitoring on top of Structured Streaming, which leaves the code entirely to you.
“You can define the transformations to perform on your data, and Lakeflow pipelines manage orchestration, monitoring, data quality, errors, and more.”Source: docs.databricks.com
Checkpoint 2 of 7· Exam question
A data engineering team must load Salesforce opportunity and account records into Unity Catalog-governed tables, keep transformation logic minimal, and avoid maintaining custom authentication or change-data-capture code. Which ingestion approach best fits these requirements?
Correct answer: A — Use a Lakeflow Connect managed connector for Salesforce, which handles authentication, change data capture, and schema evolution automatically under Unity Catalog governance.
- A. A managed connector for Salesforce automates authentication, change data capture, and schema evolution while producing pipelines governed by Unity Catalog, matching the requirement for minimal engineering effort.
- B. A standard connector still requires the team to build and maintain streaming and transformation logic themselves, which is more effort than needed when a fully managed option already exists for Salesforce.
- C. Auto Loader is built to incrementally ingest files landing in cloud object storage, not to pull records from a SaaS application's change feed, so it does not fit this source type.
- D. A custom JDBC or REST notebook forces the team to build and maintain authentication, pagination, and change-tracking logic that a managed connector already provides out of the box.
2.Standard connectors when you need custom logic
Standard connectors are the SQL and Spark API sources you configure yourself. They include Auto Loader for cloud object storage, the Kafka, Kinesis, Pub/Sub and Pulsar streaming sources, and SFTP ingestion. They give up some automation in exchange for broader source support and more control. The same source can often run at more than one level of customization, so the decision for these sources is about the level, not the product.
| Source | More customization | Some customization | More automation |
|---|---|---|---|
| Cloud object storage | Auto Loader with Structured Streaming | Auto Loader with Lakeflow pipelines | Auto Loader with Databricks SQL |
| Apache Kafka | Structured Streaming with Kafka source | Lakeflow pipelines with Kafka source | Databricks SQL with Kafka source |
| Amazon Kinesis | Structured Streaming with Kinesis source | Lakeflow pipelines with Kinesis source | Databricks SQL with Kinesis source |
| SFTP servers | Ingest files from SFTP servers | N/A | N/A |
Full control in your own code points to the left column. Suppose JSON files land continuously in a bucket and the team wants to write its own parsing and transformation inside its own streaming job. The answer is Auto Loader's cloudFiles source in a custom Structured Streaming job, which Databricks recommends whenever Structured Streaming ingests from cloud object storage. A pipeline wrapper would give up some of the low-level control the team asked for. A managed file connector doesn't fit either, because those target enterprise file services such as Google Drive and SharePoint, not a raw bucket.
Custom logic inside a governed, orchestrated pipeline points to the middle column. Take a team reading an existing Kafka cluster that needs filtering and enrichment while ingestion stays part of a governed Lakeflow pipeline. Lakeflow pipelines with the Kafka source gives them both: they write the transformation, and the framework manages orchestration, monitoring, data quality and errors. A fully managed option would automate more but leave little room for their filters. Exporting topic files and loading them with COPY INTO or Auto Loader turns a stream into batch file drops and loses the continuous ingestion the scenario needs.
Whether the logic has to live in the team's own streaming code with full low-level control (Structured Streaming), or has to run inside an orchestrated, monitored and governed pipeline (Lakeflow pipelines). Both allow custom transformations. Only the pipeline provides orchestration and monitoring for you.
Checkpoint 3 of 7· Check yourself
A team reads clickstream events from an existing Amazon Kinesis stream. They must drop bot traffic and add region codes as the data arrives, and ingestion has to stay continuous inside a pipeline whose orchestration, monitoring and data quality the framework manages. Which option fits best?
Custom logic plus framework-managed orchestration and monitoring points to the middle column: Lakeflow pipelines with the Kinesis source. Structured Streaming leaves orchestration and monitoring to the team. File drops lose continuous ingestion. The most automated column gives up the control that the custom filtering needs.
“You can define the transformations to perform on your data, and Lakeflow pipelines manage orchestration, monitoring, data quality, errors, and more.”Source: docs.databricks.com
Checkpoint 4 of 7· Exam question
A team streams events from an existing Apache Kafka cluster and needs custom filtering and enrichment logic applied while the ingestion remains part of an orchestrated, governed Lakeflow pipeline. Which option is the best fit?
Correct answer: A — Configure a Lakeflow Connect standard connector for the Kafka source, which supports streaming ingestion with custom filtering logic inside a governed Lakeflow pipeline.
- A. A standard connector is designed for sources like message buses where teams need customization, letting the team add filtering and enrichment logic while still running inside an orchestrated Lakeflow pipeline.
- B. A fully managed connector automates ingestion end to end but is built for minimal customization, which conflicts with the requirement for custom filtering and enrichment logic.
- C. A one-time COPY INTO load only captures a static snapshot of exported files and does not provide the continuous, governed streaming pipeline the scenario calls for.
- D. Treating manual Kafka exports as files for Auto Loader abandons the live streaming connection to the cluster and turns a continuous event source into an ad hoc batch process.
3.Auto Loader or COPY INTO for files in cloud storage
For files already in cloud object storage, there are two standard tools to choose from. Auto Loader is a Structured Streaming source that processes new files as they arrive. COPY INTO is a SQL command that skips files it has already loaded, so it can be run repeatedly. Four requirements decide between them: file volume, schema drift, data types and ingestion frequency.
Volume is the first test. COPY INTO handles thousands of files over time well. Once you expect millions of files or more, use Auto Loader. It needs fewer total operations to discover files and can split processing into multiple batches, so it costs less at scale. Auto Loader can ingest millions of files per hour in near real time and can backfill billions.
Schema drift is the second test. If the schema will change often, Auto Loader is the better choice. It detects schema drift, notifies you when the schema changes, and rescues data that would otherwise be dropped. Schema inference and evolution covers how to configure this. COPY INTO is a better fit for loads where the schema stays stable.
Data types and frequency are the third and fourth. Auto Loader reads JSON, CSV, XML, PARQUET, AVRO, ORC, TEXT and BINARYFILE files, including pre-compressed ones, and a Beta feature ingests documents or images as FILE references as they arrive. COPY INTO names its format in a FILEFORMAT clause, and the Databricks tutorials load CSV and JSON files with it into Delta tables. For frequency, ingestion pipelines run either triggered (on a schedule or manually) or continuous (processing new data as it arrives). COPY INTO runs only when something runs it, whether a SQL editor query, a notebook or a Lakeflow Job, so it suits triggered batch loads. Continuous arrival suits a streaming source like Auto Loader.
A streaming table is the SQL route to Auto Loader. Defined with CREATE STREAMING TABLE, it lets SQL users ingest files incrementally from cloud object storage with Auto Loader doing the file discovery, which is the "Auto Loader with Databricks SQL" option in the standard-connector table above. Databricks recommends it over COPY INTO for SQL users because it gives them a more scalable and robust file ingestion experience. COPY INTO is therefore not the only SQL choice: stay with it for smaller, simpler loads of thousands of files, and move SQL users to a streaming table as volume grows. The tutorials also note that Auto Loader's million-file scale is not supported by COPY INTO in Databricks SQL.
| Requirement | Points to COPY INTO | Points to Auto Loader |
|---|---|---|
| File volume | Thousands of files over time | Millions of files or more over time |
| Schema | Stable schema | Schema that evolves frequently |
| Interface | SQL users, idempotent incremental loads into Delta tables | Structured Streaming source cloudFiles, in Python, Scala or Lakeflow pipelines |
| Discovery cost at scale | More operations to discover files | Fewer total operations; processing split into multiple batches |
Checkpoint 5 of 7· Check yourself
Vendor feeds drop millions of JSON files a day into an S3 bucket, and vendors often add new fields without warning. The data engineer must not lose values from those new fields. Which ingestion tool fits, and why?
Two requirements here point to Auto Loader: millions of files, and a schema that changes often. Auto Loader detects schema drift and rescues data that would otherwise be dropped. COPY INTO suits thousands of files with a stable schema. Auto Loader reads JSON natively, so no conversion step is needed.
“Auto Loader can detect schema drifts, notify you when schema changes happen, and rescue data that would have been otherwise ignored or lost.”Source: docs.databricks.com
Checkpoint 6 of 7· Exam question
An engineering team ingests semi-structured JSON files that land continuously in a cloud storage bucket. They need full control over custom parsing and transformation logic written directly in their own Structured Streaming code, beyond what any packaged connector exposes. Which ingestion method should they use?
Correct answer: A — Read the files directly with Auto Loader's cloudFiles source inside a custom Structured Streaming job, giving full control over transformation logic.
- A. The
cloudFilessource gives direct, code-level access to incremental file ingestion inside a custom Structured Streaming job, which is exactly the level of control this scenario requires. - B. A standard connector packages ingestion inside a declarative Lakeflow pipeline template, which reduces the amount of raw, low-level custom code control the team is asking for.
- C. Managed connectors for enterprise file sources such as SharePoint or Google Drive target a different category of source than a generic cloud object storage bucket receiving JSON files.
- D. A scheduled COPY INTO command reloads the full bucket contents on each run rather than incrementally tracking and processing only new files, which does not match the continuous ingestion need.
4.Partner, community and custom options, and their governance
The bottom layer is for sources nothing above supports. When no managed connector exists and a standard connector doesn't fit, you have three choices:
- Community connectors are open source and maintained by the community, with no Databricks SLA behind them.
- Custom connectors are ones you build, test, deploy and run in your own workspace for a source that has no managed connector.
- Ingestion partners, which you can connect through Partner Connect.
Applications can also write records directly into streaming tables through the Zerobus Ingest API. Notebook code that calls JDBC/ODBC or REST endpoints is the most hand-built option of all.
Partner ingestion changes who owns the tables. Partner Connect sets up the Databricks resources a partner needs, such as a SQL warehouse, a service principal and a personal access token, and it requires the Premium plan or above. Data Ingestion partners can create databases and tables in your workspace. The partner's service principal owns those objects, and by default only that service principal and workspace admins can access them. Analysts get nothing until someone runs GRANT, and SHOW GRANTS shows the current access. For cloud partners such as Fivetran, Partner Connect creates the token and shares it with the partner, and you can't see its value. If the token expires, a workspace admin has to create a replacement for the service principal.
| Option | Credentials | Who maintains it |
|---|---|---|
| Managed connector | Unity Catalog connection, a securable object | Databricks, including long-term API maintenance |
| Community connector | Defined by the connector | The community; not backed by Databricks SLAs |
| Custom connector | Defined by the connector you build | Your team, in your own workspace |
| Partner Connect ingestion partner | Personal access token tied to a service principal | The partner; tables owned by its service principal |
Checkpoint 7 of 7· Match them up
A platform team is comparing ingestion options for governance and upkeep. Pair each option with how its credentials, ownership or maintenance work.
Tap a term, then the definition that fits it.
Only the managed connector keeps credentials in a Unity Catalog connection and has Databricks maintaining it. Community connectors have no Databricks SLA, and custom connectors are your team's job. A Partner Connect ingestion partner's service principal owns the tables it creates, so by default only that principal and workspace admins can use them until someone runs GRANT.
“These databases and tables are owned by the partner solution's associated Databricks service principal in your workspace.”Source: docs.databricks.com
Sources
(9)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“source-specific authentication, CDC, edge case handling, long-term API maintenance, automated retries, automated schema evolution, and so on”
↩︎ Start at the most managed layer that fits“They're open-source, built and maintained by the community, and not backed by Databricks SLAs.”
↩︎ Partner, community and custom options, and their governance“Custom connectors let you build your own connector for a source that has no managed connector.”
↩︎ Partner, community and custom options, and their governance“Write records directly to streaming tables from your application using the Zerobus Ingest API.”
↩︎ Partner, community and custom options, and their governance“Databricks recommends starting with the most managed layer.”
↩︎ Exam trap 1“If it doesn't satisfy your requirements (for example, if it doesn't support your data source), drop down to the next layer.”
↩︎ Prediction - 2.
“Managed connectors produce ingestion pipelines that are governed by Unity Catalog and powered by serverless compute and Lakeflow pipelines”
↩︎ Start at the most managed layer that fits“the Salesforce connector selects a cursor column from a set list of options”
↩︎ Start at the most managed layer that fits“A Unity Catalog securable object that stores the source endpoint and authentication credentials for your streaming source.”
↩︎ Start at the most managed layer that fits“Ingest unstructured and structured files from enterprise file storage services including Google Drive and SharePoint.”
↩︎ Standard connectors when you need custom logic - 3.
“Each connector handles source-specific authentication, incremental reads, schema evolution, and automated retries.”
↩︎ Start at the most managed layer that fits - 4.https://docs.databricks.com/aws/en/ingestionOfficial docs
“which offer higher levels of ingestion pipeline customization compared to the managed connectors”
↩︎ Standard connectors when you need custom logic“Lakeflow pipelines manage orchestration, monitoring, data quality, errors, and more.”
↩︎ Standard connectors when you need custom logic“it's the recommended alternative to COPY INTO”
↩︎ Auto Loader or COPY INTO for files in cloud storage“Continuous: Processes new data as it arrives in the source.”
↩︎ Auto Loader or COPY INTO for files in cloud storage“Triggered: Processes new data on a schedule or when manually triggered.”
↩︎ Auto Loader or COPY INTO for files in cloud storage“It offers SQL users a scalable ingestion experience”
↩︎ Auto Loader or COPY INTO for files in cloud storage“Databricks recommends starting with the most managed layer.”
↩︎ Key concept“which offer higher levels of ingestion pipeline customization compared to the managed connectors”
↩︎ Exam trap 2“You can define the transformations to perform on your data, and Lakeflow pipelines manage orchestration, monitoring, data quality, errors, and more.”
↩︎ Checkpoint“You can define the transformations to perform on your data, and Lakeflow pipelines manage orchestration, monitoring, data quality, errors, and more.”
↩︎ Checkpoint - 5.
“Databricks also recommends Auto Loader whenever you use Apache Spark Structured Streaming to ingest data from cloud object storage.”
↩︎ Standard connectors when you need custom logic“Auto Loader can detect schema drifts, notify you when schema changes happen, and rescue data that would have been otherwise ignored or lost.”
↩︎ Auto Loader or COPY INTO for files in cloud storage“Auto Loader can ingest JSON, CSV, XML, PARQUET, AVRO, ORC, TEXT, and BINARYFILE file formats.”
↩︎ Auto Loader or COPY INTO for files in cloud storage“Auto Loader scales to support near real-time ingestion of millions of files per hour.”
↩︎ Auto Loader or COPY INTO for files in cloud storage - 6.
“If you are expecting files in the order of millions or more over time, use Auto Loader.”
↩︎ Auto Loader or COPY INTO for files in cloud storage“Auto Loader requires fewer total operations to discover files compared to COPY INTO and can split the processing into multiple batches”
↩︎ Auto Loader or COPY INTO for files in cloud storage“If your data schema is going to evolve frequently, Auto Loader provides better primitive data types”
↩︎ Auto Loader or COPY INTO for files in cloud storage“You can use COPY INTO in Databricks SQL, notebooks, and Lakeflow Jobs.”
↩︎ Auto Loader or COPY INTO for files in cloud storage“Auto Loader enables SQL users to leverage streaming tables.”
↩︎ Auto Loader or COPY INTO for files in cloud storage“With COPY INTO, SQL users can idempotently and incrementally ingest data from cloud object storage into Delta tables.”
↩︎ Exam trap 3“If you're going to ingest files in the order of thousands over time, you can use COPY INTO.”
↩︎ Prediction - 7.https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/copy-into/tutorial-dbsqlOfficial docs
“Databricks recommends that you use Auto Loader for loading millions of files, which is not supported in Databricks SQL.”
↩︎ Auto Loader or COPY INTO for files in cloud storage - 9.https://docs.databricks.com/aws/en/partner-connectOfficial docs
“These databases and tables are owned by the partner solution's associated Databricks service principal in your workspace.”
↩︎ Partner, community and custom options, and their governance“Your Databricks account must be on the Premium plan or above.”
↩︎ Partner, community and custom options, and their governance“By default, these databases and tables can be accessed only by the service principal and by workspace admins.”
↩︎ Exam trap 4