SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
Databricks DEA · Domain 2

Data Ingestion and Loading practice questions

Data Ingestion and Loading is worth 21% of the Databricks DEA exam — the 2nd-heaviest of the 7 domains. Getting data in: batch, streaming and incremental patterns, COPY INTO, Auto Loader, Lakeflow Connect connectors, JDBC/ODBC and REST clients, choosing between ingestion methods, and semi-structured data. 6 fully worked examples are further down this page, answers included.

Exam weight
21%
the 2nd-heaviest of the 7 domains
Questions
108
across 3 topics
Free, no account
5/day
a free account allows 30 a day
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 7 domains, in Learn mode.

Focused review

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Data Ingestion and Loading questions, fully explained

Questions from the Databricks DEA bank mapped to domain 2, with the answer key and the reasoning behind every option. None of them repeat the examples on the main Databricks DEA practice page.

Question 1Data Ingestion and Loading

An order management system runs on SQL Server. The analytics team needs inserts, updates and deletes from 40 tables reflected in Unity Catalog within minutes, and nightly full reloads are already taking too long. The DBA agrees to enable change tracking on the source. Which approach meets the requirements with the least custom code?

Choose one.

  • a
    A nightly notebook job that reads each tracked table over JDBC and overwrites the Delta copy

    A JDBC full reload is the slow nightly pattern the team is trying to escape, and it gives day-old data rather than minutes.

  • b
    A Lakehouse Federation foreign catalog that the dashboards query directly on SQL Server

    Federation queries the source in place and copies nothing, so it puts every analytic query on the OLTP database instead of replicating changes.

  • c
    A Lakeflow Connect SQL Server connector that reads change tracking through a gateway Correct

    Correct. The managed database connector uses the source's change tracking or CDC, through an ingestion gateway and staging, to apply inserts, updates and deletes incrementally to streaming tables in Unity Catalog.

  • d
    Auto Loader over hourly CSV extracts of changed rows written to cloud storage

    Exported files only capture what the extract query selects; deletes are lost and the extract job is custom code to maintain.

The concept

Database managed connectors replicate row changes (including deletes) from the source's change tracking or CDC log.

Why that’s the answer

Lakeflow Connect database connectors read the database's change tracking or CDC information through an ingestion gateway, stage the changes and apply them to destination streaming tables, so only changed rows move and deletes are propagated. A JDBC overwrite is the full reload that already takes too long. Federation does not copy data at all. CSV extracts lose deletes and add a custom export job.

How to reason it out
  1. Note the requirements: inserts, updates and deletes, freshness in minutes, no full reloads.
  2. Recognize that capturing deletes incrementally needs change tracking or CDC on the source.
  3. Pick the managed database connector, which consumes those changes through its gateway.
  4. Reject full reloads, in-place federation and file extracts.

Exam tip: Need deletes and minutes-level freshness from a database: managed CDC/change-tracking connector, not reloads or extracts.

Databricks Data Ingestion Patterns and Lakeflow Connect: Choosing an Ingestion Method (Data Engineer Associate) — the lesson that teaches this.

Question 2Data Ingestion and Loading

A finance team must keep a full change history of a PostgreSQL ledger table in Unity Catalog, including rows that the application hard-deletes and every intermediate value a row takes between pipeline runs. The DBA can enable logical replication. The pipeline will run every 30 minutes. Which configuration should the data engineer choose?

Choose one.

  • a
    A query-based connector with a last-modified cursor column and SCD type 1 history

    A query-based connector polls with its cursor, so it sees only each changed row's latest state at run time and misses hard deletes, and SCD type 1 overwrites rows instead of keeping history.

  • b
    A query-based connector with a deletion condition and SCD type 2 history tracking

    A deletion condition lets a query-based connector recognize soft deletes flagged in a column. Hard deletes leave no row to read, and intermediate values between runs are still missed.

  • c
    A CDC-based connector with an ingestion gateway and SCD type 1 history tracking

    CDC captures every change, but SCD type 1 overwrites each row with its latest value, so the required change history is not kept.

  • d
    A CDC-based connector with an ingestion gateway and SCD type 2 history tracking Correct

    Correct. Log-based CDC captures every insert, update and delete as it happens, and SCD type 2 keeps each version as history, which meets both the delete and the intermediate-value requirement.

The concept

Log-based CDC sees every change including hard deletes; a query-based (cursor) connector sees only the current state of rows that still exist.

Why that’s the answer

Two facts decide this. First, a query-based connector reads the source with a cursor column on each run, so it captures only the latest state of changed rows and can detect deletes only when they are soft deletes flagged in a column; a hard-deleted row is invisible to it. Log-based CDC through the ingestion gateway records every change, including hard deletes and values that change twice between runs. Second, keeping history needs SCD type 2; SCD type 1 keeps only the current version of each row.

How to reason it out
  1. List the requirements: hard deletes, intermediate values, full history.
  2. Rule out query-based capture: it polls current state and misses hard deletes.
  3. Choose log-based CDC through the ingestion gateway.
  4. Choose SCD type 2 so every version is retained, not overwritten.

