0
0
Firebasecloud~20 mins

Rollback deployments in Firebase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Firebase Rollback Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Firebase Hosting Rollback Behavior

You deployed a new version of your Firebase Hosting site but noticed a critical bug. You want to rollback to the previous version quickly.

What happens when you run firebase hosting:rollback?

AIt instantly switches the live site to the previous deployed version without downtime.
BIt creates a new deployment identical to the previous version but does not switch traffic automatically.
CIt deletes the current version and redeploys the previous version, causing downtime.
DIt archives all versions but requires manual DNS changes to rollback.
Attempts:
2 left
💡 Hint

Think about how Firebase Hosting manages versions and traffic switching.

Configuration
intermediate
2:00remaining
Rollback Command Usage

You want to rollback your Firebase Hosting deployment to the version deployed 3 deployments ago.

Which command correctly rolls back to that specific version?

Afirebase hosting:rollback --version-name 3
Bfirebase hosting:rollback --to 3
Cfirebase hosting:rollback 3
Dfirebase hosting:rollback --target 3
Attempts:
2 left
💡 Hint

Check the official Firebase CLI rollback command syntax.

Architecture
advanced
2:00remaining
Rollback Impact on CDN Cache

After rolling back a Firebase Hosting deployment, what happens to the cached content on the CDN edge servers?

AThe rollback triggers a manual cache purge request that you must run separately.
BThe CDN cache continues serving the old content until it expires naturally.
CThe CDN cache is disabled temporarily during rollback to prevent stale content.
DThe CDN cache is automatically invalidated and refreshed with the rollback version content.
Attempts:
2 left
💡 Hint

Consider how Firebase Hosting manages content freshness after deployment changes.

security
advanced
2:00remaining
Rollback and Security Rules Consistency

You rolled back your Firebase Hosting deployment to a previous version. What happens to the Firebase Security Rules associated with the hosting content?

ASecurity Rules remain as they were in the current version and do not rollback automatically.
BSecurity Rules rollback automatically to the version associated with the hosting rollback.
CSecurity Rules are disabled temporarily until manually re-enabled after rollback.
DSecurity Rules are deleted and must be redeployed manually after rollback.
Attempts:
2 left
💡 Hint

Think about how Firebase separates hosting content from security rules deployment.

Best Practice
expert
3:00remaining
Rollback Strategy for Zero Downtime

You want to implement a rollback strategy for Firebase Hosting that guarantees zero downtime and quick recovery from faulty deployments.

Which approach best achieves this?

ADeploy a new version with fixes and manually update DNS records to point to it.
BUse Firebase Hosting's built-in rollback command to instantly switch versions without downtime.
CDelete the faulty deployment and redeploy the previous version from local files.
DPause all traffic to the site, rollback, then resume traffic after verification.
Attempts:
2 left
💡 Hint

Consider the features Firebase Hosting provides for deployment management.