Multiple Choice
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
Correct Answer:
Verified
Q172: A company wants to move its on-premises
Q173: A company wants to host its web
Q174: A company is managing health records on-premises.
Q175: A company hosts its website on Amazon
Q176: A company runs an application that uses
Q178: A development team needs to host a
Q179: A company is deploying an application in
Q180: A company owns an asynchronous API that
Q181: A company has an application that uses
Q182: A company has an on-premises data center