nerdexam
Amazon

SCS-C02 · Question #30

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…

The correct answer is C. Create an IAM role for the Lambda function. Attach an IAM policy that allows access to the S3 D. Create an IAM role for the Lambda function. Attach a bucket policy to the S3 bucket to allow. https://repost.aws/knowledge-center/lambda-execution-role-s3-bucket

Submitted by helene.fr· Mar 6, 2026Identity and Access Management

Question

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.)

Options

  • ACreate an IAM user that has only programmatic access. Create a new access key pair. Add
  • BGenerate an Amazon EC2 key pair. Store the private key in AWS Secrets Manager. Modify the
  • CCreate an IAM role for the Lambda function. Attach an IAM policy that allows access to the S3
  • DCreate an IAM role for the Lambda function. Attach a bucket policy to the S3 bucket to allow
  • ECreate a security group. Attach the security group to the Lambda function. Attach a bucket policy

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    82% (18)
  • E
    9% (2)

Explanation

https://repost.aws/knowledge-center/lambda-execution-role-s3-bucket

Topics

#Lambda#IAM role#S3 bucket policy#least privilege

Community Discussion

No community discussion yet for this question.

Full SCS-C02 Practice