An IoT energy company is launching a smart grid monitoring platform to ingest and analyze electricity consumption data from over million smart meters. During extreme weather events, the platform experiences sudden, massive surges in telemetry queries as utility providers run diagnostic reports. Read traffic is expected to spike from queries per second (QPS) to over QPS within less than minutes. The backend application runs on Amazon ECS on AWS Fargate behind an Application Load Balancer (ALB), accessing data stored in an Amazon Aurora PostgreSQL database cluster. Which two actions should a solutions architect recommend to optimize the performance and scalability of the architecture to handle these traffic spikes? (Select TWO.)
- Contact AWS Support to pre-warm the Application Load Balancer (ALB) with the expected traffic profile and ramp-up rate.Answer
- Configure Amazon Aurora Auto Scaling to dynamically scale reader instances based on CPU utilization, and configure the application to utilize the Aurora reader endpoint for read-only reporting queries.Answer
- CRely on standard ALB scaling and configure aggressive step-scaling policies for the ECS tasks to handle the sudden flash traffic.
- DConfigure Amazon RDS Multi-AZ replication and route reporting read queries to the standby database instance to scale read throughput during peak spikes.
- EDeploy an Amazon ElastiCache for Memcached cluster with multi-AZ replication enabled to cache database query results and handle the read traffic spikes.
Answer
To optimize performance and scalability for flash traffic, the solutions architect must contact AWS Support to pre-warm the Application Load Balancer, and configure Amazon Aurora Auto Scaling to scale reader replicas while using the reader endpoint for reporting queries.
Pre-warming the ALB ensures that the load balancer has enough capacity already provisioned to absorb the -fold traffic spike without dropping connections. Scaling the database tier horizontally using Aurora Auto Scaling and routing the read-only reporting queries to the reader endpoint offloads CPU utilization from the primary instance and allows the read capacity to dynamically adjust to the spike.
Step-by-Step Solution
Key Concept
Handling massive, instantaneous traffic spikes requires pre-warming the load balancing layer and utilizing horizontal read scaling with Aurora reader endpoints and auto-scaling replicas.