Work is a product of force and displacement. The choice with displacement but in a different direction is not right as force not acting along the displacement will not generate work.
So the answer is force in the same direction as the displacement vector and the motion.