Soru

Zorluk: ZorPerformance and Scalability Optimization

A digital learning platform is launching a real-time examination service. During school exams, the platform experiences a sudden surge in traffic. Because exams are scheduled independently by thousands of schools throughout the day, the spikes are frequent but unpredictable at the global platform level, making manual pre-warming requests impractical. When an exam starts, submission traffic spikes from 50 requests/second50\text{ requests/second} to 35,000 requests/second35,000\text{ requests/second} within 15 seconds15\text{ seconds}. The system must process these submissions, save them to a relational database, and immediately update a real-time monitor dashboard for instructors. The dashboard queries are highly concurrent and read-heavy, requiring sub-50 ms50\text{ ms} latency. Which architectural design will meet these scalability and performance requirements while preventing dropped requests?

  1. Deploy a Network Load Balancer (NLB) to route incoming traffic to the application tasks. Store the data in an Amazon Aurora PostgreSQL DB cluster. Create an Aurora Auto Scaling policy for Aurora Replicas to scale out the read capacity of the cluster, and configure the dashboard to query the Aurora reader endpoint.Cevap
  2. B
    Deploy a Network Load Balancer (NLB) to route incoming traffic to the application tasks. Store the data in an Amazon RDS for PostgreSQL DB instance in a Multi-AZ deployment. Configure the dashboard to query the secondary standby DB instance in the secondary Availability Zone to offload read traffic from the primary instance.
  3. C
    Deploy an Application Load Balancer (ALB) to route incoming traffic to the application tasks. Store the data in an Amazon RDS for PostgreSQL DB instance in a Multi-AZ deployment. Configure the dashboard to query the secondary standby DB instance using its node-specific DNS endpoint to distribute the read-heavy queries.
  4. D
    Deploy an Application Load Balancer (ALB) to route incoming traffic to the application tasks. Store the data in an Amazon Aurora PostgreSQL DB cluster. Configure a target tracking scaling policy on the ALB to scale the database writer instance size vertically using AWS Lambda when CPU utilization exceeds 70%70\%.

Cevap

Deploy a Network Load Balancer (NLB) to route incoming traffic to the application tasks. Store the data in an Amazon Aurora PostgreSQL DB cluster. Create an Aurora Auto Scaling policy for Aurora Replicas to scale out the read capacity of the cluster, and configure the dashboard to query the Aurora reader endpoint.
The correct design uses a Network Load Balancer (NLB) to handle the sudden, extreme traffic spike without pre-warming, ensuring that no requests are dropped. It also scales the relational database tier horizontally using Amazon Aurora PostgreSQL Replicas configured with Auto Scaling. Read traffic is routed through the reader endpoint, which distributes queries across the replicas to maintain sub-50 ms50\text{ ms} latency for the dashboard.

Adım Adım Çözüm

1
Analyze the ingress requirements for the flash traffic spike.
Identify that traffic increases from 50 requests/second50\text{ requests/second} to 35,000 requests/second35,000\text{ requests/second} within 15 seconds15\text{ seconds} (a factor of 700×700\times increase). Because the spikes are unpredictable globally, manual pre-warming of an Application Load Balancer is not operationally feasible. A Network Load Balancer must be selected because it can handle sudden, volatile traffic spikes of this magnitude without pre-warming.
Choosing the correct load balancer prevents dropped requests during rapid scale-up events.
2
Evaluate the database requirements for high-concurrency reads and writes.
Identify that the system needs to support both raw submission writes and highly concurrent dashboard read queries with sub-50 ms50\text{ ms} latency.
This determines the partitioning and scaling strategy for the database layer.
3
Select the database technology and scaling mechanism.
Choose Amazon Aurora PostgreSQL with Aurora Replicas. Implement Aurora Auto Scaling to dynamically adjust the number of read replicas, and configure the dashboard application to point to the reader endpoint.
This allows read traffic to scale out horizontally to meet the performance and latency requirements under load.
4
Assess and reject invalid database read-scaling methods.
Identify that Amazon RDS Multi-AZ standby instances are passive and cannot be queried for read scaling. Any architecture directing read queries to the standby instance must be rejected.
This eliminates incorrect distractors that confuse high availability with read scalability.

Anahtar Kavram

Handling unpredictable flash traffic spikes at the load balancer tier using Network Load Balancers, and scaling read-heavy relational database workloads horizontally using Amazon Aurora Replicas with Auto Scaling rather than relying on passive RDS Multi-AZ standby instances.
Tahmini Süre:2m 30s
Bu soruyu puanla