A data engineer is configuring Amazon S3 for a new data lake that will store sensitive financial records. The security team mandates that no S3 bucket in the account should ever be publicly accessible, regardless of individual bucket policies or ACLs. Which action MOST efficiently enforces this requirement at the account level?
- A. Enable Amazon Macie to automatically remediate public buckets by revoking public ACLs.
- B. Apply a Service Control Policy (SCP) that denies s3:PutBucketPolicy on all buckets.
- C. Attach a bucket policy to every S3 bucket that explicitly denies public access.
- D. Enable S3 Block Public Access settings at the AWS account level.✓ Correct
Explanation
Enabling S3 Block Public Access at the account level applies four settings (BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, RestrictPublicBuckets) to all current and future buckets in one action, providing a single authoritative control. This overrides any bucket-level policy or ACL that would otherwise grant public access. An SCP restricting s3:PutBucketPolicy would prevent creation of bucket policies but would not block public access granted via ACLs, and it does not cover existing policies. Attaching a bucket policy to every bucket is operationally burdensome and does not prevent future buckets from being created without such a policy. Amazon Macie is a data discovery and classification service; it can alert on public buckets but does not automatically remediate them.