nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #74

You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read req

The correct answer is D. Limit the upload rate from your application clients so that the dormant bucket's peak request rate. If you run into any issues such as increased latency or error rates, pause your ramp-up or reduce the request rate temporarily in order to give Cloud Storage more time to scale your bucket. You should use exponential backoff to retry your requests when: Receiving errors with 5xx

Developing Scalable and Reliable Applications with Cloud Storage

Question

You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read requests per second. Your application is now receiving intermittent 5xx and 429 HTTP responses from the Cloud Storage JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API. What should you do?

Options

  • ADistribute the uploads across a large number of individual storage buckets.
  • BUse the XML API instead of the JSON API for interfacing with Cloud Storage.
  • CPass the HTTP response codes back to clients that are invoking the uploads from your
  • DLimit the upload rate from your application clients so that the dormant bucket's peak request rate

How the community answered

(49 responses)
  • A
    6% (3)
  • B
    4% (2)
  • C
    12% (6)
  • D
    78% (38)

Explanation

If you run into any issues such as increased latency or error rates, pause your ramp-up or reduce the request rate temporarily in order to give Cloud Storage more time to scale your bucket. You should use exponential backoff to retry your requests when: Receiving errors with 5xx and 429 response codes. Receiving errors with 408 response codes when performing resumable uploads. https://cloud.google.com/storage/docs/request-rate#ramp-up

Topics

#Cloud Storage#Performance Optimization#API Rate Limiting#Application Best Practices

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice