Google Cloud Professional Cloud Architect — Question 74
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?
Answer options
- A. Use gRPC instead of HTTP for better performance.
- B. Implement retry logic using a truncated exponential backoff strategy.
- C. Make sure the Cloud Storage bucket is multi-regional for geo-redundancy.
- D. Monitor https://status.cloud.google.com/feed.atom and only make requests if Cloud Storage is not reporting an incident.
Correct answer: B
Explanation
The correct answer is B because implementing retry logic with a truncated exponential backoff strategy helps to manage transient errors like 5xx and 429 by giving the service time to recover before retrying. Option A does not address error handling specifically, while option C is about redundancy and does not mitigate request failures. Option D focuses on monitoring rather than handling errors directly during the request process.