Exam tip: Hard deletes + intermediate changes need log-based CDC; history needs SCD type 2 on top of it.

Databricks Data Ingestion Patterns and Lakeflow Connect: Choosing an Ingestion Method (Data Engineer Associate) — the lesson that teaches this.

Question 3Data Ingestion and Loading

A retail website publishes clickstream events to an Apache Kafka topic. The personalization team needs the events in a Unity Catalog table within seconds of being produced so that recommendations react during the visitor's session. Which ingestion pattern should the data engineer build?

Choose one.

  • a
    A COPY INTO command run hourly against files the topic's sink writes to storage

    COPY INTO loads files in batches; an hourly run cannot deliver events within seconds.

  • b
    A nightly job that reads the whole topic with spark.read and appends it to a table

    A nightly batch read is a day behind and, without offsets, rereads events it already loaded.

  • c
    A triggered pipeline scheduled hourly that reads the Kafka topic as a stream source

    Reading the topic as a stream is right, but an hourly triggered schedule leaves events waiting up to an hour, which misses the latency requirement.

  • d
    A streaming table that reads the Kafka topic in a pipeline running in continuous mode Correct

    Correct. Kafka is read with Structured Streaming or a declarative pipeline, and continuous mode processes new events as they arrive, giving seconds-level latency.

The concept

Streaming ingestion processes events continuously as they arrive; it is the pattern for seconds-level latency.

Why that’s the answer

Message buses such as Kafka are standard-connector sources read with Structured Streaming or Lakeflow Spark Declarative Pipelines into streaming tables. Only continuous processing delivers events within seconds. An hourly triggered run reads the same stream correctly but waits up to an hour between runs. COPY INTO and nightly batch reads are batch patterns with hours of latency.

How to reason it out
  1. Identify the source: a Kafka topic (a message bus).
  2. Identify the latency: seconds.
  3. Choose a streaming read that runs continuously, not on an hourly or nightly schedule.

Exam tip: Seconds-level latency from a message bus = streaming read running continuously.

Databricks Data Ingestion Patterns and Lakeflow Connect: Choosing an Ingestion Method (Data Engineer Associate) — the lesson that teaches this.

Question 4Data Ingestion and Loading

A logistics partner drops one batch of shipment files into cloud storage every night by 02:00. A Lakeflow Spark Declarative Pipeline ingests them into a streaming table for a report that analysts open at 07:00. The pipeline currently runs in continuous mode and the compute bill is high. Which change keeps the report on time at the lowest cost?

Choose one.

  • a
    Keep continuous mode and lower the pipeline's maximum number of workers

    Fewer workers lower the hourly cost, but continuous mode still keeps compute running all day for data that arrives once a night.

  • b
    Switch to triggered mode and run a scheduled update once at 03:00 each day Correct

    Correct. A triggered update processes everything that has arrived since the last run, then stops its compute, so the table is ready long before 07:00 and nothing runs idle.

  • c
    Switch to triggered mode and run a full refresh of the table at 03:00 each day

    A full refresh clears the table and reprocesses every file ever delivered, so each nightly run grows more expensive than an incremental update.

  • d
    Keep continuous mode and change the table to a materialized view over the files

    Continuous mode is what keeps compute running, and a materialized view recomputes its result from its sources rather than appending newly landed files, so neither the cost nor the ingestion pattern improves.

The concept

Triggered pipelines process the available data and stop; continuous pipelines keep compute running for low latency.

Why that’s the answer

In triggered mode, a pipeline update processes whatever new data is available, incrementally for a streaming table, and then shuts its compute down. With data arriving once a night and a morning deadline, one scheduled triggered update meets the requirement. Continuous mode only pays off when data must be processed within seconds or minutes of arrival. A full refresh reprocesses all historical files, which defeats incremental loading.

How to reason it out
  1. Compare data arrival (once nightly) with the freshness needed (by 07:00).
  2. Recognize that continuous mode is for low latency and keeps compute up.
  3. Choose a triggered update scheduled after arrival.
  4. Avoid a full refresh, which rereads everything.

Exam tip: Data arrives on a schedule and latency is hours: triggered mode on a schedule, not continuous.

Databricks Data Ingestion Patterns and Lakeflow Connect: Choosing an Ingestion Method (Data Engineer Associate) — the lesson that teaches this.

Question 5Data Ingestion and Loading

An Auto Loader stream with the default trigger runs around the clock on an all-purpose cluster, although files land only a few times an hour and downstream users refresh hourly. The team wants to cut compute cost while keeping exactly-once loading of each file. Which change should the data engineer make?

Choose one.

  • a
    Keep the stream on the current cluster with a processingTime trigger of one hour

    A one-hour processing-time trigger reduces micro-batches, but the cluster still stays up all day waiting for the next one, so the cost barely changes.

  • b
    Run the same stream with trigger(availableNow=True) as an hourly job on job compute Correct

    Correct. availableNow processes all files that arrived since the checkpoint, then stops, so a scheduled job on job compute runs only minutes per hour while the checkpoint keeps loading exactly-once.

  • c
    Replace the stream with an hourly spark.read of the directory that overwrites the table

    A batch read of the whole directory reprocesses every file each hour; it gives up incremental loading and gets slower as the directory grows.

  • d
    Run the stream hourly with trigger(availableNow=True) and a new checkpoint each run

    availableNow is right, but the checkpoint records which files were processed. A new checkpoint each run makes Auto Loader treat every file as new and load duplicates.

