Databricks interviews test both your Apache Spark fundamentals and your understanding of the Lakehouse architecture. Review these core Databricks and Spark interview questions and answers.
1. What is the Databricks Lakehouse architecture, and how does it differ from a data warehouse?
Answer: The Databricks Lakehouse combines the low-cost, open-format scalability of cloud data lakes (storing Parquet/Delta files in S3, ADLS, or GCS) with the ACID transactions, governance, and BI performance of a data warehouse—eliminating separate data silos for BI and AI.
2. What is the Medallion Architecture (Bronze, Silver, Gold)?
Answer: The Medallion Architecture organizes data quality progressively: Bronze stores raw ingested data as-is; Silver holds cleaned, deduplicated, and conformed datasets; and Gold provides business-level aggregates and feature tables ready for BI dashboards and ML.
3. How do Narrow and Wide Transformations differ in Apache Spark?
Answer: Narrow transformations (such as map and filter) process data within a single partition without moving data across nodes. Wide transformations (such as groupBy, join, and repartition) require a shuffle across executors over the network, which creates stage boundaries.
4. What is the Photon Engine in Databricks?
Answer: Photon is Databricks’ vectorized query engine written in C++ that accelerates SQL and DataFrame workloads dramatically—especially joins, aggregations, and scans on Delta tables—without requiring code changes.
5. How does the Spark Catalyst Optimizer work?
Answer: The Catalyst Optimizer converts DataFrame/SQL code into an unresolved logical plan, resolves schemas via the catalog, applies rule-based optimizations (predicate pushdown, constant folding, column pruning), and uses cost-based optimization to pick the best physical execution plan.

