
This is a regular “data quiz”. Follow it on LinkedIn. Test your knowledge or learn something new.
Today Question:
“Lazy evaluation” in Spark means:
A) Immediate execution
B) Execution only when an action is triggered
C) Batch processing
D) Stream processing
Correct Answer: B
Explanation
Lazy evaluation in Apache Spark means that transformations on RDDs or DataFrames are not executed immediately. They are evaluated only when an action like count(), collect(), or save() is called. This allows Spark to optimize the execution plan, combine operations, and minimize data movement, improving performance. It also prevents creation of intermediate results until they are actually required.
