
Answer-first summary for fast verification
Answer: 1. Build a notification system on Firebase. 2. Register each user with a user ID on the Firebase Cloud Messaging server, which sends a notification when your model predicts that a user's account balance will drop below the $25 threshold.
Option D is the correct answer. Firebase Cloud Messaging (FCM) is specifically designed for sending notifications to mobile and desktop apps, making it well-suited for this use case. Creating a Pub/Sub topic for each user (as in options A and B) would be impractical due to quota limits on the number of topics that can be created. Additionally, registering each user with a user ID on the Firebase Cloud Messaging server provides a more scalable and efficient solution for notifying users when their account balance is predicted to drop below $25.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your team is developing an application for a global bank designed to be used by millions of customers worldwide. A key feature of the application is a forecasting model that predicts customers' account balances three days into the future. The results from this model will be used to notify users when their account balance is forecasted to drop below $25. Considering scalability and efficiency, how should you serve your predictions?
A
$25 threshold.B
$25 threshold.C
$25 threshold.D
$25 threshold.