Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Data Engineer Associate All Questions

View all questions & answers for the Certified Data Engineer Associate exam

Exam Certified Data Engineer Associate topic 1 question 18 discussion

Actual exam question from Databricks's Certified Data Engineer Associate
Question #: 18
Topic #: 1
[All Certified Data Engineer Associate Questions]

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?

  • A. They could submit a feature request with Databricks to add this functionality.
  • B. They could wrap the queries using PySpark and use Python’s control flow system to determine when to run the final query.
  • C. They could only run the entire program on Sundays.
  • D. They could automatically restrict access to the source table in the final query so that it is only accessible on Sundays.
  • E. They could redesign the data model to separate the data used in the final query into a new table.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Atnafu
Highly Voted 1 year, 4 months ago
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
upvoted 11 times
vibha2119
5 months, 3 weeks ago
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
upvoted 1 times
...
...
806e7d2
Most Recent 3 days, 1 hour ago
Selected Answer: B
Wrapping the SQL program in PySpark allows the data engineering team to leverage Python’s control flow (e.g., if statements) to determine when the final query should execute. For example: The PySpark program can check the current day using Python's datetime module. If the current day is Sunday, it will execute all queries, including the final one. If it’s not Sunday, the program will skip the final query. This approach ensures flexibility and allows precise control over which queries run on which days, meeting the data analyst's requirements.
upvoted 1 times
...
80370eb
3 months, 2 weeks ago
Selected Answer: B
B. They could wrap the queries using PySpark and use Python’s control flow system to determine when to run the final query. This approach involves using PySpark to control the execution flow based on the day of the week, allowing the final query to execute conditionally while the other queries run daily.
upvoted 1 times
...
SerGrey
10 months, 3 weeks ago
Selected Answer: B
Correct answer is B
upvoted 1 times
...
VijayKula
1 year, 1 month ago
Selected Answer: B
B is correct
upvoted 1 times
...
KalavathiP
1 year, 1 month ago
Selected Answer: B
B is correct ans
upvoted 1 times
...
d_b47
1 year, 1 month ago
Selected Answer: B
B is correct.
upvoted 1 times
...
mehroosali
1 year, 4 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
[Removed]
1 year, 5 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
XiltroX
1 year, 7 months ago
Selected Answer: B
B is the correct answer
upvoted 1 times
...
mimzzz
1 year, 7 months ago
i think the answer is correct
upvoted 1 times
...
knivesz
1 year, 7 months ago
Selected Answer: B
Respuesta Correcta es B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...