exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 95 discussion

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

You have an application that makes HTTP requests to Cloud Storage. Occasionally the requests fail with HTTP status codes of 5xx and 429.
How should you handle these types of errors?

  • A. Use gRPC instead of HTTP for better performance.
  • B. Implement retry logic using a truncated exponential backoff strategy.
  • C. Make sure the Cloud Storage bucket is multi-regional for geo-redundancy.
  • D. Monitor https://status.cloud.google.com/feed.atom and only make requests if Cloud Storage is not reporting an incident.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
bigob4ek
Highly Voted 3 years, 11 months ago
Answer is B You should use exponential backoff to retry your requests when receiving errors with 5xx or 429 response codes from Cloud Storage. https://cloud.google.com/storage/docs/request-rate
upvoted 43 times
nitinz
2 years, 7 months ago
It is B
upvoted 1 times
...
AzureDP900
1 year ago
I agree with you, B should be right
upvoted 1 times
...
...
Sbgani
Highly Voted 1 year, 1 month ago
HTTP 408, 429, and 5xx response codes. Exponential backoff algorithm For requests that meet both the response and idempotency criteria, you should generally use truncated exponential backoff. Truncated exponential backoff is a standard error handling strategy for network applications in which a client periodically retries a failed request with increasing delays between requests. An exponential backoff algorithm retries requests exponentially, increasing the waiting time between retries up to a maximum backoff time. See the following workflow example to learn how exponential backoff works: You make a request to Cloud Storage. If the request fails, wait 1 + random_number_milliseconds seconds and retry the request. If the request fails, wait 2 + random_number_milliseconds seconds and retry the request. If the request fails, wait 4 + random_number_milliseconds seconds and retry the request. And so on, up to a maximum_backoff time. Continue waiting and retrying up to a maximum amount of time (deadline), but do not increase the maximum_backoff wait period between retries
upvoted 13 times
...
JonathanSJ
Most Recent 3 months, 4 weeks ago
Selected Answer: B
I will go for B.
upvoted 1 times
...
omermahgoub
10 months, 1 week ago
. Implement retry logic using a truncated exponential backoff strategy. HTTP status codes of 5xx and 429 typically indicate that there is a temporary issue with the service or that the rate of requests is too high. To handle these types of errors, it is generally recommended to implement retry logic in your application using a truncated exponential backoff strategy. Truncated exponential backoff involves retrying the request after an initial delay, and then increasing the delay exponentially for each subsequent retry up to a maximum delay. This approach helps to reduce the number of failed requests and can improve the reliability of your application.
upvoted 4 times
omermahgoub
10 months, 1 week ago
Option A, using gRPC instead of HTTP for better performance, is not directly related to handling HTTP status codes of 5xx and 429. gRPC is a high-performance RPC framework that can be used in place of HTTP, but it is not a solution for handling errors. Option C, making sure the Cloud Storage bucket is multi-regional for geo-redundancy, may help improve the reliability of the service, but it is not a solution for handling errors. Option D, monitoring https://status.cloud.google.com/feed.atom and only making requests if Cloud Storage is not reporting an incident, is not a practical solution for handling errors. This approach would require constantly monitoring the status page and could result in significant delays in processing requests. Instead, it is generally recommended to implement retry logic in your application to handle errors.
upvoted 2 times
...
...
megumin
11 months, 3 weeks ago
Selected Answer: B
B is ok
upvoted 1 times
...
Sbgani
1 year, 1 month ago
Selected Answer: B
https://cloud.google.com/storage/docs/retry-strategy
upvoted 2 times
...
DrishaS4
1 year, 2 months ago
Selected Answer: B
2xx – successful requests; 4xx, 5xx – failed requests; 3xx – requests that require redirect. https://cloud.google.com/storage/docs/json_api/v1/status-codes
upvoted 2 times
...
haroldbenites
1 year, 10 months ago
Go for B
upvoted 2 times
...
vincy2202
1 year, 11 months ago
B is the correct answer
upvoted 2 times
...
nqthien041292
1 year, 11 months ago
Selected Answer: B
Vote B
upvoted 2 times
...
joe2211
1 year, 11 months ago
Selected Answer: B
vote B
upvoted 1 times
...
MaxNRG
1 year, 12 months ago
B – Implement retry logic using a truncated exponential backoff strategy. Per HTTP status and error codes for JSON the status codes are: 2xx – successful requests; 4xx, 5xx – failed requests; 3xx – requests that require redirect. https://cloud.google.com/storage/docs/json_api/v1/status-codes 429 – Too many requests: your app tries to use more that its limit, additional requests will fail. Decrease your client’s requests and/or use truncated exponential backoff (used for all requests with 5xx and 429 errors). https://cloud.google.com/storage/docs/retry-strategy
upvoted 2 times
...
victory108
2 years, 5 months ago
B. Use Deployment Manager to automate service provisioning. Use Stackdriver to monitor and debug your tests.
upvoted 2 times
victory108
2 years, 5 months ago
This B. Implement retry logic using a truncated exponential backoff strategy.
upvoted 1 times
...
...
un
2 years, 5 months ago
Answer is B. Link provided by bigob4ek has details
upvoted 1 times
...
Ausias18
2 years, 6 months ago
Answer is B
upvoted 1 times
...
CloudGenious
2 years, 8 months ago
As per google, if you run into any issue as increase latency or erroe rate ,pause your ramp up this give cloudstorage more time to scale your bucket . Best is backoff when 5xx ,429,408 response code
upvoted 2 times
...
bnlcnd
2 years, 9 months ago
https://cloud.google.com/storage/docs/exponential-backoff - B
upvoted 2 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