Databricks Certified Data Engineer Associate — Question 20

A data analyst has a series of queries in a SQL program. The data analyst wants this program to run every day. They only want the final query in the program to run on Sundays. They ask for help from the data engineering team to complete this task.
Which of the following approaches could be used by the data engineering team to complete this task?

Answer options

Correct answer: B

Explanation

The correct answer is B because using PySpark and Python's control flow allows for precise execution control over when the final query runs. Answer A is incorrect as feature requests do not provide immediate solutions. C is wrong because it does not meet the requirement to run daily. D does not solve the execution timing issue, and E unnecessarily complicates the data structure.