Answer: A, E
Option A is correct.
Options B, C is incorrect.
Option D is incorrect. You cannot log in to underlying compute instances of lambda execution. So, we cannot install any required libraries. However, you can package all the required dependent libraries along with your code.
Refer to the below documentation for more information on creating a deployment package for Lambda functions.
https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-deployment-pkg.html
Option E is correct. AWS Lambda assumes the role assigned during setup to access any AWS resources it performs any action on. Policy on the role must grant access to any such resources for Lambda to perform operations, for example, S3 gets object, Dynamodb GetItem etc.
https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro- execution-role