iHeartMedia Interview Question

What the difference between partitioning and bucketing? How to optimized spark job?