When an EC2 instance that is backed by an S3-based AMI Is terminated, what happens to the data on me root volume?
Data is automatically saved as an E8S volume.
Data is automatically saved as an ESS snapshot.
Data is automatically deleted.
Data is unavailable until the instance is restarted.
Explanations:
EC2 instances backed by an S3-based AMI do not automatically save data as an E8S volume. The S3-based AMI refers to the AMI storage type, not a volume format.
Data is not automatically saved as an ESS snapshot upon termination. AMIs (and EC2 volumes) are not directly associated with ESS snapshots.
By default, when an EC2 instance is terminated, the data on the root volume is deleted unless the volume is specifically configured to persist (e.g., by usingdeleteOnTerminationsettings).
Data is not just unavailable until the instance is restarted. If the instance is terminated, the root volume data is lost unless specified otherwise.