Pergunta de entrevista da empresa RBC

what is difference between client mode and cluster mode in spark