Challenge - 5 Problems
Firebase Performance Pro
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Firebase Performance Trace Start and Stop Output
What will be the output in the Firebase console after running this code snippet to start and stop a custom performance trace?
Firebase
const trace = performance.trace('custom_trace');
trace.start();
// some operations
trace.stop();Attempts:
2 left
💡 Hint
Remember that Firebase Performance traces record duration between start and stop calls.
✗ Incorrect
Starting and stopping a custom trace correctly records the time between calls and shows it in the Firebase console under custom traces.
🧠 Conceptual
intermediate1:30remaining
Understanding Firebase Performance Monitoring Data Collection
Which statement correctly describes how Firebase Performance Monitoring collects data from your app?
Attempts:
2 left
💡 Hint
Think about what Firebase SDK does after you add it to your app.
✗ Incorrect
Firebase Performance Monitoring automatically collects common traces and network requests once the SDK is initialized, without needing manual code changes.
❓ Troubleshoot
advanced2:00remaining
Diagnosing Missing Firebase Performance Data
You notice no performance traces appear in the Firebase console after deploying your app with the Performance Monitoring SDK. What is the most likely cause?
Attempts:
2 left
💡 Hint
Consider what conditions are needed for data to appear in the console.
✗ Incorrect
If the device has no network connection, performance data cannot be sent to Firebase servers, so no traces appear in the console.
🔀 Workflow
advanced2:30remaining
Configuring Custom Attributes in Firebase Performance Traces
Which sequence correctly describes how to add a custom attribute to a Firebase Performance trace in your app code?
Attempts:
2 left
💡 Hint
Attributes must be set after creating the trace but before stopping it.
✗ Incorrect
You create the trace, add attributes, then start and stop it to record the trace with custom data.
✅ Best Practice
expert3:00remaining
Optimizing Firebase Performance Monitoring for Production
Which practice is best to minimize performance monitoring overhead in a production Firebase app?
Attempts:
2 left
💡 Hint
Think about balancing data collection detail with app performance.
✗ Incorrect
Disabling automatic network collection and manually instrumenting critical requests reduces overhead and focuses monitoring on important parts.