Capgemini Interview Question

How do you optimise using spark