TENCENT interview question

How to optimize spark jobs.