A company runs a critical application on an EC2 instance that uses a large EBS volume for database storage. The volume is not encrypted at rest. To meet compliance requirements, the company must enable encryption on the volume with minimal downtime. Which solution meets these requirements?
Trap 1: Take a snapshot of the volume with encryption enabled, create a new…
Incorrect. AWS does not allow creating an encrypted snapshot directly from an unencrypted volume. You must first create an unencrypted snapshot, then copy it with encryption.
Trap 2: Use the AWS Management Console to modify the volume and enable…
Incorrect. The AWS Management Console or APIs do not support in-place encryption of an existing EBS volume. Encryption must be applied at volume creation time.
Trap 3: Detach the volume, enable encryption using the ModifyVolume API,…
Incorrect. The ModifyVolume API does not support enabling encryption on an existing volume. Encryption can only be applied when creating a new volume.
- A
Take a snapshot of the volume with encryption enabled, create a new encrypted volume from the snapshot, detach the original volume, and attach the new volume
Why wrong: Incorrect. AWS does not allow creating an encrypted snapshot directly from an unencrypted volume. You must first create an unencrypted snapshot, then copy it with encryption.
- B
Use the AWS Management Console to modify the volume and enable encryption in place
Why wrong: Incorrect. The AWS Management Console or APIs do not support in-place encryption of an existing EBS volume. Encryption must be applied at volume creation time.
- C
Take a snapshot of the volume, copy the snapshot with encryption enabled, then restore to a new volume and attach it to the instance
Correct. You take an unencrypted snapshot, copy it with encryption enabled, then create a new encrypted volume from the copied snapshot. This achieves encryption with minimal downtime.
- D
Detach the volume, enable encryption using the ModifyVolume API, then reattach
Why wrong: Incorrect. The ModifyVolume API does not support enabling encryption on an existing volume. Encryption can only be applied when creating a new volume.