Google Cloud Associate Cloud Engineer — Question 257
Your web application is hosted on Cloud Run and needs to query a Cloud SQL database. Every morning during a traffic spike, you notice API quota errors in Cloud SQL logs. The project has already reached the maximum API quota. You want to make a configuration change to mitigate the issue. What should you do?
Answer options
- A. Modify the minimum number of Cloud Run instances.
- B. Use traffic splitting.
- C. Modify the maximum number of Cloud Run instances.
- D. Set a minimum concurrent requests environment variable for the application.
Correct answer: A
Explanation
Adjusting the minimum number of Cloud Run instances can help ensure that your application scales appropriately during peak traffic times, reducing the likelihood of hitting the API quota limit. The other options do not directly address the issue of insufficient instances to handle traffic, which is the primary cause of the quota errors.