You have an application that makes HTTP requests to Cloud Storage. Occasionally the requests fail with HTTP status codes of 5xx and 429. How should you handle these types of errors?
Choose an answer
Tap an option to check your answer.
Correct answer: Implement retry logic using a truncated exponential backoff strategy..
Why this is the answer
HTTP 5xx errors indicate server-side issues, and 429 errors signify too many requests. Both are often transient. Implementing retry logic with a truncated exponential backoff strategy is the recommended approach for handling such intermittent failures in cloud services like Cloud Storage. This strategy involves retrying the request after increasing delays, preventing overwhelming the service and allowing it to recover, while "truncated" ensures retries don't continue indefinitely. Using gRPC instead of HTTP is a protocol change, not an error handling strategy. Making the bucket multi-regional addresses data redundancy and availability, not transient request errors. Monitoring the status page is reactive and doesn't solve programmatic error handling within the application itself.
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