Given the deployment history shows versions v5, v6, and v7, with v7 currently live, what will firebase hosting:rollback do?
medium
A. Rollback to version v6
B. Rollback to version v7 again
C. Rollback to version v5
D. Delete all versions except v7
Solution
Step 1: Identify current live version
The current live version is v7, the latest deployment.
Step 2: Understand rollback behavior
Rollback reverts to the previous version before the current one, which is v6.
Final Answer:
Rollback to version v6 -> Option A
Quick Check:
Rollback = previous version v6 [OK]
Hint: Rollback always reverts to the immediate previous version [OK]
Common Mistakes:
Choosing the oldest version instead of previous
Thinking rollback redeploys current version
Assuming rollback deletes versions
4.
You ran firebase hosting:rollback but got an error saying "No previous version found." What is the most likely cause?
medium
A. Firebase CLI is outdated
B. You have no prior deployments to rollback to
C. Your internet connection is down
D. You typed the command incorrectly
Solution
Step 1: Analyze error message meaning
The error "No previous version found" means there is no earlier deployment saved to revert to.
Step 2: Consider possible causes
This usually happens if this is the first deployment or all previous versions were deleted.
Final Answer:
You have no prior deployments to rollback to -> Option B
Quick Check:
No previous version = no rollback possible [OK]
Hint: No previous version means no rollback available [OK]
Common Mistakes:
Assuming command syntax error
Blaming network issues
Ignoring deployment history
5.
You deployed version v10 but found a critical bug. You want to rollback to v9. However, v9 was deleted from the history. What is the best approach to recover your site quickly?
hard
A. Delete v10 and wait for Firebase to restore v9 automatically
B. Run firebase hosting:rollback to get v9 back
C. Redeploy a saved local copy of v9 manually
D. Contact Firebase support to restore v9
Solution
Step 1: Understand rollback limitations
Rollback only works if the previous version exists in deployment history. Since v9 is deleted, rollback cannot restore it.
Step 2: Identify recovery method
The best way is to redeploy a saved local copy of v9 manually to restore the stable version quickly.
Step 3: Evaluate other options
Options B and C won't work because rollback needs the version present, and Firebase does not auto-restore deleted versions. Contact Firebase support to restore v9 may take too long for urgent fixes.
Final Answer:
Redeploy a saved local copy of v9 manually -> Option C
Quick Check:
Deleted version = manual redeploy needed [OK]
Hint: Rollback needs version history; redeploy local copy if missing [OK]
Common Mistakes:
Expecting rollback to restore deleted versions
Waiting for automatic Firebase restore
Ignoring local backups
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.