CertSafari
    Databricks Certified Data Analyst Associate· Lessons

    Domain 3 · Lesson 7/39

    Bringing data into Databricks: S3, Auto Loader, Delta Sharing, Marketplace and connectors

    Explain the approaches for bringing data into Databricks, covering ingestion from S3, data sharing with external systems via Delta Sharing, API-driven data intake, Auto Loader, Lakeflow Connect managed connectors, and Marketplace.

    20 min read
    2.5% of exam
    9 sources
    Published 2 Nov 2026
    Docs as of 24 Oct 2026

    What you will be able to do

    • Decide whether a source should be copied into Databricks by ingestion or read in place through a share
    • Explain how a storage credential, an external location and an external volume govern ingestion from an S3 path
    • Choose between Auto Loader, COPY INTO and a UI file upload based on file volume, frequency and schema drift
    • Describe shares, providers and recipients, and pick Databricks-to-Databricks or open sharing for a given recipient
    • Recognise when a Marketplace listing, a Lakeflow Connect managed connector or API-driven intake is the right entry point

    Key concept

    Copying versus sharing — Every way of bringing data into Databricks either copies it into tables you own (ingestion with Auto Loader, COPY INTO, connectors or APIs) or gives you live, read-only access to data someone else keeps (Delta Sharing and Marketplace). Copying lets you transform the data and query it at scale, but the copy can go stale. Sharing never goes stale, but you can't change what you receive.

    1.Two ways in: copy the data or read it where it lives

    Choosing how to bring data in starts with one question: does the data need to be copied? Databricks recommends ingestion for most use cases, because a local copy handles high data volumes, low-latency querying and third-party API limits. The cost of copying is duplication. A copied table is only as fresh as its last load.

    Some data shouldn't be copied at all. A partner who publishes a dataset every hour, or a vendor selling a reference table, already keeps the authoritative version. For these sources, Databricks offers ways to read the data where it is. Delta Sharing (the docs now call it OpenSharing) exchanges live tables across organisations, platforms and clouds. Lakehouse Federation queries external databases without moving their data. That leaves five practical routes into the platform.

    Approaches for bringing data into Databricks and what each one is built for
    ApproachData is copied?Typical source
    Auto Loader / COPY INTOYesFiles landing in S3 or a Unity Catalog volume
    Lakeflow Connect managed connectorYesDatabases such as SQL Server, SaaS apps such as Salesforce
    API-driven intake (SDKs, custom connectors, Zerobus Ingest API)YesAn application or service with no file drop and no managed connector
    Delta Sharing (OpenSharing)No, live read-only accessAnother organisation's Unity Catalog tables
    Databricks MarketplaceNo, delivered through OpenSharingThird-party datasets published as listings

    Checkpoint 1 of 10· Match them up

    Match each way of bringing data into Databricks to the situation it is built for.

    Tap a term, then the definition that fits it.

    Sources1

    2.Governed access to S3: storage credentials, external locations and volumes

    Unity Catalog decides who can read an S3 path before any ingestion tool touches it. Two securable objects work together here. A storage credential holds the cloud credentials, which on AWS is an IAM role. An external location pairs an S3 path with a storage credential. Admins grant access on the external location, never on the bucket itself, so revoking a grant in Unity Catalog cuts off access to the files under that path. The order matters: the storage credential must exist before you can create an external location that uses it.

    An analyst who wants to ingest files needs a read privilege on whichever object covers the source path. That is either READ FILES on the external location or READ VOLUME on an external volume. They also need USE SCHEMA and CREATE TABLE on the schema the data will land in. The path looks different in each case. Through an external location you reference s3://<bucket>/<folder>/ directly. Through a volume you reference /Volumes/<catalog>/<schema>/<volume>/<path>.

    Of the two, the volume is the recommended route. An external volume over an S3 prefix gives the folder a governed, three-level name, and both Auto Loader and COPY INTO can read from that path. How volumes are named and organised is covered in Unity Catalog volumes. For ingestion, the point is that a volume path is a governed source just like an s3:// URI.

    Checkpoint 2 of 10· Check yourself

    An analyst already has READ VOLUME on an external volume over s3://sales-drop/orders/. They want Auto Loader to load those files into a new table in the schema finance.raw. What else do they need?

    Sources234

    3.Auto Loader: incremental ingestion of new files

    Auto Loader is the tool for files that keep arriving. It is a Structured Streaming source called cloudFiles. You point it at a directory and it processes each new file as it appears, with the option of also loading the files already there. It reads from s3:// paths and /Volumes/ paths. It handles JSON, CSV, XML, Parquet, Avro, ORC, text and binary files, including pre-compressed ones.

    Auto Loader in a Lakeflow pipeline: the cloudFiles source reading JSON files from a Unity Catalog volumepython
    @dp.table
    def booking_updates():
      return (
        spark.readStream.format("cloudFiles")
          .option("cloudFiles.format", "json")
          .option("multiLine", "true")
          .load("/Volumes/my_catalog/my_schema/my_volume/wanderbricks/booking_updates")
      )

    Auto Loader never re-scans what it has already loaded, because it keeps state. As it discovers files, it writes their metadata to a RocksDB store in the pipeline's checkpoint location. After a failure it resumes from that record, so you don't have to manage any state to get exactly-once writes into Delta Lake. Inside a Lakeflow pipeline you don't even supply the schema or checkpoint location, because the pipeline manages both for you.

    Schema drift is the other reason to choose Auto Loader. It can detect a schema change, notify you about it, and rescue values that would otherwise have been ignored or lost. Without that, a new column in Tuesday's CSV export can silently vanish. Auto Loader finds new files in one of two ways. Directory listing mode is the default. File notification mode, using file events, is the one Databricks recommends for most workloads, and it is cheaper because it avoids listing directories at all.

    Checkpoint 3 of 10· Check yourself

    In a stream of change files, the file that deletes an order sometimes lands in the volume before the file that inserts it. Which statement about Auto Loader holds?

    Sources5

    4.COPY INTO and UI upload: when the lighter tool wins

    COPY INTO is the SQL alternative for loading files from cloud storage in batches. It loads files from a location into an existing Delta table and is idempotent: if you rerun it, files it has already loaded are skipped. It runs in Databricks SQL, notebooks and Lakeflow Jobs, so an analyst can schedule it without writing any streaming code.

    That idempotency has a sharp edge. COPY INTO keeps skipping a file it has already loaded even if the file has been modified since. Overwriting orders_2024_06.csv in place won't push the corrected rows into the table on the next run. The way to reload specific files is to list them explicitly, and that targeted reload is the one job where COPY INTO is easier than Auto Loader. Reprocessing a chosen subset of files is awkward with Auto Loader. You can even run COPY INTO to reload a few files while an Auto Loader stream keeps running on the same source.

    Choosing between Auto Loader, COPY INTO and UI upload
    SituationBetter fitReason
    Files in the order of millions or more over timeAuto LoaderFewer operations to discover files, and it splits processing into batches
    Files in the order of thousands over timeCOPY INTOIdempotent SQL load, simple to schedule
    Schema evolves frequentlyAuto LoaderSchema inference, drift detection and rescued data
    Reload a subset of re-uploaded filesCOPY INTOEasier to target specific files than with an Auto Loader stream
    A single file on your laptopUI uploadNo storage path or pipeline needed

    Uploading through the workspace UI is the right choice when there is no stream at all. It works for files on your local network, files already uploaded to a volume, or a file downloaded from the internet. One spreadsheet from finance, loaded once, doesn't justify a pipeline. A folder that gets twenty new files every day does, because nobody should import those by hand. The click-through steps are in Create a table by uploading a file.

    Checkpoint 4 of 10· Match them up

    A team has three loading jobs. Match each tool to the job it fits best.

    Tap a term, then the definition that fits it.

    Checkpoint 5 of 10· Exam question

    A retail analytics team receives a continuous stream of CSV order files landing in an S3 bucket at unpredictable intervals throughout the day. They want new files picked up automatically as they arrive, without re-scanning files that were already loaded, and they want schema drift in the source files to be detected rather than silently ignored. Which approach best satisfies these requirements?

    Sources671

    5.Delta Sharing: live data across organisations without copying

    Delta Sharing, now named OpenSharing in the Databricks documentation, is an open protocol for sharing data and AI assets with users outside your organisation, whether or not they use Databricks. The provider keeps the data and the recipient reads it live. Nobody runs an export job, and no copy of the files is placed on the recipient's infrastructure.

    Three objects make up every share:

    • A share is a read-only collection of tables and table partitions. On Databricks it can also hold views, including dynamic views that filter rows and columns, as well as volumes, models and notebook files. It is a securable object in Unity Catalog. Delete it and every recipient loses access.
    • A provider is the organisation sharing the data. To use the built-in sharing server, it needs at least one workspace enabled for Unity Catalog.
    • A recipient represents the receiving organisation and links it to a credential or a sharing identifier. A recipient can hold several shares, and deleting the recipient revokes all of them.

    Which protocol you use depends on the recipient. Databricks-to-Open sharing serves anyone on any platform, including Apache Spark, pandas and Power BI. The provider authenticates the recipient in one of two ways: it issues a long-lived bearer token, or it uses OIDC federation, which exchanges the recipient's identity-provider JWTs for short-lived Databricks OAuth tokens. Databricks-to-Databricks sharing serves recipients whose workspace is attached to a different Unity Catalog metastore, in any cloud. No tokens are involved, and auditing is built in. It is also the only protocol that can share notebooks, volumes and models.

    Delta Sharing isn't always the answer, even inside your own company. Workspaces attached to the same metastore don't need it, because Unity Catalog grants already control access across them. Sharing is also not a way to expose a raw S3 bucket. A share contains Unity Catalog objects, not a path to a folder of files.

    Checkpoint 6 of 10· Match them up

    Your company needs to give three different consumers read access to the same Unity Catalog tables. Pair each access mechanism with the consumer it suits.

    Tap a term, then the definition that fits it.

    Checkpoint 7 of 10· Exam question

    A data analyst needs to give a partner organization ongoing, read-only access to a set of Unity Catalog tables so the partner can query the latest data directly from their own Power BI environment, without Databricks ever copying the underlying data files to the partner's infrastructure. The partner does not use Databricks at all. Which approach meets this requirement?

    Sources8

    6.Marketplace: third-party data that arrives as a shared catalog

    Databricks Marketplace is the way to bring in someone else's data without writing any ingestion code. Providers publish offerings, and you browse them in the workspace. The full catalogue of listing types is covered in Databricks Marketplace listings. For ingestion, what matters is the delivery mechanism. Marketplace runs on OpenSharing, so a dataset you obtain arrives as a share, not as files you have to load.

    Datasets typically arrive as catalogs of tabular data. In a workspace enabled for Unity Catalog, the installed listing appears next to your own catalogs as a read-only shared catalog that you can join to internal tables straight away. Some products are available instantly once you accept the terms. Others wait for the provider to approve the request. Either way, you request access through the Marketplace in a Databricks workspace, even though the shared data can then be read from other tools.

    Compare the alternatives for a third-party demographic table. Pointing Auto Loader at the vendor's bucket means you need their storage access and end up owning a copy. Calling their REST API on a schedule means you build and maintain a pipeline. Lakehouse Federation queries an external database live, but it doesn't help you discover vetted providers. The Marketplace listing needs only a click to request and an agreement to terms.

    Checkpoint 8 of 10· Check yourself

    A marketing team has found a third-party demographic dataset on Databricks Marketplace. They work in a Unity Catalog-enabled workspace and want to join it to their internal customers table. What stands between them and that join?

    Checkpoint 9 of 10· Exam question

    An analyst wants to bring a third-party demographic dataset into their workspace to enrich internal sales tables, and would prefer to browse a catalog of vetted external providers, request access from within the workspace UI, and have the resulting tables appear directly in Unity Catalog without writing any ingestion code. Which capability is designed for this?

    Sources9

    7.Lakeflow Connect connectors and API-driven intake

    When the source is an application or a database rather than a file drop, Lakeflow Connect's managed connectors do the ingestion. Database connectors read from MySQL, PostgreSQL, Oracle and SQL Server using change data capture. SaaS connectors cover applications such as Salesforce, HubSpot, Jira and Workday. Other connector families cover file services such as SharePoint and Google Drive, and message buses such as Kafka. Every connector lands data in tables governed by Unity Catalog and orchestrated by Lakeflow Jobs.

    Managed connectors are worth choosing because of what you no longer have to write. They are built on Lakeflow pipelines and add source-specific authentication, CDC, edge-case handling, long-term API maintenance, automated retries and automated schema evolution. You can set one up from the Databricks UI, or through bundles, APIs, SDKs or the CLI.

    Databricks recommends starting with the most managed layer and dropping down only when it doesn't fit, for example when your source isn't supported. The layers below a managed connector are:

    1. Community connectors: open-source connectors for sources without managed support, not covered by Databricks SLAs.
    2. Custom connectors: a connector you build, test and run in your own workspace.
    3. Your own code: Lakeflow pipelines or Structured Streaming written in Python or Java, optionally using open-source libraries such as dlt (data load tool), Airbyte or Debezium.

    API-driven intake covers the remaining case, where the data comes from your own application. The Zerobus Ingest API lets an application write records directly into streaming tables, without staging files first. For a SaaS source, check whether a managed connector exists before you script REST calls. A hand-written API poller is the bottom layer, and you own every retry, schema change and API version bump yourself.

    Checkpoint 10 of 10· Check yourself

    Jira issues need to land in a Unity Catalog table every hour. An engineer offers to write a script that polls the Jira REST API. Which approach does Databricks recommend instead?

    Sources1

    Sources

    (9)

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

    1. 1.
      “Ingestion copies data from your source systems to Databricks, which results in duplicate data that might become stale over time.”
      ↩︎ Two ways in: copy the data or read it where it lives
      “Allows you to query external data sources without moving your data.”
      ↩︎ Two ways in: copy the data or read it where it lives
      “You can ingest files that reside on your local network, files uploaded to a volume, or files downloaded from an internet location.”
      ↩︎ COPY INTO and UI upload: when the lighter tool wins
      “Ingest from relational databases such as MySQL, PostgreSQL, Oracle, and SQL Server using change data capture.”
      ↩︎ Lakeflow Connect connectors and API-driven intake
      “They extend Lakeflow pipelines functionality to also include source-specific authentication, CDC, edge case handling, long-term API maintenance, automated retries, automated schema evolution”
      ↩︎ Lakeflow Connect connectors and API-driven intake
      “Databricks recommends starting with the most managed layer.”
      ↩︎ Lakeflow Connect connectors and API-driven intake
      “Custom connectors let you build your own connector for a source that has no managed connector.”
      ↩︎ Lakeflow Connect connectors and API-driven intake
      “Write records directly to streaming tables from your application using the Zerobus Ingest API.”
      ↩︎ Lakeflow Connect connectors and API-driven intake
      “you can create your own ingestion connectors using any programming language supported by Databricks, like Python or Java.”
      ↩︎ Lakeflow Connect connectors and API-driven intake
      “Ingestion copies data from your source systems to Databricks, which results in duplicate data that might become stale over time.”
      ↩︎ Key concept
      “Databricks offers fully-managed connectors for enterprise applications like Salesforce and databases like SQL Server.”
      ↩︎ Checkpoint
      “Databricks recommends starting with the most managed layer. If it doesn't satisfy your requirements”
      ↩︎ Checkpoint
    2. 2.
      “an external location, which defines a path to a cloud storage location and the credentials required to access that location”
      ↩︎ Governed access to S3: storage credentials, external locations and volumes
      “Those credentials are, in turn, defined in a Unity Catalog securable object called a storage credential.”
      ↩︎ Governed access to S3: storage credentials, external locations and volumes
    3. 4.
      “The READ VOLUME permission on the Unity Catalog external volume or the READ FILES permission on the Unity Catalog external location”
      ↩︎ Governed access to S3: storage credentials, external locations and volumes
      “a Unity Catalog volume (recommended) or a Unity Catalog external location”
      ↩︎ Governed access to S3: storage credentials, external locations and volumes
      “The USE SCHEMA and CREATE TABLE privileges on the schema you want to load data into.”
      ↩︎ Checkpoint
    4. 5.
      “It provides a Structured Streaming source called cloudFiles.”
      ↩︎ Auto Loader: incremental ingestion of new files
      “This key-value store ensures that data is processed exactly once.”
      ↩︎ Auto Loader: incremental ingestion of new files
      “You do not need to provide a schema or checkpoint location because Lakeflow pipelines automatically manage these settings for your pipelines.”
      ↩︎ Auto Loader: incremental ingestion of new files
      “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: incremental ingestion of new files
      “By default, Auto Loader uses directory listing mode. However, Databricks recommends file notification mode using file events for most workloads.”
      ↩︎ Auto Loader: incremental ingestion of new files
      “Auto Loader does not guarantee the order in which files are discovered or processed”
      ↩︎ Auto Loader: incremental ingestion of new files
      “Auto Loader does not guarantee the order in which files are discovered or processed, regardless of whether you use directory listing or file notification mode.”
      ↩︎ Checkpoint
    5. 6.
      “With COPY INTO, SQL users can idempotently and incrementally ingest data from cloud object storage into Delta tables.”
      ↩︎ COPY INTO and UI upload: when the lighter tool wins
      “If you are expecting files in the order of millions or more over time, use Auto Loader.”
      ↩︎ COPY INTO and UI upload: when the lighter tool wins
      “you can use COPY INTO to reload the subset of files while an Auto Loader stream is running simultaneously.”
      ↩︎ COPY INTO and UI upload: when the lighter tool wins
      “If you're going to ingest files in the order of thousands over time, you can use COPY INTO.”
      ↩︎ Checkpoint
    6. 7.
      “Files in the source location that have already been loaded are skipped.”
      ↩︎ COPY INTO and UI upload: when the lighter tool wins
      “This is true even if the files have been modified since they were loaded.”
      ↩︎ Exam trap 1
    7. 8.
      “lets you share data and AI assets with users outside your organization, regardless of whether they use Databricks”
      ↩︎ Delta Sharing: live data across organisations without copying
      “a share is a read-only collection of tables and table partitions that a provider wants to share with one or more recipients”
      ↩︎ Delta Sharing: live data across organisations without copying
      “You generate a long-lived bearer token and share it securely with the recipient.”
      ↩︎ Delta Sharing: live data across organisations without copying
      “the share recipient doesn't need a token to access the share, and the provider doesn't need to manage recipient tokens”
      ↩︎ Delta Sharing: live data across organisations without copying
      “If you remove a share from your Unity Catalog metastore, all recipients of that share lose the ability to access it.”
      ↩︎ Delta Sharing: live data across organisations without copying
      “Open sharing lets you share data with any user, whether or not they have access to Databricks.”
      ↩︎ Exam trap 2
      “there is no need to use OpenSharing to share data between workspaces attached to the same Unity Catalog metastore”
      ↩︎ Exam trap 3
      “Note that there is no need to use OpenSharing to share data between workspaces attached to the same Unity Catalog metastore”
      ↩︎ Checkpoint
    8. 9.
      “Marketplace uses OpenSharing for secure data exchange”
      ↩︎ Marketplace: third-party data that arrives as a shared catalog
      “Datasets are typically made available as catalogs of tabular data”
      ↩︎ Marketplace: third-party data that arrives as a shared catalog
      “To request access to data products in the Marketplace, you must use the Marketplace on a Databricks workspace.”
      ↩︎ Marketplace: third-party data that arrives as a shared catalog
      “some data products are available instantly, as soon as you request them and agree to the terms”
      ↩︎ Marketplace: third-party data that arrives as a shared catalog
      “Datasets are typically made available as catalogs of tabular data”
      ↩︎ Exam trap 4

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