Google Cloud Professional Cloud Developer — Question 291

Your team uses Cloud Storage for a video and image application that was recently migrated to Google Cloud. Following a viral surge, users are reporting application instability, coinciding with a 10x increase in HTTP 429 error codes from Cloud Storage APIs. You need to resolve the errors and establish a long-term solution. You want to ensure that the application remains stable if the load increases again in the future. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because implementing a retry strategy with exponential backoff allows the application to gracefully handle HTTP 429 errors by waiting longer between retries, thus complying with API rate limits. Option A, while helpful, does not directly address the issue of handling errors when they occur. Option B focuses on file size reduction and does not solve the problem of rate limiting. Option C introduces unnecessary complexity by migrating data to Firestore, which may not be a suitable solution for all use cases.