What is the difference between a transformation and an action in Spark?
- A Transformations are lazy and build a plan; actions trigger execution and return results
- B Actions are lazy
- C Transformations execute immediately
- D They are the same
Answer
Transformations are lazy and build a plan; actions trigger execution and return results
Laziness lets Spark optimise the whole chain before executing, which is why nothing runs until an action such as collect or count is called.





