AWS Certified SysOps Administrator – Associate — Question 77
A company using AWS Organizations requires that no Amazon S3 buckets in its production accounts should ever be deleted.
What is the SIMPLEST approach the SysOps administrator can take to ensure S3 buckets in those accounts can never be deleted?
Answer options
- A. Set up MFA Delete on all the S3 buckets to prevent the buckets from being deleted.
- B. Use service control policies to deny the s3:DeleteBucket action on all buckets in production accounts.
- C. Create an IAM group that has an IAM policy to deny the s3:DeleteBucket action on all buckets in production accounts.
- D. Use AWS Shield to deny the s3:DeleteBucket action on the AWS account instead of all S3 buckets.
Correct answer: B
Explanation
The correct answer is B because service control policies (SCPs) can be applied across an organization to enforce permissions centrally, making it the simplest way to deny the s3:DeleteBucket action for all production accounts. Option A, while useful for individual buckets, is not as comprehensive as SCPs. Option C relies on IAM policies which would need to be managed per account, and option D is incorrect because AWS Shield does not manage access controls for S3 actions.