Topic 1 Question 287
You maintain a popular mobile game deployed on Google Cloud services that include Firebase, Firestore, and Cloud Functions. Recently, the game experienced a surge in usage, and the application encountered HTTP 429 RESOURCE_EXHAUSTED errors when accessing the Firestore API. The application has now stabilized. You want to quickly fix this issue because your company has a marketing campaign next week and you expect another surge in usage. What should you do?
Request a quota increase, and modify the application code to retry the Firestore API call with fixed backoff.
Request a quota increase, and modify the application code to retry the Firestore API call with exponential backoff.
Optimize database queries to reduce read/write operations, and modify the application code to retry the Firestore API call with fixed backoff.
Optimize database queries to reduce read/write operations, and modify the application code to retry the Firestore API call with exponential backoff.
ユーザの投票
コメント(1)
- 正解だと思う選択肢: D
Optimizing database queries: Reducing the number of read/write operations can prevent resource exhaustion and help Firestore handle higher traffic more efficiently. Exponential backoff: This is a best practice when handling rate-limited or resource-exhausted errors (like HTTP 429). It gradually increases the delay between retry attempts, reducing the load on the system and giving it time to recover.
👍 1anshad6662024/10/11
シャッフルモード