AWS Certified SysOps Administrator – Associate — Question 307
A company has an Amazon EC2 instance that supports a production system. The EC2 instance is backed by an Amazon Elastic Block Store (Amazon EBS) volume. The EBS volume's drive has filled to 100% capacity, which is causing the application on the EC2 instance to experience errors.
Which solution will remediate these errors in the LEAST amount of time?
Answer options
- A. Modify the EBS volume by adding additional drive space. Log on to the EC2 instance. Use the file system-specific commands to extend the file system.
- B. Create a snapshot of the existing EBS volume. When the snapshot is complete, create an EBS volume of a larger size from the snapshot in the same Availability Zone as the EC2 instance. Attach the new EBS volume to the EC2 instance. Mount the file system.
- C. Create a new EBS volume of a larger size in the same Availability Zone as the EC2 instance. Attach the EBS volume to the EC2 instance. Copy the data from the existing EBS volume to the new EBS volume.
- D. Stop the EC2 instance. Change the EC2 instance to a larger instance size that includes additional drive space. Start the EC2 instance.
Correct answer: A
Explanation
Modifying the Amazon EBS volume size directly using Elastic Volumes allows for a dynamic increase in capacity without detaching the volume or stopping the EC2 instance. After resizing the volume, running OS-specific commands instantly extends the partition to utilize the new space, minimizing downtime. Other methods involving snapshots, data migration, or instance type changes introduce significant delay and unnecessary complexity.