0
0
Firebasecloud~5 mins

Firebase Admin SDK (Node.js) - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Aadmin.start()
Bfirebase.initialize()
Cfirebase.adminInit()
Dadmin.initializeApp()
Which file type is commonly used to provide credentials to the Admin SDK?
A.env file
BPlain text file
CService account JSON file
DYAML config file
Which Firebase service can the Admin SDK NOT manage?
AFirebase Hosting
BRealtime Database
CCloud Messaging
DAuthentication
What does admin.auth().verifyIdToken() do?
ACreates a new user
BVerifies a user's ID token
CDeletes a user
DSends a notification
Which method sends a push notification using the Admin SDK?
Aadmin.messaging().send()
Badmin.push().notify()
Cadmin.notify().send()
Dadmin.message().push()
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.