PrepAway - Latest Free Exam Questions & Answers

Which method can be used to prevent an IP address block from accessing public objects in an S3 bucket?

Which method can be used to prevent an IP address block from accessing public objects in an S3 bucket?

PrepAway - Latest Free Exam Questions & Answers

A.
Create a bucket policy and apply it to the bucket

B.
Create a NACL and attach it to the VPC of the bucket

C.
Create an ACL and apply it to all objects in the bucket

D.
Modify the IAM policies of any users that would access the bucket

Explanation:

http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html

7 Comments on “Which method can be used to prevent an IP address block from accessing public objects in an S3 bucket?

  1. Leonardo Giallusi says:

    {
    “Version”: “2012-10-17”,
    “Id”: “S3PolicyId1”,
    “Statement”: [
    {
    “Sid”: “IPAllow”,
    “Effect”: “Allow”,
    “Principal”: “*”,
    “Action”: “s3:*”,
    “Resource”: “arn:aws:s3:::examplebucket/*”,
    “Condition”: {
    “IpAddress”: {“aws:SourceIp”: “54.240.143.0/24”},
    “NotIpAddress”: {“aws:SourceIp”: “54.240.143.188/32”}
    }
    }
    ]
    }




    1



    0

Leave a Reply

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