Soru

Zorluk: OrtaOptimizing Compute and Storage Performance

A company operates a web-based geographic information system (GIS) on AWS. The application runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The instances query an Amazon RDS for PostgreSQL database configured with Multi-AZ for high availability.

During predictable daily peak hours, the application experiences significant performance degradation. CloudWatch metrics indicate that the RDS primary instance CPU utilization consistently exceeds 90%. Additionally, the ALB drops multiple connections due to a sudden, massive surge in user traffic at the exact start of peak hours, and the EC2 instances experience high write latency on their attached Amazon EBS gp3 volumes.

Which combination of actions should a solutions architect take to optimize the compute and storage performance of the system?

  1. Create an Amazon RDS Read Replica and configure the application to route read-only queries to the read replica endpoint. Request AWS Support to pre-warm the Application Load Balancer before the peak hours start. Increase the provisioned IOPS and throughput of the existing EBS gp3 volumes.Cevap
  2. B
    Configure the application to route read-only queries to the standby instance of the RDS Multi-AZ deployment. Request AWS Support to pre-warm the Application Load Balancer before the peak hours start. Replace the EBS gp3 volumes with gp2 volumes and increase the volume size to obtain higher baseline performance.
  3. C
    Create an Amazon RDS Read Replica and configure the application to route read-only queries to the read replica endpoint. Rely on the Application Load Balancer's automatic scaling and decrease the scaling cooldown period in the EC2 Auto Scaling group to handle the traffic surge. Migrate the EBS gp3 volumes to Provisioned IOPS SSD (io2) volumes to reduce cost while increasing throughput.
  4. D
    Configure the application to route read-only queries to the standby instance of the RDS Multi-AZ deployment. Deploy Amazon ElastiCache for Memcached to cache database queries and enable multi-AZ replication to ensure high availability of the cache. Migrate the EBS gp3 volumes to Cold HDD (sc1) volumes to improve write latency.

Cevap

Create an Amazon RDS Read Replica and route read-only queries to it, request AWS Support to pre-warm the Application Load Balancer, and increase the provisioned IOPS and throughput of the existing EBS gp3 volumes.
The correct option addresses all three performance bottlenecks accurately: an RDS Read Replica offloads read traffic to resolve the DB CPU utilization issue; ALB pre-warming prevents connection drops from sudden traffic surges; and increasing the provisioned IOPS and throughput of the gp3 volumes resolves the storage latency directly.

Adım Adım Çözüm

1
Address the database CPU utilization bottleneck by offloading read operations.
Create an Amazon RDS Read Replica and update the application connection pooling or configuration to direct read-only queries to the read replica endpoint instead of the primary instance.
This reduces the CPU load on the primary DB instance, allowing it to handle write traffic and critical operations.
2
Address the connection drops at the start of peak hours caused by rapid traffic spikes.
Request AWS Support to pre-warm the Application Load Balancer.
ALBs automatically scale, but a sudden, massive surge can exceed the rate at which the ALB scales out. Pre-warming prepares the load balancer with the required capacity beforehand.
3
Address the write latency on the EC2 storage layer.
Modify the existing EBS gp3 volumes to increase their provisioned IOPS and throughput parameters.
EBS gp3 volumes support independent scaling of performance (IOPS and throughput) up to limits without needing to scale the volume size or migrate to expensive io2 storage.

Anahtar Kavram

Identifying and resolving performance bottlenecks at the database read tier, load balancing tier, and block storage tier by using RDS Read Replicas, ALB pre-warming, and independent EBS performance scaling.
Bu soruyu puanla