Incident and Event Response
A CloudWatch alarm detects low free space on an EC2 data volume. The operating system already extends the file system automatically after the EBS volume grows; which solution should automatically increase the volume's provisioned size?
Show the answer
Correct answerB. Invoke Lambda through an alarm state-change event to call the EBS ModifyVolume API.
AWhy not this: Rebooting an instance does not change the provisioned size of its EBS volumes.
BWhy this is right: ModifyVolume changes EBS provisioned capacity, and an alarm state-change event can trigger the function.
CWhy not this: Adding instances does not enlarge the existing instance's data volume.
DWhy not this: Refreshing disk configuration cannot increase the underlying EBS volume's provisioned capacity.
An event-triggered Lambda function can call ModifyVolume to increase EBS capacity. Refreshing the operating system's disk configuration does not increase the provisioned size of the EBS volume.