Topic 1 Question 212
You are running a web application on Cloud Run for a few hundred users. Some of your users complain that the initial web page of the application takes much longer to load than the following pages. You want to follow Google’s recommendations to mitigate the issue. What should you do?
Set the minimum number of instances for your Cloud Run service to 3.
Set the concurrency number to 1 for your Cloud Run service.
Set the maximum number of instances for your Cloud Run service to 100.
Update your web application to use the protocol HTTP/2 instead of HTTP/1.1.
ユーザの投票
コメント(11)
- 正解だと思う選択肢: A
This is a typical cold start problem. Cold starts happen when a serverless platform like Cloud Run needs to start a new instance to handle a request because no suitable instances are available. This startup time can cause a delay, which is noticeable to users, especially on the first page load.
👍 3ovokpus2023/10/18 - 正解だと思う選択肢: D
https://www.cloudflare.com/learning/performance/http2-vs-http1.1/
I'm going with D too. B wouldn't help: https://cloud.google.com/run/docs/about-concurrency#concurrency-1 C wouldn't help - setting a max won't increase speed ever. A would not necessarily help - there's no indication that the initial page is taking much longer just because there are too few instances. However, D would improve how things load, as per the first link I posted.
👍 2geeroylenkins2023/07/20 - 正解だと思う選択肢: A
I chose A too. The question should be related to GCP products and how can you best configure them. I shouldn't be forced to change my app to use HTTP/2
👍 2qannik2023/08/05
シャッフルモード