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 296 discussion

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

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?

  • A. Optimize the application code to reduce unnecessary calls to Cloud Storage APIs to prevent HTTP 429 errors.
  • B. Compress the video and images files to reduce their size, and minimize storage costs and bandwidth usage. Implement a custom throttling mechanism in the application that limits the number of concurrent API calls.
  • C. Migrate all image and video data to Firestore. Replace the Cloud Storage APIs in the application code with the new Firestore database.
  • D. Implement a retry strategy with exponential backoff for requests that encounter HTTP 429 errors.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Pime13
4 weeks, 1 day ago
Selected Answer: D
HTTP 429 means "Too Many Requests", indicating that your application is exceeding the rate limits of the Cloud Storage API. Google Cloud recommends exponential backoff as the standard method for handling rate-limiting errors like 429. Exponential backoff gradually increases the wait time between retries, reducing the chance of overwhelming the service again.
upvoted 1 times
...
GCP001
7 months, 3 weeks ago
Selected Answer: D
D. Looks much better, see doc ref - https://cloud.google.com/storage/docs/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 retry your requests with exponential backoff when: Receiving errors with 408 and 429 response codes. Receiving errors with 5xx response codes.
upvoted 1 times
...
anshad666
10 months ago
Selected Answer: D
Classic example of exponential backoff strategy
upvoted 1 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 ...