CertSafari
    Databricks Certified Data Engineer Associate· Lessons

    Domain 2 · Lesson 8/33

    Choosing an ingestion method: managed connectors, Auto Loader, COPY INTO and partners

    Prioritize between Auto Loader, Lakeflow Connect (standard and managed connectors), partner connectors, and other ingestion methods based on technical requirements such as data volume, ingestion frequency, data types, and governance needs with Unity Catalog

    16 min read
    3% of exam
    9 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    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.

    The three ingestion layers, from most customizable to most managed
    LayerWhat it handles for youWhen it wins
    Structured StreamingEnd-to-end fault tolerance with exactly-once processing, using Spark APIs you write yourselfYou need full control of parsing and transformation code
    Lakeflow pipelinesDeclarative pipelines; the framework manages orchestration, monitoring, data quality and errorsYou need custom logic but want orchestration and monitoring provided
    Managed connectorsEverything Lakeflow pipelines do, plus source-specific authentication, CDC, retries and automated schema evolutionA 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.

    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?

    Sources123

    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.

    Standard ingestion options by source and level of customization
    SourceMore customizationSome customizationMore automation
    Cloud object storageAuto Loader with Structured StreamingAuto Loader with Lakeflow pipelinesAuto Loader with Databricks SQL
    Apache KafkaStructured Streaming with Kafka sourceLakeflow pipelines with Kafka sourceDatabricks SQL with Kafka source
    Amazon KinesisStructured Streaming with Kinesis sourceLakeflow pipelines with Kinesis sourceDatabricks SQL with Kinesis source
    SFTP serversIngest files from SFTP serversN/AN/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.

    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?

    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?

    Sources452

    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.

    Auto Loader versus COPY INTO by requirement
    RequirementPoints to COPY INTOPoints to Auto Loader
    File volumeThousands of files over timeMillions of files or more over time
    SchemaStable schemaSchema that evolves frequently
    InterfaceSQL users, idempotent incremental loads into Delta tablesStructured Streaming source cloudFiles, in Python, Scala or Lakeflow pipelines
    Discovery cost at scaleMore operations to discover filesFewer 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?

    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?

    Sources65478

    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.

    How governance and maintenance differ across ingestion options
    OptionCredentialsWho maintains it
    Managed connectorUnity Catalog connection, a securable objectDatabricks, including long-term API maintenance
    Community connectorDefined by the connectorThe community; not backed by Databricks SLAs
    Custom connectorDefined by the connector you buildYour team, in your own workspace
    Partner Connect ingestion partnerPersonal access token tied to a service principalThe 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.

    Sources19

    Sources

    (9)

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

    1. 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. 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. 3.
      “Each connector handles source-specific authentication, incremental reads, schema evolution, and automated retries.”
      ↩︎ Start at the most managed layer that fits
    4. 4.
      “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. 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. 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. 7.
      “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
    8. 9.
      “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

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