Globant Interview Question

How would you optimize a query with a huge table and a small table in Spark?