A developer has code stored in an Amazon S3 bucket. The code must be deployed as an AWS Lambda function across multiple accounts in the same Region as the S3 bucket. The Lambda function will be deployed using an AWS CloudFormation template that is run for each account. What is the MOST secure approach to allow access to the Lambda code in the S3 bucket?
A) Grant the CloudFormation execution role S3 list and get permissions. Add a bucket policy to Amazon S3 with the Principal of "AWS": [account numbers].
B) Grant the CloudFormation execution role S3 get permissions. Add a bucket policy to Amazon S3 with the Principal of "*".
C) Use a service-based link to grant the Lambda function S3 list and get permissions by explicitly adding the S3 bucket's account number in the resource.
D) Use a service-based link to grant the Lambda function S3 get permissions and add a Resource of "*" to allow access to the S3 bucket.
Correct Answer:
Verified
Q459: A company requires all data that is
Q460: A developer is writing a web application
Q461: An application that is deployed to Amazon
Q462: A company's new mobile app uses Amazon
Q463: A company is using AWS CloudFormation templates
Q465: A developer must modify an Alexa skill
Q466: A developer is changing the configuration for
Q467: A developer is building an application using
Q468: A gaming company is developing a mobile
Q469: A developer has written a multi-threaded application
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents