
Answer-first summary for fast verification
Answer: A process is lazily evaluated if its execution does not start until it is put into action by some type of trigger
Lazy evaluation in Apache Spark means that transformations on data (like map, filter) are not executed immediately. Instead, Spark waits until an action (like count, show, save) is called. The execution is triggered by these actions, which require a result. Option B correctly states that execution starts upon a trigger, which encompasses all types of actions. Option C is a subset of B, as displaying a result (e.g., using show()) is just one type of action. Options D and E are unrelated. Although there are 5 options, only B is correct, making it the most complete description.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which of the following best describes lazy evaluation in its entirety?
A
None of these options describe lazy evaluation
B
A process is lazily evaluated if its execution does not start until it is put into action by some type of trigger
C
A process is lazily evaluated if its execution does not start until it is forced to display a result to the user
D
A process is lazily evaluated if its execution does not start until it reaches a specified date and time
E
A process is lazily evaluated if its execution does not start until it is finished compiling
No comments yet.