
Answer-first summary for fast verification
Answer: Set the minimum number of instances for your Cloud Run service to 3.
The correct answer is A. This issue is a classic example of a 'cold start' problem in serverless environments like Cloud Run. Cold starts occur when the platform needs to start a new instance to handle a request because no suitable instances are available. This startup time can cause a delay, particularly noticeable during the initial page load. Setting a minimum number of instances can help mitigate this by ensuring that there are always a few instances running and ready to handle requests, thereby reducing latency.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are operating a web application on Cloud Run intended for a few hundred users. Several users have reported that the initial web page of the application has a significantly longer load time compared to the subsequent pages. To address this issue, you want to implement Google's recommended solutions. What steps should you take?
A
Set the minimum number of instances for your Cloud Run service to 3.
B
Set the concurrency number to 1 for your Cloud Run service.
C
Set the maximum number of instances for your Cloud Run service to 100.
D
Update your web application to use the protocol HTTP/2 instead of HTTP/1.1.