AWS Certified Security – Specialty — Question 55

In response to the past DDoS attack experiences, a Security Engineer has set up an Amazon CloudFront distribution for an Amazon S3 bucket. There is concern that some users may bypass the CloudFront distribution and access the S3 bucket directly.
What must be done to prevent users from accessing the S3 objects directly by using URLs?

Answer options

Correct answer: B

Explanation

The correct answer is B because setting up a CloudFront origin access identity (OAI) ensures that only CloudFront can access the S3 bucket, thus preventing direct access by users. Option A is incorrect as it would restrict access to the bucket owner but not secure it against other users. Option C does not address the CloudFront distribution directly accessing the S3 bucket, while Option D does not provide a security mechanism to prevent direct access.