Real-time ingestion and declarative pipelines are top topics in Databricks Data Engineering interviews. Review these Databricks Structured Streaming and Delta Live Tables (DLT) interview questions and answers.
1. How does Databricks Auto Loader (cloudFiles) improve on standard Spark file streaming?
Answer: Auto Loader incrementally and efficiently processes new files arriving in cloud storage using cloudFiles. Unlike standard Spark file streaming that lists entire directories repeatedly, Auto Loader can use cloud notification services and RocksDB state tracking to scale to millions of files with automatic schema inference and evolution.
2. How does Spark Structured Streaming guarantee fault tolerance and exactly-once processing?
Answer: Structured Streaming writes progress offsets and state to a persistent checkpoint location and uses an idempotent sink such as Delta Lake. If a job fails and restarts, it resumes from the last committed offset without duplicating or losing records.
3. What is the difference between Trigger.AvailableNow and continuous streaming?
Answer: Trigger.AvailableNow processes all currently available data in micro-batches and then shuts down the cluster—delivering streaming-style incremental state management at batch-job cost. Continuous/default micro-batch triggers keep clusters running 24/7 for sub-second or second-level latency.
4. What are Delta Live Tables (DLT) Expectations?
Answer: DLT Expectations are declarative data quality constraints written directly in SQL or Python pipelines (for example, EXPECT (amount > 0)). You can configure DLT to warn (log metrics), drop invalid rows, or fail the pipeline immediately when data violates rules.
5. How do Streaming Tables and Materialized Views differ in DLT?
Answer: A Streaming Table processes append-only new data incrementally exactly once, ideal for Bronze and ingestion layers. A Materialized View computes and incrementally refreshes aggregations or joins over changing upstream tables, ideal for Silver/Gold analytics.

