A company has an AWS Lambda function that needs read access to an Amazon S3 bucket that is located in the same AWS account. Which solution will meet these requirements in the MOST secure manner?
A) Apply an S3 bucket policy that grants read access to the S3 bucket.
B) Apply an IAM role to the Lambda function. Apply an IAM policy to the role to grant read access to the S3 bucket.
C) Embed an access key and a secret key in the Lambda function's code to grant the required IAM permissions for read access to the S3 bucket.
D) Apply an IAM role to the Lambda function. Apply an IAM policy to the role to grant read access to all S3 buckets in the account.
Correct Answer:
Verified
Q574: A company wants to use a custom
Q575: A company runs multiple Amazon EC2 Linux
Q576: A company uses a legacy on-premises analytics
Q577: A company is hosting its website by
Q578: A company runs an application on a
Q580: A solutions architect is tasked with transferring
Q581: A solutions architect is deploying a distributed
Q582: A company collects temperature, humidity, and atmospheric
Q583: A company runs an application on a
Q584: A company provides an online service for
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