0
0
Microservicessystem_design~20 mins

Rollback strategies in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Rollback Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Blue-Green Deployment Rollback

In a blue-green deployment, if the new version (green) fails after release, what is the immediate rollback action?

ASwitch traffic back to the blue environment while fixing the green environment.
BRestart the green environment services to clear errors.
CDeploy a hotfix directly to the green environment without switching traffic.
DDelete the blue environment to force all traffic to green.
Attempts:
2 left
💡 Hint

Think about how blue-green deployment separates live and new versions.

Architecture
intermediate
2:00remaining
Rollback Strategy in Canary Releases

During a canary release, a small percentage of users get the new version. If errors are detected, what is the best rollback approach?

AIncrease traffic to the canary version to gather more error data.
BRestart the canary version services and continue routing traffic.
CDeploy a patch to the canary version without affecting traffic routing.
DStop sending traffic to the canary version and route all users to the stable version.
Attempts:
2 left
💡 Hint

Consider how canary releases limit exposure to new versions.

scaling
advanced
2:00remaining
Capacity Planning for Rollback in Microservices

You have a microservices system using blue-green deployment. To support rollback, what capacity planning approach is best?

AUse a single environment and redeploy on rollback to save resources.
BScale down the inactive environment to zero to save costs during normal operation.
CMaintain full capacity for both blue and green environments simultaneously.
DOnly keep the active environment running and recreate the other on rollback.
Attempts:
2 left
💡 Hint

Think about how quickly rollback must happen without downtime.

tradeoff
advanced
2:00remaining
Tradeoffs Between Database Rollback Strategies

Which rollback strategy for databases in microservices has the highest risk of data inconsistency?

AImplementing backward-compatible schema changes with feature toggles.
BUsing database backups to restore to a previous state.
CApplying compensating transactions to undo changes.
DRolling forward with patches to fix issues without rollback.
Attempts:
2 left
💡 Hint

Consider what happens to data created after the backup point.

estimation
expert
3:00remaining
Estimating Downtime During Rollback

A microservices system uses blue-green deployment with 10 services. Each service takes 30 seconds to switch traffic and 10 seconds to verify health. Estimate the minimum downtime during rollback if services are switched sequentially.

A400 seconds
B40000 seconds
C4000 seconds
D400000 seconds
Attempts:
2 left
💡 Hint

Calculate total time per service and multiply by number of services.