exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 17 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 17
Topic #: 1
[All Professional Cloud Developer Questions]

Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too Many
Requests" status code.
How should you handle this error?

  • A. Add a cache-control header to the objects.
  • B. Request a quota increase from the GCP Console.
  • C. Retry the request with a truncated exponential backoff strategy.
  • D. Change the storage class of the Cloud Storage bucket to Multi-regional.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
santoshchauhan
7 months, 3 weeks ago
Selected Answer: C
C. Implementing a truncated exponential backoff strategy is a recommended practice for handling 429 errors. This approach involves waiting for a short period before retrying the failed request, with the wait time increasing (up to a maximum limit) with each successive retry. This can help to alleviate the load causing the rate limit to be hit and is a well-established pattern for handling such errors in distributed systems.
upvoted 1 times
...
_Puru_
1 year, 1 month ago
Selected Answer: C
Exponential backoff formula will generate delay
upvoted 1 times
...
__rajan__
1 year, 1 month ago
Selected Answer: C
C is Correct
upvoted 1 times
...
Chuckq
1 year, 6 months ago
C is a must or your code won't do the job. But Request a quota increase will come afterwards or it will be a pain rely on exponential backoff....
upvoted 1 times
...
omermahgoub
1 year, 10 months ago
To handle HTTP 429 "Too Many Requests" errors when requesting data from Cloud Storage, you should retry the request with a truncated exponential backoff strategy (C). An HTTP 429 "Too Many Requests" status code indicates that the server is receiving too many requests and is unable to handle them all. In this situation, it is generally best to retry the request after a period of time, using a truncated exponential backoff strategy. This involves retrying the request with increasingly longer delays between each retry, up to a maximum delay. The delays can be generated using an exponential backoff formula, which increases the delay by a power of two on each retry. The retries can be truncated at a maximum delay to prevent the retries from taking too long.
upvoted 1 times
omermahgoub
1 year, 10 months ago
Adding a cache-control header to the objects (A) may not be sufficient to address the issue, as it only affects how the objects are cached by clients. Requesting a quota increase from the GCP Console (B) may help to alleviate the issue, but it may not be a sufficient solution on its own. Changing the storage class of the Cloud Storage bucket to Multi-regional (D) may also not be sufficient to address the issue, as it only affects the location of the data and does not directly address the issue of too many requests.
upvoted 1 times
...
...
tomato123
2 years, 2 months ago
Selected Answer: C
C is correct
upvoted 3 times
...
herocc
2 years, 9 months ago
C is right one, choose proper backoff strategy
upvoted 1 times
...
saurabh1805
3 years, 11 months ago
C is correct option here
upvoted 3 times
arrra
3 years, 7 months ago
https://cloud.google.com/storage/docs/json_api/v1/status-codes
upvoted 2 times
syu31svc
3 years, 4 months ago
"A Cloud Storage JSON API usage limit was exceeded. If your application tries to use more than its limit, additional requests will fail. Throttle your client's requests, and/or use truncated exponential backoff." C is correct
upvoted 3 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago