An investment bank runs a daily risk analysis simulation on AWS. The application tier runs on a fleet of memory-optimized Amazon EC2 instances in an Auto Scaling group (ASG). Every day at 09:00 UTC, a massive batch of simulation queries is initiated, causing immediate CPU utilization spikes on both the application fleet and the database, which is hosted on Amazon RDS PostgreSQL. Additionally, during the simulation, the EC2 instances perform heavy write operations to write transient checkpoint files to attached EBS gp3 volumes, resulting in high write latency and disk queue length spikes. Which combination of architectural modifications will optimize the compute and storage performance of this platform?
- Configure a scheduled scaling action for the EC2 Auto Scaling group to scale out before 09:00 UTC. Deploy Amazon RDS PostgreSQL Read Replicas and route read queries to the read replica endpoints. Increase the provisioned IOPS and throughput of the attached gp3 volumes to accommodate checkpoint write requirements.Answer
- BConfigure a scheduled scaling action for the EC2 Auto Scaling group to scale out before 09:00 UTC. Route the read queries to the standby instance of the RDS PostgreSQL Multi-AZ deployment to offload the primary instance. Increase the provisioned IOPS and throughput of the attached gp3 volumes to accommodate checkpoint write requirements.
- CRely on dynamic target tracking scaling policies based on CPU utilization to scale out the EC2 Auto Scaling group at 09:00 UTC. Deploy an Application Load Balancer to route traffic to the EC2 instances, relying on the load balancer's automatic scaling to handle the instant load spike. Deploy Amazon RDS PostgreSQL Read Replicas and route read queries to the read replica endpoints.
- DMigrate the simulation runs to AWS Fargate to scale compute dynamically, and purchase EC2 Instance Savings Plans to optimize the compute cost of these Fargate tasks. Deploy Amazon RDS PostgreSQL Read Replicas and route read queries to the read replica endpoints.
Answer
Configure a scheduled scaling action for the EC2 Auto Scaling group to scale out before 09:00 UTC. Deploy Amazon RDS PostgreSQL Read Replicas and route read queries to the read replica endpoints. Increase the provisioned IOPS and throughput of the attached gp3 volumes to accommodate checkpoint write requirements.
The correct option addresses all three performance bottlenecks optimally. Scheduled scaling resolves the slow response of dynamic scaling before the daily 09:00 UTC simulation run. Deploying RDS Read Replicas offloads database CPU usage by distributing the read spike. Increasing provisioned IOPS and throughput on EBS gp3 volumes directly resolves storage latency bottlenecks without paying for unnecessary storage space.
Step-by-Step Solution
Key Concept
Optimizing compute and storage involves matching workloads to the correct provisioning mechanisms: scheduled scaling for predictable compute spikes, read replicas for database read distribution, and independent EBS throughput provisioning.