Recall & Review
beginner
What is the Firebase Admin SDK used for in Node.js?
It allows server-side Node.js applications to securely interact with Firebase services like authentication, database, and messaging.
Click to reveal answer
beginner
How do you initialize the Firebase Admin SDK in a Node.js app?
By importing the admin module and calling admin.initializeApp() with proper credentials.
Click to reveal answer
intermediate
Which Firebase service can you manage using the Admin SDK to verify user identity tokens?
Firebase Authentication service can be managed to verify ID tokens and manage users.
Click to reveal answer
intermediate
What is a common way to provide credentials to the Firebase Admin SDK in Node.js?
Using a service account JSON file downloaded from the Firebase console and passing it to admin.initializeApp().
Click to reveal answer
intermediate
Can the Firebase Admin SDK be used to send push notifications? If yes, how?
Yes, it can send push notifications using Firebase Cloud Messaging (FCM) by calling admin.messaging().send() with message details.
Click to reveal answer
What method initializes the Firebase Admin SDK in Node.js?
✗ Incorrect
The correct method to initialize the Firebase Admin SDK is admin.initializeApp().
Which file type is commonly used to provide credentials to the Admin SDK?
✗ Incorrect
A service account JSON file downloaded from Firebase console is used for credentials.
Which Firebase service can the Admin SDK NOT manage?
✗ Incorrect
Firebase Hosting is managed via Firebase CLI, not the Admin SDK.
What does admin.auth().verifyIdToken() do?
✗ Incorrect
It verifies the authenticity of a Firebase Authentication ID token.
Which method sends a push notification using the Admin SDK?
✗ Incorrect
The method admin.messaging().send() is used to send push notifications.
Explain how to securely initialize the Firebase Admin SDK in a Node.js application.
Think about how to provide credentials and start the SDK.
You got /3 concepts.
Describe how the Firebase Admin SDK helps manage user authentication in Node.js.
Focus on user identity and token verification.
You got /3 concepts.