@Darjuš Vasiukevič - Thanks for the question and using MS Q&A platform.
Accordingly, to the document which you shared the correct answer would be: df.write
Let's understand the difference between df.write
and df.writestream
in Azure Databricks.
df.write
and df.writestream
are two different methods used in Azure Databricks for writing data to a destination.
df.write
is used to write a batch DataFrame to a destination. It is a synchronous operation, which means that the write operation will complete before the next line of code is executed. This method is used to write data to a destination that does not require continuous updates, such as a file system or a database.
On the other hand, df.writestream
is used to write a streaming DataFrame to a destination. It is an asynchronous operation, which means that the write operation will continue to run in the background while the next line of code is executed. This method is used to write data to a destination that requires continuous updates, such as a streaming service or a real-time dashboard.
In summary, df.write
is used for batch processing, while df.writestream
is used for streaming processing.
Please note: The content posted by Udemy learning platform is not monitored and maintained by Microsoft, please do reach out to the owner of the practice test or the Udemy support: https://support.udemy.com/hc/en-us
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.