Certified Data Engineer Associate Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Associate Exam - Question 78


A data engineer is using the following code block as part of a batch ingestion pipeline to read from a composable table:

Which of the following changes needs to be made so this code block will work when the transactions table is a stream source?

Show Answer
Correct Answer: E

To enable the code block to work when the transactions table is a stream source, you need to replace 'spark.read' with 'spark.readStream'. The 'readStream' method is specifically designed to read streams of data, in contrast to 'read', which is intended for batch processing.

Discussion

4 comments
Sign in to comment
meow_akkOption: E
Oct 22, 2023

Ans E; for streaming source you use readstream. https://docs.databricks.com/en/structured-streaming/delta-lake.html

55f31c8Option: E
Nov 30, 2023

Example from https://docs.databricks.com/en/structured-streaming/delta-lake.html spark.readStream.table("table_name") spark.readStream.load("/path/to/table")

in89_io_90
Dec 2, 2023

have you cleared the exam

AndreFROption: E
Dec 20, 2023

https://docs.databricks.com/en/structured-streaming/tutorial.html#use-auto-loader-to-read-streaming-data-from-object-storage

benni_aleOption: E
Apr 29, 2024

E is ok