exam questions

Exam Certified Data Engineer Professional All Questions

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

Exam Certified Data Engineer Professional topic 1 question 187 discussion

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

The data science team has created and logged a production model using MLflow. The following code correctly imports and applies the production model to output the predictions as a new DataFrame named preds with the schema "customer_id LONG, predictions DOUBLE, date DATE".



The data science team would like predictions saved to a Delta Lake table with the ability to compare all predictions across time. Churn predictions will be made at most once per day.

Which code block accomplishes this task while minimizing potential compute costs?

  • A. preds.write.mode("append").saveAsTable("churn_preds")
  • B. preds.write.format("delta").save("/preds/churn_preds")
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
_lene_
3 weeks, 1 day ago
Selected Answer: A
batch+append
upvoted 1 times
...
mouthwash
4 weeks, 1 day ago
Selected Answer: A
A is the right answer.
upvoted 1 times
...
temple1305
2 months ago
Selected Answer: A
You need: - Batch operation since it is at most once a day - Append, since you need to keep track of past predictions A is the correct answer. You don't need to specify "format" when you use saveAsTable.
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago