Question: what are the spark optimization techniques?
Answer: Data Serialization. Here, an in-memory object is converted into another format that can be stored in a file or sent over a network. ... 
Caching. This is an efficient technique that is used when the data is required more often. ... 
Data Structure Tuning. ... 
Garbage collection optimization. ... 
Memory Management.