How should you design the frontend to respond to a database failure?

Your weather app queries a database every 15 minutes to get the current temperature. The frontend is powered by Google App Engine and server millions of users.

How should you design the frontend to respond to a database failure?
A . Issue a command to restart the database servers.
B . Retry the query with exponential backoff, up to a cap of 15 minutes.
C . Retry the query every second until it comes back online to minimize staleness of data.
D . Reduce the query frequency to once every hour until the database comes back online.

Answer: B

Explanation:

https://cloud.google.com/sql/docs/mysql/manage-connections#backoff

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments