Databricks Certified Data Engineer Professional — Question 139

A Structured Streaming job deployed to production has been resulting in higher than expected cloud storage costs. At present, during normal execution, each microbatch of data is processed in less than 3s; at least 12 times per minute, a microbatch is processed that contains 0 records. The streaming write was configured using the default trigger settings. The production job is currently scheduled alongside many other Databricks jobs in a workspace with instance pools provisioned to reduce start-up time for jobs with batch execution.

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

Answer options

Correct answer: B

Explanation

The correct answer is B because using the trigger once option and scheduling the job to run every 10 minutes effectively minimizes unnecessary processing of empty microbatches, thereby reducing both compute and storage costs. Option A does not address the root cause of the empty batches, while option C may lead to delayed processing beyond the 10-minute requirement. Option D would still lead to the frequent querying of the source, which does not resolve the cost issue.