exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 278 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 278
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RuchiMishra
Highly Voted 7 months, 3 weeks ago
Selected Answer: A
Here's why A is the most effective solution to mitigate API quota errors during traffic spikes: Cold Starts and API Calls: Cloud Run services scale to zero when not in use. When a new request arrives, a new instance is spun up, leading to a cold start. During this cold start, multiple API calls might be made to initialize the application and connect to the Cloud SQL database. If there's a sudden spike in traffic, a large number of cold starts can occur simultaneously, exceeding the Cloud SQL API quota. Minimum Instances: By setting a minimum number of Cloud Run instances, you can ensure that a few instances are always running, even during periods of low traffic. This eliminates cold starts during traffic spikes and reduces the number of concurrent API calls made to Cloud SQL, helping you stay within the quota limits.
upvoted 15 times
...
flummoxed_individual
Highly Voted 7 months, 1 week ago
Selected Answer: A
There has been a previous question relating to this issue which is caused by Cold Starts (RuchiMishra explains this). Solving the issue would be by configuring a minimum number of instances always running
upvoted 5 times
...
Esteban08
Most Recent 5 days, 2 hours ago
Selected Answer: D
Cloud Run allows you to configure a concurrency setting (using the --concurrency flag when deploying the service). In this context, “set a minimum concurrent requests environment variable” refers to configuring your service so that each instance handles a higher number of concurrent requests. Therefore, don't reach the API quota errors due too many cloud run instances created and doing requests at the same time.
upvoted 1 times
...
jlocke
2 weeks, 5 days ago
A minimum number of running instances helps reduce cold start delays, but it does not prevent new instances from scaling up rapidly during a traffic spike. The API quota issue occurs when too many Cloud Run instances spawn too quickly, each establishing new connections to Cloud SQL.
upvoted 1 times
...
meh_33
6 months, 3 weeks ago
Selected Answer: A
A Make sense
upvoted 2 times
...
user636
7 months, 2 weeks ago
Selected Answer: A
As explained by RuchiMishra, we need to keep a minimum number of instances always running.
upvoted 4 times
1826c27
3 weeks, 2 days ago
As explained by user636, we need read explanation of RuchiMishra to keep a minimum number of instances always running.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago