Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Explain the concept of lazy evaluation in Apache Spark.
Answer: Lazy evaluation is a strategy in which the execution of operations is delayed until the result is actually needed. This helps in optimizing the execution plan.

Example:

val filteredRDD = inputRDD.filter(x => x > 0)
filteredRDD.count()
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook