Exam Certified Data Engineer Associate All QuestionsBrowse all questions from this exam
Question 18

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?

    Correct Answer: B

    To meet the requirement of running the SQL program every day but executing the final query only on Sundays, wrapping the queries using PySpark and leveraging Python’s control flow system is an effective solution. Python's control flow can evaluate the day of the week and conditionally run the final query only when it's Sunday, while allowing the other queries to run daily. This approach is both practical and implementable within the existing system without extensive changes or undue complexity.

Discussion
AtnafuOption: B

B The answer is B. Option A: Submitting a feature request with Databricks to add this functionality is not a feasible solution because it would require Databricks to implement new functionality. Option C: Only running the entire program on Sundays would be inconvenient for the data analyst because they would have to remember to run the program on Sundays. Option D: Automatically restricting access to the source table in the final query so that it is only accessible on Sundays would be difficult to implement and would not be a reliable solution. Option E: Redesigning the data model to separate the data used in the final query into a new table would be a major undertaking and would not be a feasible solution for this specific problem. Therefore, the only feasible solution to the problem is to wrap the queries using PySpark and use Python's control flow system to determine when to run the final query. python code

vibha2119

Also to add for option C is: the requirement says: data analysts wants to run the sql program every day, but only the final query to run on sundays. So the option c violates the requirements

SerGreyOption: B

Correct answer is B

VijayKulaOption: B

B is correct

KalavathiPOption: B

B is correct ans

d_b47Option: B

B is correct.

mehroosaliOption: B

B is correct

[Removed]Option: B

B is correct

XiltroXOption: B

B is the correct answer

mimzzz

i think the answer is correct

kniveszOption: B

Respuesta Correcta es B