← BuildandTeach Tech Tutorials posts

Published · By Henry Palma

Databricks Data Engineer Associate Practice Quiz, Lesson 6: Lakeflow Connect, JDBC and REST Ingestion

Practice quiz for the Databricks Data Engineer Associate exam, Lesson 6: managed CDC connectors, JDBC partitions, secrets, and the REST landing pattern.

Databricks Data Engineer Associate Practice Quiz, Lesson 6: Lakeflow Connect, JDBC and REST Ingestion

Exam-style question: A SQL Server table must land in Unity Catalog every 30 minutes, deletes included, with the least code to maintain. Which ingestion method fits best? The Lakeflow Connect managed database connector. It uses change data capture (CDC), so inserts, updates and deletes all arrive, and you configure it instead of coding it. This post is the practice quiz companion to Lesson 6 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 6: Lakeflow Connect vs JDBC vs REST Ingestion video if you want the walkthrough, then use this quiz to check yourself.

The written lesson companion is here: Lesson 6: Lakeflow Connect vs JDBC vs REST Ingestion.

The notebook and cheat sheet are in the A06 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

Lessons 1 through 5 started from files. This lesson is about sources that are not files, and how to pick a method. When a database table must land in Unity Catalog on a schedule, deletes included, with the least code to maintain, the Lakeflow Connect managed database connector is the fit. It uses change data capture (CDC), so you configure it instead of coding it. A Java Database Connectivity (JDBC) query only sees rows that exist now, so it misses deletes unless you build that logic yourself.

A Spark JDBC read is one query on one thread unless you set partitionColumn, lowerBound, upperBound and numPartitions. Credentials belong in Databricks secrets, or in a Unity Catalog connection that an admin creates once, never in the URL or the notebook. In a Lakeflow Connect database connector, the ingestion gateway runs continuously on classic compute so it can read change logs before they are truncated. The ingestion pipeline runs on a schedule on serverless.

If analysts need to query PostgreSQL from Databricks and nobody wants a copy of the data, Lakehouse Federation queries the source in place. JDBC, Connect and COPY INTO all land a copy. Clickstream JSON files in cloud storage still belong to Auto Loader, not JDBC. When an internal HTTP API has no connector, the usual pattern is to land raw pages in a volume from a notebook, load them with Auto Loader, and schedule the notebook with Lakeflow Jobs. A direct append of the same page of results on every run will duplicate rows, because Spark does not deduplicate for you.

Databricks Free Edition restricts outbound internet access, so a REST example may run against a simulated API, and a live JDBC or Connect CDC source needs a reachable database and, in practice, a paid workspace.

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

A SQL Server table must land in Unity Catalog every 30 minutes, deletes included, with the least code. Which method fits best?

  • A) Auto Loader
  • B) A Lakeflow Connect managed database connector
  • C) A JDBC read in a notebook
  • D) A REST client in a notebook

Answer: B. The managed connector uses change data capture (CDC), so inserts, updates and deletes all arrive, and you configure it instead of coding it. A JDBC query only sees rows that exist now.

Question 2

By default, how does a Spark JDBC read run?

  • A) As a single query on one thread
  • B) In parallel across all source tables
  • C) With one partition per column
  • D) Only through a Unity Catalog connection

Answer: A. A JDBC read is one query on one thread unless you set partitionColumn, lowerBound, upperBound and numPartitions.

Question 3

Where should the user name and password for a JDBC read be kept?

  • A) In the JDBC URL
  • B) In a notebook variable
  • C) In Databricks secrets or a Unity Catalog connection
  • D) In the staging volume

Answer: C. Credentials belong in Databricks secrets, or in a Unity Catalog connection that an admin creates once. Never in the URL or the notebook.

Question 4

Which part of a Lakeflow Connect database connector runs continuously on classic compute?

  • A) The ingestion pipeline
  • B) The destination streaming table
  • C) The Unity Catalog connection
  • D) The ingestion gateway

Answer: D. The gateway reads the database change logs before they are truncated, so it runs continuously. The ingestion pipeline runs on a schedule on serverless.

Question 5

The table starts empty. After two runs, how many rows?

rows, page = [], 1
while page:          # same 5 orders every run: 3, then 2
    body = get_page(page)
    rows += body["data"]
    page = body["next_page"]
