QuestionQ239

VerifiedDevelopment and Ingestion

A data engineering team must integrate two data sources into Databricks:

  • Clickstream Events: Ingesting 5,000 events per second from an Apache Kafka topic.
  • Customer Master Data: Syncing only changed records every 4 hours from a Snowflake database.

The solution must satisfy two key requirements:

  • Process the streaming clickstream data with a latency of under 30 seconds.
  • Avoid reprocessing customer master data that has not changed.

Which data ingestion approach satisfies these requirements?

Explanation

Structured Streaming provides native, low-latency micro-batch (or continuous) processing of Kafka topics, easily achieving sub-30-second latency for high-throughput event streams like the 5,000 events/second clickstream. For the Snowflake customer master data, Databricks Lakeflow Connect's managed connectors use incremental ingestion: after an initial full load, subsequent runs track and ingest only the changed records, which prevents reprocessing of unchanged data. Using a full refresh (Option A), non-incremental polling with time filters (Option C), or a non-incremental connector fetching all data every run (Option D) would all cause unnecessary reprocessing of unchanged records, violating the stated requirement.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!