Walmart Interview Question

How to update/insert the data into DB using spark? How to optimize the spark Job? Tell about your current project?