Google Professional Cloud DevOps Engineer Question 105
Select 3Google Cloud PlatformYour team is designing a new application on Google Cloud that is expected to handle a rapidly growing user base. The application will use Compute Engine for processing and Cloud Storage for data storage. During initial testing, you notice that the team is frequently hitting API rate limits and exceeding the default quotas for both Compute Engine and Cloud Storage. What steps should you take to ensure your application scales effectively while avoiding disruptions caused by quota limitations?
- A
Monitor resource usage and set up alerts to notify you before quotas are exhausted.
- B
Request an increase in quotas for Compute Engine and Cloud Storage resources based on projected application growth.
- C
Redesign the application to use fewer Compute Engine instances to avoid hitting quota limits.
- D
Implement retries with exponential backoff in the application to handle API rate limit errors gracefully.
- E
Contact Google Cloud support to request unlimited quotas for all resources.
Show answer and explanation
Correct answers: A, B, D
Explanation
Capacity planning is crucial for ensuring that your application scales effectively in the cloud. Monitoring and alerting help you stay aware of quota usage, while requesting quota increases ensures you have enough resources to meet demand. Additionally, implementing retries with exponential backoff helps manage API rate limits gracefully. Together, these strategies ensure that your application can handle growth without disruption.
- A. Correct.
Monitoring resource usage and setting up alerts helps you detect when you are close to exhausting quotas, allowing you to take proactive measures.
- B. Correct.
Requesting a quota increase ensures that you have sufficient capacity to handle the expected growth of your application.
- C. Incorrect.
Redesigning the application to use fewer instances might reduce resource usage, but it is not always feasible or aligned with the application's scaling requirements.
- D. Correct.
Retries with exponential backoff ensure that the application can handle temporary API rate limit errors without failing, improving resilience.
- E. Incorrect.
Requesting unlimited quotas is not a valid option in Google Cloud, as all resources have upper limits even after quota increases.