Which code snippet completes this function definition?

A nightly job ingests data into a Delta Lake table using the following code:

The next step in the pipeline requires a function that returns an object that can be used to manipulate new records that have not yet been processed to the next table in the pipeline.

Which code snippet completes this function definition?

A) def new_records():

B) return spark.readStream.table("bronze")

C) return spark.readStream.load("bronze")

D) return spark.read.option("readChangeFeed", "true").table ("bronze")

E)

A . Option A
B . Option B
C . Option C
D . Option D
E . Option E

Answer: E

Explanation:

https://docs.databricks.com/en/delta/delta-change-data-feed.html

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments