Docker and CI/CD · Senior · Question 41 of 75
What is the hard part of blue-green deployment for a stateful app?
- 1Load balancers can't switch between two environments
- ✓Correct answer: Both colors usually share one database and its schema
- 3Blue and green must run in different cloud regions
Explanation
The switch is instant for code, not for data. Schema changes must work with both versions, and data written by green must still make sense if you switch back to blue.