SpinTheMic
Pro

4 guides

How to answer Databricks interview questions

Databricks interviews centre on Delta Lake: Parquet files plus a transaction log that makes them behave like a table. Once you can explain the log, time travel, MERGE and file layout questions get much easier. The guides also flag where the platform has changed recently, so your answer sounds current.

  1. What is Delta Lake?Delta Lake is an open-source table format: data stored as Parquet files plus a transaction log that adds ACID transactions, schema enforcement, time travel and MERGE, UPDATE and DELETE. It's the default table format on Databricks.Beginner
  2. How does the Delta Lake transaction log work?The _delta_log folder holds an ordered series of JSON commit files, each listing the data files added or removed in one transaction, plus periodic Parquet checkpoints. Readers rebuild the current table from the latest checkpoint and the commits after it.Beginner
  3. What is Auto Loader in Databricks?Auto Loader is a Structured Streaming source, cloudFiles, that picks up new files from cloud storage incrementally. It remembers which files it processed in a checkpoint, so each file is loaded once, and it can infer and evolve the schema.Beginner
  4. What is Z-ordering in Delta Lake, and how does it compare with liquid clustering?Z-ordering, run with OPTIMIZE ... ZORDER BY, rewrites files so rows with similar values in chosen columns sit together, which improves data skipping. Databricks now recommends liquid clustering for new tables instead.Intermediate
All Databricks practice questions