
Answer-first summary for fast verification
Answer: Distribute the uploads across a large number of individual storage buckets.
The correct approach to decrease the failed responses from the Cloud Storage API is to distribute the uploads across a large number of individual storage buckets. This method directly addresses the issue by not exceeding the per-bucket write limit of the JSON API, which is 1,000 operations per second. By spreading the load across multiple buckets, you avoid hitting the rate limits that cause the 429 and 5xx HTTP responses. This solution is scalable and aligns with best practices for handling high request rates in Google Cloud Storage.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are conducting load testing on your server application. Initially, you notice that a previously idle Cloud Storage bucket is now handling 2000 write requests per second and 7500 read requests per second. As demand increases, your application starts receiving sporadic 5xx and 429 HTTP responses from the Cloud Storage JSON API. Your goal is to reduce these failed responses from the Cloud Storage API.
What should you do?
A
Distribute the uploads across a large number of individual storage buckets.
B
Use the XML API instead of the JSON API for interfacing with Cloud Storage.
C
Pass the HTTP response codes back to clients that are invoking the uploads from your application.
D
Limit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.
No comments yet.