← BuildandTeach Tech Tutorials posts

Published · By Henry Palma

Databricks Data Engineer Associate Practice Quiz, Lesson 2: Batch, Streaming and Incremental Ingestion

Practice quiz for the Databricks Data Engineer Associate exam, Lesson 2: batch overwrite, Auto Loader checkpoints, serverless triggers, and connectors.

Databricks Data Engineer Associate Practice Quiz, Lesson 2: Batch, Streaming and Incremental Ingestion

Exam-style question: New order files keep arriving in a volume, and each file must load only once. Which ingestion pattern fits? Incremental ingestion with Auto Loader and a checkpoint. Auto Loader records each file it has already processed, so later runs pick up only the new files. This post is the practice quiz companion to Lesson 2 of the Databricks Data Engineer Associate exam prep series, in Section 2 of the August 2026 exam guide, Data Ingestion and Loading (21% of the exam).

Watch on YouTube

Video thumbnail
Video thumbnail

Watch the full Lesson 2: Batch, Streaming and Incremental Ingestion video if you want the walkthrough, then use this quiz to check yourself.

The written lesson companion is here: Lesson 2: Batch, Streaming and Incremental Ingestion.

The notebook and cheat sheet are in the A02 folder on GitHub. The PDF cheat sheet is in the same folder.

This is independent study material, not official Databricks training. The eight questions below are original practice items written by Build and Teach from the public exam guide and Databricks documentation. They are not real exam questions and are not affiliated with or endorsed by Databricks.

What this quiz covers

Section 2 asks you to choose an ingestion pattern from a short scenario. The three patterns in this lesson are batch, incremental and streaming. Batch re-reads the whole source on every run. That is simple, but the cost grows with all the data you have ever received. If a batch job appends instead of overwriting, the same rows pile up on every run.

Incremental loads only what is new. Auto Loader does this for files by writing progress to a checkpoint location. On the next run it skips files it already loaded. On serverless compute, the trigger that processes everything new and then stops is availableNow. The processingTime and continuous triggers are not supported there and raise an error.

A one-time upload of a small reference file is a batch load, not an incremental pipeline. When a team must ingest from a system such as Salesforce without writing code, and Databricks should handle authentication, retries and schema changes, a managed connector is the fit. Auto Loader itself is the cloudFiles source on spark.readStream. The file format, such as CSV, goes in the cloudFiles.format option.

Pause the video when the timer shows, pick A, B, C or D, then check the answer. Seven or more of the eight questions right means you are ready for this section.

Practice questions from the quiz video

These are the eight questions from the quiz video, with answers and explanations.

Question 1

Which ingestion pattern re-reads the whole source on every run?

  • A) Batch
  • B) Incremental
  • C) Streaming
  • D) Auto Loader

Answer: A. Batch reads the whole source every time. It is simple, but the cost grows with all the data you have ever received.

Question 2

A batch job reads every file again on each run. What happens if it appends instead of overwrites?

  • A) Delta removes the duplicates
  • B) Duplicate rows pile up
  • C) The job fails on schema
  • D) Only new files are read

Answer: B. A batch read sees every file each time, so appending loads the same orders again on every run. Overwrite keeps the table correct.

Question 3

What does the checkpoint location of an Auto Loader write record?

  • A) The table schema
  • B) Which files were already processed
  • C) The cluster size
  • D) The Unity Catalog permissions

Answer: B. The checkpoint tracks progress. On the next run Auto Loader skips files it already loaded and reads only the new ones.

Question 4

On serverless, which trigger processes everything new and then stops?

  • A) processingTime
  • B) continuous
  • C) availableNow
  • D) Streaming is not supported

Answer: C. Serverless supports the available now trigger. Processing time and continuous triggers are not supported there and raise an error.

Question 5

Three files hold 3, 2 and 4 orders. Auto Loader loaded the first two. How many rows does the next run read?

  • A) Four
  • B) Nine
  • C) Two
  • D) Five

Answer: A. The checkpoint skips the first two files, so only the new file is read. Four rows are added and the bronze total is nine.

Question 6

A team must ingest Salesforce data without writing code. Databricks should handle authentication, retries and schema changes. Which fits?

  • A) A standard connector with Auto Loader
  • B) A managed connector
  • C) COPY INTO from a volume
  • D) A local file upload

Answer: B. Managed connectors are configured, not coded. Databricks handles authentication, incremental reads, retries and schema changes.

Question 7

You upload a small reference file with Add or upload data. What kind of load is that?

  • A) Continuous streaming
  • B) A one-time batch load
  • C) An incremental load with a checkpoint
  • D) A managed connector

Answer: B. An upload creates a managed Delta table once. It suits small reference files, not data that keeps arriving.

Question 8

Which source name makes this stream an Auto Loader read?

stream = (spark.readStream
    .format("_______")
    .option("cloudFiles.format", "csv")
    .load(src))
  • A) delta
  • B) cloudFiles
  • C) autoloader
  • D) kafka

Answer: B. Auto Loader is the cloud files source in spark read stream. The file format goes in the cloud files format option.

Practical tips

Source fully replaced? Batch with overwrite. New files keep arriving? Auto Loader with a checkpoint.

If the scenario says the job should catch up and then stop on serverless, look for availableNow. Do not pick a continuous or processing-time trigger.

Read the format string carefully in code questions. Auto Loader is cloudFiles, not csv and not a source name of autoloader.

Key takeaways

  • Batch re-reads the whole source. Append after a full reread creates duplicates. Overwrite keeps the table correct.
  • An Auto Loader checkpoint records which files were already processed, so the next run reads only new files.
  • On serverless, availableNow processes everything new and then stops. processingTime and continuous are not supported.
  • A managed connector is configured, not coded, when Databricks should handle authentication, retries and schema changes.
  • Auto Loader is the cloudFiles source. A one-time file upload is a batch load, not an incremental pipeline.

Check your understanding

1. A vendor drops a complete replacement of the product catalog every night. Which pattern keeps the table correct?

  • A) Batch read with append
  • B) Batch read with overwrite
  • C) A continuous Auto Loader stream
  • D) A managed Salesforce connector

2. An Auto Loader job already loaded day1.csv and day2.csv. A new file, day3.csv, has 6 orders. How many rows does the next run read?

  • A) Every row from all three files
  • B) 6
  • C) 0, because the folder was already used
  • D) Only the rows that changed in day1.csv

3. A serverless notebook starts an Auto Loader stream with a processingTime trigger. What happens?

  • A) It processes new files every interval and stays running
  • B) It is silently converted to availableNow
  • C) It raises an error, because that trigger is not supported on serverless
  • D) It runs once and then converts to continuous

4. You need to land a 15-row currency-code file once, as a managed Delta table. Which method fits?

  • A) Auto Loader with a checkpoint
  • B) A managed connector
  • C) Add or upload data, a one-time batch load
  • D) A continuous stream

5. This stream should be Auto Loader for JSON files. What goes in .format(...)?

  • A) json
  • B) cloudFiles
  • C) autoloader
  • D) availableNow

Answer key

  1. B. A full replacement is a batch overwrite. Appending would keep yesterday's catalog rows as well.
  2. B. The checkpoint skips the two files already loaded, so only day3.csv is read, which is 6 rows.
  3. C. Serverless supports availableNow. processingTime and continuous raise an error there.
  4. C. A small reference file that does not keep arriving is a one-time batch upload, not an incremental pipeline.
  5. B. Auto Loader is the cloudFiles source. The JSON file format belongs in the cloudFiles.format option.

Have an idea, question, or feedback?

We'd genuinely like to hear from you.