Certified Data Engineer Associate Practice Test

Certified Data Engineer Associate Practice Test practice questions, page 7 of 12, with answer review and explanations.

Question 31

A data engineer has configured a Structured Streaming job to read from a table, manipulate the data, and then perform a streaming write into a new table. The cade block used by the data engineer is below: If the data engineer only wants the query to execute a micro-batch to process data every 5 seconds, which of the following lines of code should the data engineer use to fill in the blank?

  1. trigger("5 seconds")
  2. trigger()
  3. trigger(once="5 seconds")
  4. trigger(processingTime="5 seconds")
  5. trigger(continuous="5 seconds")

Question 32

A dataset has been defined using Delta Live Tables and includes an expectations clause: CONSTRAINT valid_timestamp EXPECT (timestamp > '2020-01-01') ON VIOLATION DROP ROW What is the expected behavior when a batch of data containing data that violates these constraints is processed?

  1. Records that violate the expectation are dropped from the target dataset and loaded into a quarantine table.
  2. Records that violate the expectation are added to the target dataset and flagged as invalid in a field added to the target dataset.
  3. Records that violate the expectation are dropped from the target dataset and recorded as invalid in the event log.
  4. Records that violate the expectation are added to the target dataset and recorded as invalid in the event log.
  5. Records that violate the expectation cause the job to fail.

Question 33

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?

  1. CREATE STREAMING LIVE TABLE should be used when the subsequent step in the DLT pipeline is static.
  2. CREATE STREAMING LIVE TABLE should be used when data needs to be processed incrementally.
  3. CREATE STREAMING LIVE TABLE is redundant for DLT and it does not need to be used.
  4. CREATE STREAMING LIVE TABLE should be used when data needs to be processed through complicated aggregations.
  5. CREATE STREAMING LIVE TABLE should be used when the previous step in the DLT pipeline is static.

Question 34

A data engineer is designing a data pipeline. The source system generates files in a shared directory that is also used by other processes. As a result, the files should be kept as is and will accumulate in the directory. The data engineer needs to identify which files are new since the previous run in the pipeline, and set up the pipeline to only ingest those new files with each run. Which of the following tools can the data engineer use to solve this problem?

  1. Unity Catalog
  2. Delta Lake
  3. Databricks SQL
  4. Data Explorer
  5. Auto Loader

Question 35

Which of the following Structured Streaming queries is performing a hop from a Silver table to a Gold table?