PrepAway - Latest Free Exam Questions & Answers

Which of the below mentioned statements is true and should be taken in consideration by the sysadmin?

A system admin is managing buckets, objects and folders with AWS S3. Which of the below mentioned
statements is true and should be taken in consideration by the sysadmin?

PrepAway - Latest Free Exam Questions & Answers

A.
The folders support only ACL

B.
Both the object and bucket can have an Access Policy but folder cannot have policy

C.
Folders can have a policy

D.
Both the object and bucket can have ACL but folders cannot have ACL

Explanation:
A sysadmin can grant permission to the S3 objects or the buckets to any user or make objects public using the
bucket policy and user policy. Both use the JSON-based access policy language. Generally if user is defining the
ACL on the bucket, the objects in the bucket do not inherit it and vice a versa. The bucket policy can be defined
at the bucket level which allows the objects as well as the bucket to be public with a single policy applied to
that bucket. It cannot be applied at the object level. The folders are similar to objects with no content. Thus,
folders can have only ACL and cannot have a policy.

17 Comments on “Which of the below mentioned statements is true and should be taken in consideration by the sysadmin?

  1. awsguy says:

    A is *not* correct. First of all, ‘folders’ don’t exist in S3. The console API represents a folder hierarchy based on object key name. Next, the policy example in the following link will work just fine as a bucket policy if you add a Principal: https://aws.amazon.com/blogs/security/writing-iam-policies-grant-access-to-user-specific-folders-in-an-amazon-s3-bucket/

    ACLs are a legacy mechanism for administering permissions in S3, since S3 pre-dated IAM. It is *not* recommended to rely on ACLs. C is the only logical answer. If C is not the official answer, then the official answer is incorrect.




    0



    0
    1. BDA says:

      From the S3 policy walkthrough: “Step 7: Secure the Private Folder ”

      To ensure that the Private folder remains private, you can add the follow two deny statements to the group policy:

      There are indeed folders in S3.

      •Add the following statement to explicitly deny any action on resources in the Private folder (companybucket/Private/*).

      {
      “Sid”: “ExplictDenyAccessToPrivateFolderToEveryoneInTheGroup”,
      “Action”: [“s3:*”],
      “Effect”: “Deny”,
      “Resource”:[“arn:aws:s3:::companybucket/Private/*”]<—FOLDER
      }

      A is correct




      0



      0

Leave a Reply

Your email address will not be published. Required fields are marked *