List of questions
Related questions
Question 263 - SCS-C02 discussion
A security engineer is troubleshooting an AWS Lambda function that is named MyLambdaFunction. The function is encountering an error when the function attempts to read the objects in an Amazon S3 bucket that is named DOC-EXAMPLE-BUCKET. The S3 bucket has the following bucket policy:
Which change should the security engineer make to the policy to ensure that the Lambda function can read the bucket objects?
A.
Remove the Condition element. Change the Principal element to the following: { ''AWS'': ''arn 'aws' ::: lambda ::: function:MyLambdaFunction'' }
B.
Change the Action element to the following: ' s3:GetObject*' ' s3:GetBucket*'
C.
Change the Resource element to 'arn:aws:s3:::DOC-EXAMPLE-BUCKET/*'.
D.
Change the Resource element to 'arn:aws:lambda:::function:MyLambdaFunction'. Change the Principal element to the following: { ''Service'': ''s3.amazonaws.com'' }
Your answer:
0 comments
Sorted by
Leave a comment first