0
0
Firebasecloud~20 mins

Cost monitoring and budgets in Firebase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Firebase Cost Monitoring Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Firebase Budget Alerts

Which Firebase feature allows you to receive notifications when your project spending approaches or exceeds a set budget?

AFirebase Budget Alerts
BFirebase Performance Monitoring
CFirebase Crashlytics
DFirebase Remote Config
Attempts:
2 left
💡 Hint

Think about tools that help track and notify about costs.

💻 Command Output
intermediate
2:00remaining
Firebase CLI Budget Notification Command Output

What is the expected output when running the Firebase CLI command to list all budget alerts for a project?

Firebase
firebase billing:budgets:list --project=my-firebase-project
ANo budgets found for project my-firebase-project
B[{"name":"budget1","amount":100,"thresholdRules":[{"percent":0.5},{"percent":0.9}]}]
CError: Command not found
D[{"budgetName":"budget1","limit":100}]
Attempts:
2 left
💡 Hint

Verify if this command exists in the Firebase CLI.

Configuration
advanced
2:30remaining
Setting a Budget Alert Threshold in Firebase

Which JSON snippet correctly sets a budget alert threshold at 80% of a $200 budget in Firebase billing API?

A{"budgetAmount":200,"thresholdRules":[{"percent":0.8}]}
B{"amount":200,"thresholdRules":[{"percent":80}]}
C{"budget":200,"thresholds":[{"percent":0.8}]}
D{"budgetAmount":200,"thresholdRules":[{"thresholdPercent":0.8}]}
Attempts:
2 left
💡 Hint

Check the exact key names used in Firebase billing API for budget and threshold.

Troubleshoot
advanced
2:00remaining
Troubleshooting Missing Budget Alerts in Firebase Console

You created a budget alert in Firebase but do not see any notifications when spending exceeds the budget. What is the most likely cause?

ABilling account is not linked to the Firebase project
BBudget alert email notifications are disabled in Firebase settings
CFirebase project is in test mode
DBudget alert thresholds are set above 100%
Attempts:
2 left
💡 Hint

Check if billing is properly connected to the project.

🔀 Workflow
expert
3:00remaining
Automating Cost Monitoring with Firebase and Cloud Functions

Which workflow correctly describes how to automate sending a custom Slack notification when Firebase billing exceeds 90% of a budget?

ACreate a Firebase Realtime Database trigger > Monitor billing data changes > Send Slack message directly from database trigger
BCreate a budget alert in Firebase > Configure Pub/Sub topic for alerts > Deploy Cloud Function triggered by Pub/Sub > Cloud Function sends Slack message
CUse Firebase Hosting to serve a webhook > Poll billing API every minute > Send Slack message if threshold exceeded
DSet up Firebase Authentication > Use user login events to trigger billing checks > Send Slack message if over budget
Attempts:
2 left
💡 Hint

Think about how Firebase budget alerts integrate with Google Cloud Pub/Sub and Cloud Functions.