Correct answer - "Put the function and the dependencies in one folder and zip them together" :
This is the standard way of packaging Lambda functions.
All the other answers are incorrect as there's only one way of deploying a Lambda function,
that's the provide the zip file with everything it'll need.