Your application logs show HTTP 503 errors from the Cloud Storage API. Implement Google-recommended retry logic to improve success rates. Which approach should you take?
Choose an answer
Tap an option to check your answer.
Correct answer: Retry each failure at increasing time intervals up to a maximum number of tries..
Why this is the answer
The Google-recommended approach for handling transient errors like HTTP 503s from Cloud Storage is to implement exponential backoff with jitter. This means retrying each failed request at increasing time intervals, up to a maximum number of tries. This strategy prevents overwhelming the service with repeated requests during a temporary outage or high load, allowing the service time to recover. Adding jitter (randomness) to the backoff intervals further helps by preventing all retrying clients from hitting the service simultaneously, which could create a thundering herd problem. Retrying in batch or at fixed intervals is less effective as it doesn't adapt to the service's recovery time and could exacerbate issues. Decreasing intervals would rapidly overwhelm the service.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed