A telemetry company is designing a new vehicle tracking system. The system receives data from active devices. Due to a daily batch update from a partner API, the system experiences a sudden, instant spike in read queries on the product database, rising from queries per second to queries per second within seconds. The application runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB) and uses an Amazon RDS for PostgreSQL Multi-AZ DB instance. Which configuration should the solutions architect implement to scale the system for these sudden traffic spikes while minimizing query latency?
- ARely on the Application Load Balancer's default auto-scaling to absorb the connection spike, deploy Amazon RDS PostgreSQL Read Replicas, and configure the application to route read queries to the Read Replica endpoints.
- Submit a support case to AWS to pre-warm the Application Load Balancer prior to the daily update window, deploy Amazon RDS PostgreSQL Read Replicas, and configure the application to route read queries to the Read Replica endpoints.Cevap
- CSubmit a support case to AWS to pre-warm the Application Load Balancer prior to the daily update window, and configure the application to route read queries to the standby DB instance of the RDS Multi-AZ deployment to utilize the idle standby database capacity.
- DRely on the Application Load Balancer's default auto-scaling to absorb the connection spike, and configure the application to route read queries to the standby DB instance of the RDS Multi-AZ deployment to optimize resource utilization.
Cevap
Submit a support case to AWS to pre-warm the Application Load Balancer prior to the daily update window, deploy Amazon RDS PostgreSQL Read Replicas, and configure the application to route read queries to the Read Replica endpoints.
The correct solution addresses the limitations of both the load balancer and the database during sudden, extreme spikes. First, because the load balancer cannot scale instantly to handle a -fold spike within seconds, pre-warming by AWS Support is required. Second, standard RDS Multi-AZ deployments use a passive standby database that cannot accept connections; therefore, to scale reads, the solutions architect must deploy RDS Read Replicas and point the application's read queries to the replica endpoints.
Adım Adım Çözüm
Anahtar Kavram
Handling sudden flash traffic spikes requires pre-warming the load balancer and offloading read queries to Read Replicas, since standard RDS Multi-AZ standby instances cannot serve read traffic.
Tahmini Süre:2m 0s