
Answer-first summary for fast verification
Answer: Modify the App Engine configuration to have additional idle instances.
The issue involves persistent high latency in an App Engine application after a traffic spike, affecting both CloudSQL and Cloud Storage requests, despite normal load levels and no errors. This suggests that the bottleneck is likely at the application layer, not the storage services. During the spike, App Engine may have scaled up instances to handle increased traffic, but the latency persisted because new instances experienced cold starts (slow initialization), leading to delayed request handling. Even after traffic normalized, the application might have retained scaled instances that were inefficient or overloaded, causing ongoing latency. The goal is to prevent latency during an upcoming spike. - Option A (Upgrade GCS buckets to Multi-Regional): This improves availability and reduces latency for Cloud Storage by distributing data across regions, but it doesn't address latency in CloudSQL or the App Engine application layer. Since latency affects both services equally and no regional issues are indicated, this is insufficient. - Option B (Enable high availability on CloudSQL instances): This adds a standby instance for failover, enhancing reliability, but it doesn't reduce latency or address App Engine scaling issues. High availability could introduce minor overhead and doesn't resolve the core problem of application-level performance degradation during traffic spikes. - Option C (Move to Compute Engine): While Compute Engine offers more control over resources, it would require significant re-architecture, increase operational overhead, and might not inherently solve latency. App Engine's auto-scaling is designed for such web applications, and moving doesn't directly fix the cold start or instance management issues observed. - Option D (Modify App Engine for additional idle instances): This is the best solution. By configuring more idle instances, App Engine pre-warms instances, reducing cold start latency during traffic spikes. This ensures instances are ready to handle requests immediately, preventing the scaling delays that caused persistent high latency. It directly addresses the root cause and is a scalable, cost-effective adjustment for expected future traffic. Thus, modifying the App Engine configuration to have additional idle instances is the recommended action to mitigate latency in upcoming spikes.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You manage a web application running on App Engine that utilizes Cloud SQL and Cloud Storage for data storage. Following a brief traffic surge, you observe significant latency across all user requests, elevated CPU usage, and an increased number of application processes—despite traffic returning to normal levels. Initial analysis shows:
With another traffic spike anticipated soon, how would you ensure users avoid latency issues?
A
Upgrade the GCS buckets to Multi-Regional.
B
Enable high availability on the CloudSQL instances.
C
Move the application from App Engine to Compute Engine.
D
Modify the App Engine configuration to have additional idle instances.