A security engineer must ensure that all EBS volumes in an account are encrypted by default. How should they achieve this?
Trap 1: Create an IAM policy that denies ec2:CreateVolume.
Denying 'ec2:CreateVolume' would completely block the ability to create new volumes, which is too restrictive for most business environments. The goal is to enforce security, not to prevent infrastructure provisioning, which is why an account-level encryption setting is preferred over a blanket denial of actions.
Trap 2: Apply a resource tag to all existing volumes.
Tags are metadata and do not provide any security enforcement functionality. While they are useful for categorization and cost allocation, they cannot be used to force encryption or prevent the creation of unencrypted volumes, making them entirely ineffective for fulfilling the security requirement for data-at-rest encryption.
Trap 3: Use AWS Trusted Advisor to delete unencrypted volumes.
Deleting resources based on an audit is highly disruptive and dangerous, as it may result in data loss for production workloads. Governance should focus on preventing the creation of insecure resources, not destroying live infrastructure, which makes this approach unsuitable for a managed, production-grade security environment.
- A
Enable 'EBS encryption' in the EC2 console settings.
This setting is the native, account-level solution to enforce encryption for all EBS volumes created within the selected region. It is the most effective preventative control because it automates compliance without requiring developers to change their API calls or resource configurations, minimizing the risk of human oversight.
- B
Create an IAM policy that denies ec2:CreateVolume.
Why wrong: Denying 'ec2:CreateVolume' would completely block the ability to create new volumes, which is too restrictive for most business environments. The goal is to enforce security, not to prevent infrastructure provisioning, which is why an account-level encryption setting is preferred over a blanket denial of actions.
- C
Apply a resource tag to all existing volumes.
Why wrong: Tags are metadata and do not provide any security enforcement functionality. While they are useful for categorization and cost allocation, they cannot be used to force encryption or prevent the creation of unencrypted volumes, making them entirely ineffective for fulfilling the security requirement for data-at-rest encryption.
- D
Use AWS Trusted Advisor to delete unencrypted volumes.
Why wrong: Deleting resources based on an audit is highly disruptive and dangerous, as it may result in data loss for production workloads. Governance should focus on preventing the creation of insecure resources, not destroying live infrastructure, which makes this approach unsuitable for a managed, production-grade security environment.