DATABRICKS-DATA-ENGINEER-ASSOCIATE practice question 14 of 25

Which of the following describes when to use the CREATE STREAMING LIVE TABLE (formerly CREATE INCREMENTAL LIVE TABLE) syntax over the CREATE LIVE TABLE syntax when creating Delta Live Tables (DLT) tables using SQL?

Full set: 177 questions
Answer options
A: CREATE STREAMING LIVE TABLE should be used when the subsequent step in the DLT pipeline is static.
B: CREATE STREAMING LIVE TABLE should be used when data needs to be processed incrementally. Correct answer
C: CREATE STREAMING LIVE TABLE is redundant for DLT and it does not need to be used.
D: CREATE STREAMING LIVE TABLE should be used when data needs to be processed through complicated aggregations.
E: CREATE STREAMING LIVE TABLE should be used when the previous step in the DLT pipeline is static.
Correct Answer:
B. CREATE STREAMING LIVE TABLE should be used when data needs to be processed incrementally.
Explanation

The CREATE STREAMING LIVE TABLE syntax is used in Delta Live Tables (DLT) specifically for processing data from an append-only or streaming source. This approach allows DLT to process data incrementally, meaning only new records that have arrived since the last pipeline run are processed. This is in contrast to a standard CREATE LIVE TABLE (which creates a materialized view), where the entire table is recomputed from the source data during each pipeline update. Using a streaming live table is essential for efficiency and scalability when dealing with continuously arriving data.

Why Incorrect

A. The nature of a table (streaming or static) is determined by its data source and processing logic, not by the nature of the subsequent tables that consume it.
C. CREATE STREAMING LIVE TABLE is a fundamental and necessary construct in DLT for handling streaming data sources; it is not redundant.
D. While streaming tables can handle complex aggregations (often with watermarking), the complexity is not the deciding factor for using this syntax. The key is the incremental nature of the source.
E. A streaming live table must read from a streaming source, such as an external queue, files ingested with Auto Loader, or another streaming live table, not a static one.

References

1. Databricks Documentation

"Delta Live Tables SQL language reference":

Section: Create a streaming live table: "Use a streaming live table to perform a streaming read on a source dataset. A streaming read processes data that has been added to the source since the last pipeline update." This directly supports the concept of incremental processing.

Section: Create a live table (materialized view): "Delta Live Tables recomputes materialized views in their entirety each time the pipeline is updated." This highlights the contrast with incremental processing.

2. Databricks Documentation

"What is Delta Live Tables?":

Section: Live table versus streaming live table: "A streaming live table processes data from an append-only data source

where new rows are inserted into the source table but existing rows are not modified." This explicitly states the use case for streaming live tables is for append-only

incremental sources.

3. Databricks Documentation

"Delta Live Tables cookbook":

Section: Ingest data with Delta Live Tables: This section provides examples showing the use of STREAM() with cloudfiles() (Auto Loader) to "incrementally read files from cloud storage." This demonstrates the practical application of streaming tables for incremental data ingestion.

Scroll to Top