AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 379

A company is using Amazon S3 buckets to store important documents. The company discovers that some S3 buckets are not encrypted. Currently, the company’s IAM users can create new S3 buckets without encryption. The company is implementing a new requirement that all S3 buckets must be encrypted.

A DevOps engineer must implement a solution to ensure that server-side encryption is enabled on all existing S3 buckets and all new S3 buckets. The encryption must be enabled on new S3 buckets as soon as the S3 buckets are created. The default encryption type must be 256-bit Advanced Encryption Standard (AES-256).

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Option B is correct because the AWS Config managed rule 's3-bucket-server-side-encryption-enabled' can evaluate both existing and newly created S3 buckets for compliance, and using the 'AWS-EnableS3BucketEncryption' Systems Manager Automation runbook as a remediation action automatically applies AES-256 encryption to non-compliant buckets. Options A and C are incorrect because they rely on custom Lambda functions and scheduled/event-based rules that are more complex to maintain than native AWS Config rules and do not natively handle both existing and new buckets easily without custom code. Option D is incorrect because it only blocks future bucket creation actions and does not remediate existing unencrypted S3 buckets.