A company runs a media transcoding application on a fleet of Amazon EC2 `c5.xlarge` instances. Each instance has an attached Amazon EBS `gp3` volume used for caching intermediate video files during processing. During peak hours, transcoding jobs take twice as long to complete. Amazon CloudWatch metrics indicate that the EC2 instances have low CPU utilization (under ) but high I/O wait times, and the EBS volumes are constantly operating at throughput. A solutions architect needs to optimize the compute and storage tiers so that each instance can sustain a target throughput of . Which of the following architectural changes will resolve the performance bottleneck and meet the throughput requirement?
- Upgrade the EC2 instances to `c5.9xlarge` to increase the dedicated EBS bandwidth, and modify the `gp3` volumes to provision of throughput.Answer
- BDeploy an Application Load Balancer (ALB) in front of the EC2 instances, request AWS Support to pre-warm the ALB to handle the traffic spikes, and modify the `gp3` volumes to provision throughput.
- CMigrate the temporary file storage to an Amazon RDS PostgreSQL Multi-AZ DB instance, and configure the application to write files to the primary instance and read them from the standby instance to distribute the load.
- DConfigure the EC2 Auto Scaling Group to launch additional `c5.xlarge` instances based on EBS disk queue depth, and set the scaling cooldown period to to ensure rapid scaling response.
Answer
Upgrade the EC2 instances to `c5.9xlarge` to increase the dedicated EBS bandwidth, and modify the `gp3` volumes to provision of throughput.
The correct answer correctly identifies that EBS performance is bound by both the storage volume configuration and the EC2 instance's dedicated EBS bandwidth. The `c5.xlarge` instance is limited to (~) of EBS throughput, meaning that configuring the storage volume alone cannot achieve the target performance. Upgrading the instance to a `c5.9xlarge` ( / ~) provides the necessary host bandwidth, and modifying the `gp3` volume to removes the volume-level throughput limit.
Step-by-Step Solution
Key Concept
EC2 instance-level EBS bandwidth limitations and gp3 throughput configuration