Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How should a Lambda function be granted secure access to an S3 bucket for reading and a DynamoDB table for reading and writing, given an existing IAM policy?
A
Directly attach the IAM policy to the Lambda function.
B
Use the IAM policy to create a role, then assign this role to the Lambda function.
C
Create an IAM user, apply the policy, and input the user's credentials into the Lambda function's environment variables.
D
Utilize the AWS root account keys as encrypted environment variables within the Lambda function.