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

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.