The concept

Incremental batch: run a streaming source with an availableNow trigger on a schedule so it processes the backlog and stops.

Why that’s the answer

This combines two facts. First, the checkpoint is what makes Auto Loader exactly-once, so it must persist across runs. Second, trigger(availableNow=True) processes everything available since the last checkpoint and then ends the query, which lets a scheduled job on cheaper job compute replace an always-on all-purpose cluster. A long processing-time trigger still keeps the cluster running. A directory batch read loses incremental tracking, and a fresh checkpoint reloads every file.

How to reason it out
  1. Find the cost driver: an always-on all-purpose cluster for hourly needs.
  2. Pick a trigger that processes the backlog and stops: availableNow.
  3. Keep the same checkpoint so files are loaded exactly once.
  4. Run it as a scheduled job on job compute.

Exam tip: Hourly freshness from a stream: availableNow on a schedule, same checkpoint, job compute.

Databricks Data Ingestion Patterns and Lakeflow Connect: Choosing an Ingestion Method (Data Engineer Associate) — the lesson that teaches this.

Question 6Data Ingestion and Loading

A nightly job reads every JSON file in a cloud storage folder that has collected three years of daily drops and overwrites a Delta table with the result. Each night's run is slower than the last. The business is happy with nightly freshness. Which ingestion pattern should the data engineer move to?

Choose one.

  • a
    Incremental loading that processes only the files added since the last run Correct

    Correct. Incremental loading tracks which files were already processed and handles only new ones, so each nightly run's cost follows the daily volume, not the full history.

  • b
    Continuous streaming that processes each file within seconds of its arrival

    Streaming would also process only new files, but it keeps compute running for a business that only needs the data once a night.

  • c
    Batch loading that keeps the full reread but runs on a larger job cluster

    More compute shortens today's run, but the job still rereads three years of files and keeps getting slower and costlier.

  • d
    Batch loading that rereads the folder weekly instead of nightly to save time

    Running less often breaks the nightly freshness requirement and still rereads the whole history each time.

The concept

Incremental loading processes only data that arrived since the last successful run.

Why that’s the answer

A full batch reload rereads everything, so its cost grows with the history. Incremental loading, for example Auto Loader or a streaming table over the folder, records what it has already processed and loads only new files, keeping each run proportional to new data. Continuous streaming is also incremental but adds always-on compute the nightly requirement does not need.

How to reason it out
  1. Spot the symptom: runtime grows with total history, not with new data.
  2. Keep the nightly cadence the business accepts.
  3. Switch to a pattern that loads only new files since the last run.

Exam tip: Growing full reloads with a fixed cadence: switch to incremental loading, not more compute.

Databricks Data Ingestion Patterns and Lakeflow Connect: Choosing an Ingestion Method (Data Engineer Associate) — the lesson that teaches this.

What Databricks DEA domain 2 tests, topic by topic

The official exam guide breaks Data Ingestion and Loading into 3 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published Databricks DEA practice questions per topic in Data Ingestion and Loading
TopicWhat it coversQuestions
Ingestion Patterns and Choosing an Ingestion MethodOfficial exam-guide objectives (Section 2): "Enable and detail data ingestion patterns, including batch, streaming, and incremental loading, and import data from sources such as local files, Lakeflow Connect standard connectors, and Lakeflow Connect managed connectors." "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."36
Incremental File Loading with COPY INTO and Auto LoaderOfficial exam-guide objectives (Section 2): "Use the COPY INTO command to incrementally load files from cloud object storage (ADLS/S3/GCS) into Unity‑Catalog–governed tables." "Use Auto Loader with schema enforcement and schema evolution in batch modes (for example, directory listing or file notification) to land data into UnityCatalog–governed tables."36
Lakeflow Connect, JDBC/REST Clients and Semi-Structured DataOfficial exam-guide objectives (Section 2): "Configure Lakeflow Connect to reliably ingest data from diverse enterprise sources into UnityCatalog–governed tables." "Use JDBC/ODBC or REST clients in notebooks to land data into cloud storage or directly into UnityCatalog–governed tables, usually orchestrated and scheduled with Lakeflow Jobs." "Ingest semi-structured and unstructured data (for example, JSON and nested data) via Lakeflow Connect and other managed connectors into UnityCatalog–governed Delta tables."36
Total108

Revise Data Ingestion and Loading before you drill it

Other Databricks DEA domains

Data Ingestion and Loading: your questions

Data Ingestion and Loading is domain 2 of the Databricks DEA exam guide and carries 21% of the scored content — the 2nd-heaviest of the 7 domains. On a 45-question paper that works out to roughly 9 questions, though Databricks does not publish an exact per-domain count and individual exam forms vary.

Source

The domain weight and topic list on this page come from the official Databricks DEA exam guide.