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.
| Approach | Data is copied? | Typical source |
|---|---|---|
| Auto Loader / COPY INTO | Yes | Files landing in S3 or a Unity Catalog volume |
| Lakeflow Connect managed connector | Yes | Databases such as SQL Server, SaaS apps such as Salesforce |
| API-driven intake (SDKs, custom connectors, Zerobus Ingest API) | Yes | An application or service with no file drop and no managed connector |
| Delta Sharing (OpenSharing) | No, live read-only access | Another organisation's Unity Catalog tables |
| Databricks Marketplace | No, delivered through OpenSharing | Third-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.
The first three routes are ingestion: they copy data into tables you own, and each fits a different kind of source (files, databases and SaaS apps, or applications). Delta Sharing and Marketplace give live, read-only access to data that someone else keeps, so nothing is copied.
“Databricks offers fully-managed connectors for enterprise applications like Salesforce and databases like SQL Server.”Source: docs.databricks.com
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.
READ FILES on the external location that covers s3://sales-drop/orders/, or READ VOLUME if the path is exposed as an external volume. Table privileges say nothing about raw files in cloud storage.
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?
Reading the source (READ VOLUME or READ FILES) covers only the files. Creating a table also needs USE SCHEMA and CREATE TABLE on the target schema. Access is never granted on the bucket itself, and an analyst who is ingesting does not need to create external locations.
“The USE SCHEMA and CREATE TABLE privileges on the schema you want to load data into.”Source: docs.databricks.com
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.
@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?
Auto Loader doesn't guarantee the order in which it discovers or processes files, in directory listing mode or in file notification mode. A late delete has to be handled in the pipeline design: use soft deletes, and compare timestamps so an upsert doesn't overwrite a newer row with older data. The checkpoint records which files have been loaded. It does not put them in order.
“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.”Source: docs.databricks.com
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.
| Situation | Better fit | Reason |
|---|---|---|
| Files in the order of millions or more over time | Auto Loader | Fewer operations to discover files, and it splits processing into batches |
| Files in the order of thousands over time | COPY INTO | Idempotent SQL load, simple to schedule |
| Schema evolves frequently | Auto Loader | Schema inference, drift detection and rescued data |
| Reload a subset of re-uploaded files | COPY INTO | Easier to target specific files than with an Auto Loader stream |
| A single file on your laptop | UI upload | No 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.
Auto Loader handles file counts in the millions and schema drift. COPY INTO is a simple, idempotent SQL load for thousands of files and makes it easier to reload specific re-uploaded files. UI upload suits a one-off local file where no stream exists.
“If you're going to ingest files in the order of thousands over time, you can use COPY INTO.”Source: docs.databricks.com
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?
Correct answer: A — Configure Auto Loader with the cloudFiles format pointed at the S3 path, so it incrementally discovers new files and tracks schema drift using its checkpoint and schema location.
- A. This is correct because Auto Loader's
cloudFilessource performs incremental file discovery and maintains a checkpoint of processed files, and its schema inference tracks schema drift over time so new or changed columns are surfaced instead of dropped. - B. A nightly
COPY INTOjob only checks the bucket on a fixed schedule, so files arriving between runs sit unprocessed for hours, and relying on timestamps for dedup is far less robust than Auto Loader's built-in checkpointing. - C. Manually uploading each file through Catalog Explorer does not scale for an unpredictable, continuous stream of arrivals and defeats the goal of automatic pickup of new files.
- D. Delta Sharing is a protocol for exposing existing Unity Catalog tables and volumes to recipients, not a mechanism for discovering and loading raw files sitting in an S3 bucket.
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.
Databricks-to-Open sharing serves recipients on any platform, Power BI included, and authenticates them with a bearer token or OIDC federation. Databricks-to-Databricks sharing serves workspaces on a different metastore and is the only protocol that can share notebooks and volumes. Workspaces on the same metastore don't need a share, because ordinary Unity Catalog grants already control access across them.
“Note that there is no need to use OpenSharing to share data between workspaces attached to the same Unity Catalog metastore”Source: docs.databricks.com
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?
Correct answer: A — Create a Delta Share containing the tables and add the partner as a recipient using the open, cross-platform sharing protocol so their non-Databricks tools can connect directly.
- A. This is correct because Delta Sharing (the OpenSharing protocol) is built specifically to expose read-only collections of Unity Catalog objects to recipients on any platform, including non-Databricks clients like Power BI, without replicating the data into the recipient's own storage.
- B. A recurring Parquet export creates stale, duplicated copies of the data and requires the partner to manage separate storage and credentials, which is exactly the data-copying overhead Delta Sharing avoids.
- C. Auto Loader is an ingestion feature for discovering and loading files into Databricks, not a mechanism for publishing existing tables outward to an external, non-Databricks consumer.
- D. Provisioning individual workspace accounts for every partner user requires the partner to be a Databricks customer and manage logins in your workspace, which is unnecessary overhead compared to a direct Delta Sharing recipient relationship.
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?
Marketplace delivers data through OpenSharing, so an installed dataset arrives as a shared catalog of tables, not as files to load. Once access is granted, either straight away or after the provider approves, the team can query it and join it to internal tables without building an ingestion pipeline.
“Datasets are typically made available as catalogs of tabular data”Source: docs.databricks.com
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?
Correct answer: A — Databricks Marketplace, which lets the analyst discover and request curated listings from data providers and land the resulting tables in Unity Catalog through OpenSharing.
- A. This is correct because Databricks Marketplace is the discovery and request interface for datasets (and other assets) published by external providers, and accepted listings arrive as Unity Catalog objects via the underlying OpenSharing protocol with no ingestion code required.
- B. Even if the provider happened to expose files in a public bucket, this requires the analyst to know the bucket path and write an Auto Loader ingestion job, which is not the catalog-browsing, no-code experience described.
- C. Calling a REST API on a schedule requires building and maintaining custom pipeline code, which is the opposite of browsing a vetted catalog and requesting access with no ingestion code.
- D. Lakehouse Federation connects to a live external database system you already have credentials and network access to; it is not a discovery mechanism for browsing third-party providers you don't yet have a relationship with.
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:
- Community connectors: open-source connectors for sources without managed support, not covered by Databricks SLAs.
- Custom connectors: a connector you build, test and run in your own workspace.
- 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?
Jira is one of the SaaS sources that has a managed connector. Databricks recommends starting with the most managed layer, which takes care of authentication, CDC, retries and schema evolution. With a hand-written poller, you own every retry, schema change and API version bump yourself. Zerobus is for your own application to write records directly, and Delta Sharing shares Unity Catalog tables, not SaaS apps.
“Databricks recommends starting with the most managed layer. If it doesn't satisfy your requirements”Source: docs.databricks.com
Sources1
Sources
(9)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 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.
“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.https://docs.databricks.com/aws/en/connect/unity-catalog/cloud-storage/s3/s3-external-location-manualOfficial docs
“You must create the storage credential before creating the external location.”
↩︎ Governed access to S3: storage credentials, external locations and volumes - 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 - 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 - 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 - 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 - 8.https://docs.databricks.com/aws/en/opensharingOfficial docs
“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 - 9.https://docs.databricks.com/aws/en/marketplaceOfficial docs
“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