A company hosts a real-time financial transaction reconciliation application on AWS. The application tier runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The database tier utilizes an Amazon RDS for PostgreSQL Multi-AZ DB instance with 1 TB gp3 storage.
During scheduled end-of-day reconciliation events, the application experiences a massive, instantaneous surge in traffic. This results in HTTP 503 Service Unavailable errors from the ALB, high write latency on the database, and CPU utilization reaching 100% on the primary database instance due to concurrent read-heavy audit queries.
Which combination of actions should a Solutions Architect take to optimize the compute, database, and storage performance to handle the peak load?
- Submit a request to AWS Support to pre-warm the Application Load Balancer prior to the scheduled reconciliation events. Deploy one or more Amazon RDS for PostgreSQL Read Replicas, and update the application to route read-heavy audit queries to the read replica endpoints. Increase the provisioned IOPS and throughput of the gp3 storage on the primary DB instance to meet the peak write requirements.Cevap
- BConfigure the Application Load Balancer to auto-scale dynamically by reducing the target group registration delay. Modify the application to route the read-heavy audit queries to the standby DB instance endpoint of the Multi-AZ deployment to distribute the CPU load. Upgrade the database storage from gp3 to gp2 to leverage burstable performance.
- CDeploy an Amazon CloudFront distribution in front of the Application Load Balancer to cache dynamic transaction traffic. Deploy an Amazon ElastiCache for Memcached cluster, configure it with multi-AZ replication, and use it to store and persist the transactional log data for audit queries. Increase the database instance size to scale the write throughput.
- DModify the EC2 Auto Scaling group launch template to use a minimal Amazon Machine Image (AMI), and set the scaling cooldown period to 15 seconds to allow the compute tier to scale out rapidly during the spike. Deploy one or more Amazon RDS for PostgreSQL Read Replicas to offload audit queries. Migrate the primary database storage to an io2 volume with 64,000 provisioned IOPS to resolve write latency.