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

Exam Certified Machine Learning Professional All Questions

View all questions & answers for the Certified Machine Learning Professional exam

Exam Certified Machine Learning Professional topic 1 question 45 discussion

Actual exam question from Databricks's Certified Machine Learning Professional
Question #: 45
Topic #: 1
[All Certified Machine Learning Professional Questions]

A machine learning engineer is using the following code block as part of a batch deployment pipeline:

Which of the following changes needs to be made so this code block will work when the inference table is a stream source?

  • A. Replace "inference" with the path to the location of the Delta table
  • B. Replace schema(schema) with option("maxFilesPerTrigger", 1)
  • C. Replace spark.read with spark.readStream
  • D. Replace format("delta") with format("stream")
  • E. Replace predict with a stream-friendly prediction function
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
hugodscarvalho
10 months ago
Selected Answer: C
This change ensures that the DataFrame is being read as a streaming DataFrame from the stream source.
upvoted 2 times
...
mozuca
11 months ago
Selected Answer: C
Agree with trendy01
upvoted 1 times
...
trendy01
11 months ago
Selected Answer: C
C. Replace spark.read with spark.readStream
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 ...