
Ultimate access to all questions.
Your ecommerce application's backend API is facing performance issues due to a rapidly growing user base, causing excessive requests that overwhelm the Cloud SQL database, resulting in latency and timeouts. As the team managing this API, how would you optimize its performance and improve user experience?
A
Use Apigee to expose your API. Use Memorystore for Redis to cache frequently accessed data. Implement exponential backoff in the application to retry failed requests.
B
Use Apigee to expose your API. Implement rate limiting and access control policies in Apigee to control API traffic. Use Pub/Sub to queue requests to prevent database overload.
C
Use Cloud Load Balancing to expose your API. Use Cloud CDN in front of the load balancer to cache responses. Implement exponential backoff to retry failed requests.
D
Use Cloud Load Balancing to expose your API. Increase the memory for the database instances to handle more concurrent requests. Implement a custom rate-limiting mechanism in your application code to control API requests.