QuestionQ60

VerifiedData Modelling

A data engineer is designing a system that uses Lakeflow Declarative Pipeline technology to process real-time truck telemetry data ingested from JSON files in S3 through Auto Loader. The data contains truck_id, timestamp, location, speed, and fuel_level. The system must support two use cases:

  1. Near-real-time monitoring for the operations team of the most recent location, speed, and fuel_level for each truck_id.
  2. Daily aggregated reports for the management team of total distance traveled and average fuel efficiency for each truck_id.

Which approach should the data engineer use for streaming tables and materialized views in the Lakeflow Declarative Pipeline to satisfy these requirements?

Explanation

Streaming tables are appropriate for Auto Loader ingestion and low-latency incremental transformations over continuously growing data, including maintaining the latest telemetry state per truck_id. Materialized views are appropriate for analytical aggregations because they materialize and refresh precomputed results, making them suitable for daily distance and fuel-efficiency reporting.

Learn more

Community Discussion

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