QuestionQ272

Integrating applications with Google Cloud services

You support an application that uses the Cloud Storage API. After reviewing the logs, you find multiple HTTP 503 Service Unavailable responses from the API. Your application records the error but takes no additional action. You want to implement Google-recommended retry logic to increase success rates.

Which approach should you use?

  • A Retry the failures in batch after a set number of failures is logged.
  • B Retry each failure at a set time interval up to a maximum number of times.
  • C Retry each failure at increasing time intervals up to a maximum number of tries.
  • D Retry each failure at decreasing time intervals up to a maximum number of tries.
Explanation

HTTP 503 Service Unavailable is a transient, retryable Cloud Storage response. Google Cloud recommends exponential backoff (normally with jitter and a retry limit), which increases the wait time between successive retry attempts to avoid overwhelming a temporarily unavailable service.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!