
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A developer has an application that uses an AWS Lambda function to upload files to Amazon S3 and needs the required permissions to perform the task. The developer already has an IAM user with valid IAM credentials required for Amazon S3.
What should a solutions architect do to grant the permissions?
A
Add required IAM permissions in the resource policy of the Lambda function.
B
Create a signed request using the existing IAM credentials in the Lambda function.
C
Create a new IAM user and use the existing IAM credentials in the Lambda function.
D
Create an IAM execution role with the required permissions and attach the IAM role to the Lambda function.
Explanation:
Correct Answer: D - Create an IAM execution role with the required permissions and attach the IAM role to the Lambda function.
Why this is correct:
Why other options are incorrect:
A. Add required IAM permissions in the resource policy of the Lambda function.
B. Create a signed request using the existing IAM credentials in the Lambda function.
C. Create a new IAM user and use the existing IAM credentials in the Lambda function.
Key AWS Concepts:
Implementation Steps:
AWSLambdaBasicExecutionRole policy for CloudWatch logs.AmazonS3FullAccess or a custom policy with specific S3 permissions) to the role.