Medium1 markMultiple Choice
Subtask 2.3: Compute SystemsServerlessCloud RunPerformance

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?

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