spark.createDataFrame(rows).write.mode("append").saveAsTable("api_orders")
  • A) 5
  • B) 10
  • C) 3
  • D) 0

Answer: B. A direct append writes the same five orders again. Spark does not deduplicate, so plan a MERGE on order_id, or land the pages and load them with Auto Loader.

Question 6

Clickstream JSON files land in cloud storage every few minutes, millions per day. Which method fits best?

  • A) A JDBC read
  • B) Auto Loader
  • C) A REST client in a notebook
  • D) Lakehouse Federation

Answer: B. The source is files in cloud storage, and Auto Loader loads new files incrementally at that scale. JDBC and federation are for databases.

Question 7

Analysts need to query a PostgreSQL table from Databricks, but nobody wants a copy of the data. What fits?

  • A) A Lakeflow Connect managed connector
  • B) Lakehouse Federation
  • C) COPY INTO
  • D) Auto Loader

Answer: B. Lakehouse Federation queries the source in place, without ingesting it. The other three land a copy in Unity Catalog tables.

Question 8

An internal HTTP API has no connector and must be pulled every hour. What is the usual pattern?

  • A) Point Auto Loader at the API URL
  • B) REST code lands pages in a volume, Auto Loader loads, Jobs schedules
  • C) A JDBC read of the API
  • D) A Lakeflow Connect database gateway

Answer: B. With no connector, call the API from a notebook, land the raw pages in a volume for an audit trail, load them with Auto Loader, and schedule the notebook with Lakeflow Jobs.

Practical tips

The memory trick from the video: a query sees what is there. CDC sees what changed.

Start from the source type. Files in cloud storage point to Auto Loader. A database that must include deletes, with little code, points to a managed connector. Query in place, with no copy, points to Federation. An API with no connector points to REST code plus a volume and Auto Loader.

Never leave a database password in the JDBC URL or a notebook variable.

Key takeaways

  • A managed Lakeflow Connect database connector uses CDC, so deletes arrive, and you configure it instead of coding it.
  • A default JDBC read is one query on one thread. Partition it explicitly, and store credentials in secrets or a Unity Catalog connection.
  • The Connect gateway runs continuously on classic compute. The ingestion pipeline runs on a schedule on serverless.
  • Lakehouse Federation queries a source in place, without ingesting a copy.
  • For an API with no connector, land pages in a volume, load them with Auto Loader, and schedule the job. A raw append can duplicate rows.

Check your understanding

*1. Rows are deleted in a SQL Server table that you ingest with a nightly JDBC SELECT . What happens to those deletes in Unity Catalog?**

  • A) CDC applies them automatically
  • B) The JDBC query does not see the deleted rows, so the Unity Catalog table still has them unless you add your own logic
  • C) Spark removes any key that is missing from the latest query
  • D) The job fails when a source row is missing

2. You want a JDBC read to run in parallel. Which set of options do you need?

  • A) Only numPartitions
  • B) partitionColumn, lowerBound, upperBound and numPartitions
  • C) A Unity Catalog volume path
  • D) cloudFiles.schemaLocation

3. Analysts must query a PostgreSQL table from Databricks without storing a copy. Which method fits?

  • A) Lakehouse Federation
  • B) A Lakeflow Connect managed connector
  • C) COPY INTO
  • D) Auto Loader

4. Millions of clickstream JSON files land in a cloud volume every day. Which method fits best?

  • A) A JDBC read
  • B) Auto Loader
  • C) Lakehouse Federation
  • D) A REST client against the volume URL

5. Where should the password for a JDBC read be stored?

  • A) In the JDBC URL
  • B) In a notebook variable
  • C) In Databricks secrets, or in a Unity Catalog connection
  • D) In the staging volume next to the data

Answer key

  1. B. A JDBC query only sees rows that exist now. Deletes in the source do not remove rows already landed, unless you add that logic or use CDC.
  2. B. All four partition options are required to split a JDBC read across threads.
  3. A. Federation queries the source in place. The other three land a copy in Unity Catalog.
  4. B. The source is files in cloud storage, which is Auto Loader's job. JDBC and Federation are for databases.
  5. C. Credentials belong in secrets or a Unity Catalog connection, never in the URL or the notebook.

Have an idea, question, or feedback?

We'd genuinely like to hear from you.