AWS Certified Security – Specialty (SCS-C02) — Question 122

A company has AWS accounts that are in an organization in AWS Organizations. An Amazon S3 bucket in one of the accounts is publicly accessible.

A security engineer must change the configuration so that the S3 bucket is no longer publicly accessible. The security engineer also must ensure that the S3 bucket cannot be made publicly accessible in the future.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

The correct answer is C because enabling the PublicAccessBlock configuration helps prevent public access, and denying the s3:PutPublicAccessBlock action ensures that the bucket cannot be made publicly accessible in the future. Option A is incorrect as it focuses on encryption rather than public access settings. Option B does not prevent future configurations that could allow public access. Option D is incorrect because using S3 Object Lock does not address the public access issue directly.