What is Apache Spark's Lazy Evaluation?

What is Apache Spark's Lazy Evaluation?

Approach: Explain delaying execution until an action is triggered.

Spark does not execute transformations immediately. Instead, it builds a Directed Acyclic Graph (DAG) of computations and only runs them when an 'action' (like count or collect) is called.

Follow-up: How does this benefit performance?

Key concepts: transformations, actions, dag.