ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 251 - SCS-C01 discussion

Report
Export

You are deivising a policy to allow users to have the ability to access objects in a bucket called appbucket. You define the below custom bucket policy

But when you try to apply the policy you get the error "Action does not apply to any resource(s) in statement." What should be done to rectify the error Please select:

A.
Change the IAM permissions by applying PutBucketPolicy permissions.
Answers
A.
Change the IAM permissions by applying PutBucketPolicy permissions.
B.
Verify that the policy has the same name as the bucket name. If not. make it the same.
Answers
B.
Verify that the policy has the same name as the bucket name. If not. make it the same.
C.
Change the Resource section to "arn:aws:s3:::appbucket/*'.
Answers
C.
Change the Resource section to "arn:aws:s3:::appbucket/*'.
D.
Create the bucket "appbucket" and then apply the policy.
Answers
D.
Create the bucket "appbucket" and then apply the policy.
Suggested answer: C

Explanation:

When you define access to objects in a bucket you need to ensure that you specify to which objects in the bucket access needs to be given to. In this case, the * can be used to assign the permission to all objects in the bucket Option A is invalid because the right permissions are already provided as per the question requirement Option B is invalid because it is not necessary that the policy has the same name as the bucket

Option D is invalid because this should be the default flow for applying the policy For more information on bucket policies please visit the below URL:

https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.htmllThe correct answer is: Change the Resource section to "arn:aws:s3:::appbucket/" Submit yourFeedback/Queries to our Experts

asked 16/09/2024
Vasyl Basaraba
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first