0
0
Microservicessystem_design~20 mins

Blue-green deployment in Microservices - Practice Problems & Coding Challenges

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

In a blue-green deployment setup, what is the primary purpose of having two identical environments named 'blue' and 'green'?

ATo run two different versions of the application simultaneously for load balancing
BTo allow switching traffic between two identical environments for zero downtime during deployment
CTo test new features in the blue environment while the green environment is offline
DTo have one environment for development and one for production
Attempts:
2 left
💡 Hint

Think about how deployments can avoid downtime by switching traffic.

Architecture
intermediate
2:00remaining
Traffic Routing in Blue-Green Deployment

Which component is most critical for directing user requests between the blue and green environments in a blue-green deployment?

ALoad balancer or reverse proxy
BDatabase replication service
CContinuous integration server
DApplication logging system
Attempts:
2 left
💡 Hint

Consider what directs user requests to different servers.

scaling
advanced
2:30remaining
Scaling Challenges in Blue-Green Deployment

When scaling a microservices application using blue-green deployment, which challenge is most likely to occur?

ALoad balancer failing to distribute traffic evenly across multiple instances
BIncreased database write conflicts due to simultaneous writes in both environments
CDifficulty in synchronizing session state between blue and green environments
DInability to rollback to the previous version after deployment
Attempts:
2 left
💡 Hint

Think about user sessions and state when switching environments.

tradeoff
advanced
2:30remaining
Tradeoffs of Blue-Green Deployment

What is a significant tradeoff when using blue-green deployment compared to rolling updates?

ABlue-green deployment requires double the infrastructure cost during deployment
BBlue-green deployment increases deployment time significantly
CBlue-green deployment cannot support zero downtime deployments
DBlue-green deployment makes it impossible to rollback to previous versions
Attempts:
2 left
💡 Hint

Consider resource usage when maintaining two environments.

estimation
expert
3:00remaining
Capacity Estimation for Blue-Green Deployment

You manage a microservices system with a peak load of 10,000 requests per second. Using blue-green deployment, what is the minimum infrastructure capacity you should provision to ensure smooth deployment without performance degradation?

ACapacity for 15,000 requests per second, assuming 50% traffic shift during deployment
BCapacity for 5,000 requests per second, because traffic is split evenly between environments
CCapacity for 10,000 requests per second, since only one environment handles traffic at a time
DCapacity for 20,000 requests per second, to handle both blue and green environments simultaneously
Attempts:
2 left
💡 Hint

Both environments must be fully provisioned to handle the peak load during deployment.