databricks Data Engineer Professional · Practice questions

Section 2: Data Ingestion and Acquisition Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

Which statement about Auto Loader's cloudFiles.maxFilesPerTrigger is correct?

  1. It controls how many executors read files in parallel
  2. It limits the total number of files that the stream will ever process
  3. It sets the maximum number of output files written to the target table
  4. It limits files processed per micro-batch — Correct

Correct answer

It limits files processed per micro-batch

Explanation

Rate limits control micro-batch size.

Question 2

A team needs to stream from Kafka into bronze with exactly-once guarantees into Delta. Which combination provides this?

  1. Kafka source with the console sink
  2. Kafka source with checkpointing and a Delta sink — Correct
  3. Kafka source with foreach writing to a JDBC table without idempotency
  4. Kafka source without checkpointing

Correct answer

Kafka source with checkpointing and a Delta sink

Explanation

Replayable Kafka offsets, checkpoints and the transactional Delta sink provide end-to-end exactly-once.

Question 3

A team must query data in an external Snowflake warehouse occasionally, joining it with Delta tables, without building ingestion. Which approach fits?

  1. COPY INTO
  2. Delta Sharing
  3. Auto Loader
  4. Lakehouse Federation — Correct

Correct answer

Lakehouse Federation

Explanation

Federation queries external systems in place; for heavy or frequent use, ingestion may be better.

Question 4

A data engineer must ingest a SQL Server database continuously with CDC into Delta, with minimal custom code. Which option fits?

  1. A nightly JDBC full extract that overwrites every table, which captures deletes automatically
  2. A Lakeflow Connect database connector — Correct
  3. Delta Sharing from SQL Server, which streams changes into Unity Catalog
  4. Auto Loader pointed at the SQL Server data files on the database host

Correct answer

A Lakeflow Connect database connector

Explanation

Managed database connectors capture changes from supported databases into Delta tables.

Question 5

Which option limits how much data each micro-batch reads from a Delta source to control batch size?

  1. spark.sql.shuffle.partitions
  2. maxFilesPerTrigger / maxBytesPerTrigger — Correct
  3. startingVersion
  4. checkpointLocation

Correct answer

maxFilesPerTrigger / maxBytesPerTrigger

Explanation

Rate-limiting options control micro-batch size for Delta and file sources.

Question 6

A Kafka topic retains data for 7 days. A streaming job into bronze was stopped for 10 days. On restart, it fails because the stored offsets are no longer available. What should the engineer do?

  1. Delete the Delta table and restart the stream with the same checkpoint so Kafka replays the missing ten days
  2. Restart with failOnDataLoss handled deliberately and backfill the gap from another source — Correct
  3. Switch the trigger to continuous mode, which reads data that has already expired from the topic
  4. Increase spark.sql.shuffle.partitions, which makes Kafka retain expired offsets for longer

Correct answer

Restart with failOnDataLoss handled deliberately and backfill the gap from another source

Explanation

Expired offsets mean data loss; the job must accept the gap explicitly and recover missing data from a durable source.

Question 7

Which bronze design makes recovering from Kafka retention gaps easier in the future?

  1. Keep only the last 7 days in bronze, matching the topic retention to avoid duplicate history
  2. Read Kafka directly from silver and gold tables so that bronze is not needed and storage is saved
  3. Store messages only in the checkpoint directory, which keeps all historical payloads
  4. Land raw messages in Delta promptly, keeping full history — Correct

Correct answer

Land raw messages in Delta promptly, keeping full history

Explanation

Bronze in Delta acts as a durable replayable copy beyond source retention.

Question 8

Which statement about Auto Loader file notification mode on Unity Catalog external locations is correct?

  1. It cannot be used with Unity Catalog external locations
  2. It loads only files with names in alphabetical order
  3. It can use managed file events for scalable discovery — Correct
  4. It requires polling the directory every second to detect new files

Correct answer

It can use managed file events for scalable discovery

Explanation

File events on external locations let Auto Loader discover files efficiently.

Question 9

When is ingesting data preferable to querying it via Lakehouse Federation?

  1. When queries are frequent or heavy — Correct
  2. When data must stay in the source for testing
  3. When access is rare and ad hoc
  4. When the source is small and rarely queried

Correct answer

When queries are frequent or heavy

Explanation

Federation suits ad hoc access; ingestion suits performance-critical or high-volume workloads.

Question 10

A backfill of 3 years of data must not overload the source database. Which design is appropriate?

  1. Chunked, throttled backfill with checkpoints — Correct
  2. Read 3 years in one JDBC query with no partitioning
  3. Use 500 concurrent connections
  4. Skip the backfill

Correct answer

Chunked, throttled backfill with checkpoints

Explanation

Chunked, throttled backfills protect sources and allow restarts.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz