AWS Certified Security – Specialty (SCS-C02) — Question 14

A company has an AWS Lambda function that creates image thumbnails from larger images. The Lambda function needs read and write access to an Amazon S3 bucket in the same AWS account.
Which solutions will provide the Lambda function this access? (Choose two.)

Answer options

Correct answer: C, D

Explanation

The correct answers are C and D because creating an IAM role with appropriate permissions (C) and using a bucket policy that specifies the IAM role as the principal (D) are standard practices for granting access to AWS resources like S3 from Lambda functions. Options A and B involve using access keys or private keys, which are not recommended for Lambda functions due to security risks, while option E incorrectly relies on a security group, which does not apply to S3 access control.