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

A company uses an organization in AWS Organizations to manage many AWS accounts. The company has enabled all features for the organization. The company uses AWS CloudFormation StackSets to deploy configurations to the accounts. The company uses AWS Config to monitor an Amazon S3 bucket.

The company needs to ensure that all object uploads to the S3 bucket use AWS Key Management Service (AWS KMS) encryption.

Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

Option D is correct because an SCP with a deny statement on the s3:putObject action combined with a condition checking that s3:x-amz-server-side-encryption is not aws:kms acts as a preventive control, blocking non-compliant uploads. Option B is incorrect because s3:createBucket governs bucket creation rather than object uploads. Options A and C are incorrect because they are detective controls that only alert after a non-compliant upload has already occurred.