Databricks Certified Data Engineer Professional — Question 190

A Structured Streaming job deployed to production has been experiencing delays during peak hours of the day. At present, during normal execution, each microbatch of data is processed in less than 3 seconds. During peak hours of the day, execution time for each microbatch becomes very inconsistent, sometimes exceeding 30 seconds. The streaming write is currently configured with a trigger interval of 10 seconds.

Holding all other variables constant and assuming records need to be processed in less than 10 seconds, which adjustment will meet the requirement?

Answer options

Correct answer: B

Explanation

Option B is correct because decreasing the trigger interval to 5 seconds allows for more frequent processing, which can help prevent record backlogs and reduce the size of batches, thereby addressing delays. Option A, while similar, doesn't emphasize the prevention of backups as effectively as B. Options C and D are not viable solutions since they either misrepresent the capabilities of modifying the trigger interval or do not solve the core issue of processing delays.