0
0
Firebasecloud~20 mins

Firebase CLI setup - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Firebase CLI Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Firebase CLI Authentication

What happens when you run firebase login for the first time?

AIt opens a browser window to authenticate your Google account and stores credentials locally.
BIt immediately creates a new Firebase project without authentication.
CIt installs Firebase CLI globally without asking for credentials.
DIt deletes all existing Firebase projects linked to your account.
Attempts:
2 left
💡 Hint

Think about how CLI tools usually authenticate users with cloud services.

Configuration
intermediate
1:30remaining
Correct Firebase Project Initialization Command

You want to initialize a Firebase project in your local folder. Which command correctly starts this process?

Afirebase init
Bfirebase start
Cfirebase create
Dfirebase deploy
Attempts:
2 left
💡 Hint

Initialization usually means setting up configuration files.

Architecture
advanced
2:30remaining
Firebase CLI and Multiple Projects

You have two Firebase projects and want to switch between them using Firebase CLI. What is the best way to manage this?

AChange the project ID manually in the <code>.firebaserc</code> file without CLI commands.
BDelete one project and recreate it with the other name.
CRun <code>firebase login</code> again for each project.
DUse <code>firebase use --add</code> to add and switch between projects locally.
Attempts:
2 left
💡 Hint

Think about how CLI tools handle multiple environments or projects.

security
advanced
3:00remaining
Firebase CLI Token Usage for CI/CD

For automated deployment in a CI/CD pipeline, which Firebase CLI authentication method is recommended?

AStore your Google password in plain text in the pipeline configuration.
BRun <code>firebase login</code> interactively on the CI server.
CUse a Firebase CI token generated by <code>firebase login:ci</code> and set it as an environment variable.
DUse the <code>firebase logout</code> command before deployment.
Attempts:
2 left
💡 Hint

Interactive login is not possible in automated pipelines.

service_behavior
expert
2:00remaining
Effect of Running 'firebase deploy' Without Initialization

What happens if you run firebase deploy in a folder that has no Firebase project initialized?

AIt automatically creates a new Firebase project and deploys default settings.
BThe CLI shows an error saying no Firebase project is configured and stops deployment.
CIt deploys to the last used Firebase project regardless of the current folder.
DIt deletes all Firebase projects linked to your account.
Attempts:
2 left
💡 Hint

Think about what is needed before deploying with Firebase CLI.