Cognizant Interview Question

what are the optimization techniques on spark and provide example