0
0
Firebasecloud~5 mins

Function deployment in Firebase - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is function deployment in Firebase?
Function deployment in Firebase means uploading your code to the cloud so it can run automatically when triggered.
Click to reveal answer
beginner
Which command is used to deploy Firebase functions?
The command firebase deploy --only functions uploads your cloud functions to Firebase.
Click to reveal answer
intermediate
Why should you test functions locally before deployment?
Testing locally helps catch errors early and ensures your function works as expected before using cloud resources.
Click to reveal answer
intermediate
What happens if you deploy a function with the same name as an existing one?
The existing function is replaced with the new code, updating its behavior in the cloud.
Click to reveal answer
beginner
Name one trigger type for Firebase functions.
An example trigger is an HTTP request, which runs the function when someone visits a URL.
Click to reveal answer
Which command deploys only Firebase functions?
Afirebase serve
Bfirebase init functions
Cfirebase deploy --only functions
Dfirebase login
What does deploying a function do?
ADeletes all functions
BUploads code to run in the cloud
CRuns the function locally
DCreates a new Firebase project
If you deploy a function with the same name, what happens?
AThe old function is replaced
BBoth functions run simultaneously
CDeployment fails
DA new function with a different name is created
Which is NOT a trigger for Firebase functions?
AAuthentication event
BDatabase change
CHTTP request
DLocal file save
Why test functions locally before deployment?
ATo catch errors early
BTo avoid writing code
CTo deploy faster
DTo skip billing
Explain the steps to deploy a Firebase function from writing code to running it in the cloud.
Think about coding, testing, uploading, and triggering.
You got /4 concepts.
    Describe what happens when you deploy a function with the same name as an existing one.
    Consider how updates work in cloud deployments.
    You got /3 concepts.