Question: why rdds are immutable in spark?
Answer: Spark RDD is an immutable collection of objects for the following reasons: Immutable data can be shared safely across various processes and threads. It allows you to easily recreate the RDD. You can enhance the computation process by caching RDD.