Answer - B.
If the lambda function was created with the default settings, it would have the default timeout of 3 seconds, as shown below.
Since the function executes in a timespan of 300 seconds, this value needs to be changed.
Option A is incorrect since the programming language is not an issue.
Option C is incorrect since it does not mention the amount of memory required in the question.
Option D is incorrect since IAM roles should be assigned to the Lambda function.