Challenge - 5 Problems
Blue-Green Deployment Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Architecture
intermediate2:00remaining
Identify the main benefit of the blue-green deployment pattern
Which of the following best describes the primary advantage of using the blue-green deployment pattern in cloud infrastructure?
Attempts:
2 left
💡 Hint
Think about how traffic is managed during updates.
✗ Incorrect
The blue-green deployment pattern uses two identical environments (blue and green). Traffic switches from one to the other to deploy updates without downtime.
❓ Configuration
intermediate2:00remaining
Terraform snippet for blue-green environment switching
Given two identical AWS ECS services named blue and green, which Terraform snippet correctly switches the production traffic to the green service using an Application Load Balancer listener rule?
Terraform
resource "aws_lb_listener_rule" "green_traffic" { listener_arn = aws_lb_listener.front_end.arn priority = 100 action { type = "forward" target_group_arn = aws_lb_target_group.green.arn } condition { path_pattern { values = ["/app/*"] } } }
Attempts:
2 left
💡 Hint
Higher priority rules take precedence in ALB listener rules.
✗ Incorrect
To switch traffic, the listener rule forwarding to the green target group must have a higher priority than the blue's rule so it takes precedence.
❓ security
advanced2:00remaining
Security considerations in blue-green deployments
Which security risk is most relevant when running both blue and green environments simultaneously in a blue-green deployment?
Attempts:
2 left
💡 Hint
Think about exposure when two environments are active.
✗ Incorrect
Running two environments simultaneously means both are accessible, increasing the potential attack surface if not properly secured.
✅ Best Practice
advanced2:00remaining
Best practice for database handling in blue-green deployments
In a blue-green deployment, what is the recommended approach to handle database schema changes to avoid downtime?
Attempts:
2 left
💡 Hint
Consider how to keep both environments compatible during transition.
✗ Incorrect
Applying backward-compatible schema changes first ensures both environments work with the database, avoiding downtime during traffic switch.
❓ service_behavior
expert2:00remaining
Result of traffic switch in blue-green deployment with sticky sessions
In a blue-green deployment using an Application Load Balancer with sticky sessions enabled, what is the expected behavior immediately after switching traffic from blue to green environment?
Attempts:
2 left
💡 Hint
Sticky sessions bind users to a specific backend until session ends.
✗ Incorrect
Sticky sessions keep users bound to their original environment until the session expires, so existing users stay on blue while new users go to green.