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?
A. Request a quota increase, and modify the application code to retry the Firestore API call with fixed backoff.
B. Request a quota increase, and modify the application code to retry the Firestore API call with exponential backoff.
C. Optimize database queries to reduce read/write operations, and modify the application code to retry the Firestore API call with fixed backoff.
D. Optimize database queries to reduce read/write operations, and modify the application code to retry the Firestore API call with exponential backoff.
Answer
D