Google Cloud Professional Data Engineer — Question 21

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?

Answer options

Correct answer: B

Explanation

Option B is correct as it allows for a controlled and efficient retry mechanism that reduces load while waiting for the database to recover. Options A and D do not address the immediate need to retrieve data, and option C could lead to overwhelming the database if it remains down, making it less effective.