A data engineering team at a media company is tasked with building a production-grade streaming data pipeline that ingests clickstream events from Apache Kafka, enforces data quality rules at the Silver layer (e.g., rejecting records with null user_id or negative session_duration), fans out to multiple Gold layer tables with different aggregation windows, and must automatically reprocess downstream Gold tables whenever upstream Silver table logic is updated. The pipeline must run in both continuous streaming mode during business hours and scheduled batch mode on weekends, support built-in lineage visualization to satisfy a data governance audit, and minimize the operational burden on the engineering team (no manual cluster management or Spark job orchestration code). A senior data engineer evaluates four compute options and asks which is the best architectural fit. Which Databricks service is the most operationally appropriate choice for all stated requirements?
Show answer & explanation
Correct answer: A
WHY A: Lakeflow Spark Declarative Pipelines (formerly Delta Live Tables) is Databricks' purpose-built service for exactly this class of workload. It provides: (1) native dual-mode execution — CONTINUOUS for streaming and TRIGGERED for batch — in the same pipeline; (2) declarative data quality enforcement via CONSTRAINT/expect clauses with configurable actions (warn, drop, or fail); (3) automatic dependency resolution and downstream propagation when upstream logic changes; (4) built-in lineage tracked in Unity Catalog; and (5) fully managed pipeline compute — no cluster configs, driver sizing, or Spark job orchestration code required from the team. WHY NOT B: SQL Warehouses execute SQL queries but do not natively ingest from Kafka streams. They are designed for analytical query workloads, not continuous stream processing pipelines. Delta table CHECK constraints are DDL-level constraints, not the row-level routing/quarantine logic that DLT expectations provide. WHY NOT C: A long-lived all-purpose cluster with a manual Structured Streaming job satisfies some requirements but requires the team to manually manage cluster lifecycle, write orchestration logic for the batch/streaming mode switch, and implement custom lineage tracking — all of which Lakeflow Spark Declarative Pipelines handles automatically. The all-purpose cluster also represents a higher cost and operational risk due to persistent state. WHY NOT D: A multi-task Workflow with one job cluster per task can orchestrate independent tasks but does not natively handle streaming ingestion, automatic upstream-to-downstream change propagation, or real-time lineage. Post-hoc validation tasks are a workaround, not an integrated quality enforcement mechanism. This approach requires significantly more orchestration code and operational maintenance.