Medium1 markMultiple Choice
GCP PCA · Question 25 · Compute Systems
You are deploying a web application to Cloud Run. The application occasionally experiences sudden, massive spikes in traffic. During these spikes, the application takes 10 seconds to start up, causing timeout errors for users. How can you mitigate these cold start latencies?
You are deploying a web application to Cloud Run. The application occasionally experiences sudden, massive spikes in traffic. During these spikes, the application takes 10 seconds to start up, causing timeout errors for users. How can you mitigate these cold start latencies?
Answer options:
A.
Increase the maximum instances (max-instances) limit.
B.
Configure minimum instances (min-instances) for the Cloud Run service.
C.
Switch the application to Compute Engine.
D.
Enable Cloud CDN to cache the dynamic API responses.
How to approach this question
Identify the Cloud Run feature designed to keep containers warm.
Full Answer
B.Configure minimum instances (min-instances) for the Cloud Run service.✓ Correct
Configure minimum instances (min-instances) for the Cloud Run service.
Cloud Run scales to zero by default to save costs. When a request comes in, a new container must spin up (a 'cold start'). By configuring `min-instances`, you force Cloud Run to keep a baseline number of containers warm, drastically reducing latency during sudden traffic spikes.
Common mistakes
Increasing max-instances (A), which only allows more containers to be created, but they will still suffer cold starts.
Practice the full GCP Professional Cloud Architect Practice Exam 5
50 questions · hints · full answers · grading
More questions from this exam
Q01CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...HardQ02CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...MediumQ03CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...MediumQ04CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...MediumQ05CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...Easy
Expert