Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ac4s65

A company has an AWS Lambda function and an Amazon S3 bucket.

A company has an AWS Lambda function and an Amazon S3 bucket. A solutions architect creates an IAM role that has S3:GetObject and S3:ListBucket permissions and configures it as the Lambda function execution role. The function must write logs to an Amazon CloudWatch Logs log group when the function is invoked.

Which solution will meet this requirement?

A.

Create a new IAM role for the S3 bucket and grant the role the logs:CreateLogGroup, logs:CreateLogStream, and logs:PutLogEvents permissions.

B.

Update the IAM policy that is attached to the existing IAM role to include the logs:CreateLogGroup, logs:CreateLogStream, and logs:PutLogEvents permissions.

C.

Create an S3 bucket policy that allows the existing IAM role to access the bucket and to write logs to the bucket.

D.

Update the existing IAM role to attach the logs:GetLogEvents IAM policy.

SAA-C03 PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now SAA-C03 pdf
Get 65% Discount on All Products, Use Coupon: "ac4s65"