ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 4 - Professional Google Workspace Administrator discussion

Report
Export

Your organization recently bought 1.000 licenses for Cloud Identity Premium. The company's development team created an application in the enterprise service bus (ESB) that will read user data in the human resources information system (HRIS) and create accounts via the Google Directory REST API.

While doing the original test before production use, the team observes a 503 error coming from Google API response after a few users are created The team believes the ESB is not the cause, because it can perform 100 requests per second without any problems. What advice would you give the development team in order to avoid the issue?

A.
Use the domain-wide delegation API to avoid the limitation per account.
Answers
A.
Use the domain-wide delegation API to avoid the limitation per account.
B.
Use an exponential back-off algorithm to retry failed requests.
Answers
B.
Use an exponential back-off algorithm to retry failed requests.
C.
Switch from REST API to gRPC protocol for performance improvement
Answers
C.
Switch from REST API to gRPC protocol for performance improvement
D.
Use the batch request architecture, because it can pack 1,000 API calls in one HTTP request.
Answers
D.
Use the batch request architecture, because it can pack 1,000 API calls in one HTTP request.
Suggested answer: B

Explanation:

Understand the Error:

A 503 error indicates that the service is unavailable, often due to temporary overloading or maintenance of the server.

This can happen when API rate limits are exceeded.

Exponential Back-Off Algorithm:

This algorithm helps manage retries after a request fails, by exponentially increasing the waiting time between retries.

Start with a short delay and increase it exponentially with each subsequent retry.

Implementation:

Modify the ESB application to include the exponential back-off algorithm.

Ensure that the retries are limited to a reasonable number to avoid indefinite looping.

This approach will help mitigate the temporary overloads by spreading out the request attempts.

Google Workspace Admin Help: Handle API Errors

Google Developers: Exponential Backoff

asked 18/09/2024
Mohammad Wahid
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first