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
Latest Professional Data Engineer Practice Questions with 160 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments