AWS Certified SysOps Administrator – Associate (legacy) — Question 428
When an instance terminates, Amazon EC2 uses the value of the _____ attribute for each attached Amazon EBS volume to determine whether to preserve or delete the volume.
Answer options
- A. InstanceInitiatedShutdownBehavior
- B. DeleteOnTermination
- C. EC2ModifyInstance
- D. DisableApiTermination
Correct answer: B
Explanation
The DeleteOnTermination attribute determines whether an Amazon EBS volume is deleted or preserved when its associated Amazon EC2 instance is terminated. Other attributes like DisableApiTermination prevent accidental instance deletion, while InstanceInitiatedShutdownBehavior defines whether the instance stops or terminates when a shutdown is initiated from the OS.