Complete the code to identify the two environments used in blue-green deployment.
environments = ['[1]', 'green']
Blue-green deployment uses two identical environments named 'blue' and 'green'.
Complete the code to switch traffic to the new environment in blue-green deployment.
current_live_env = '[1]'
After deployment, traffic is switched to the 'green' environment to make it live.
Fix the error in the code that updates the live environment after deployment.
live_env = '[1]' # Should be the environment receiving traffic
The live environment should be the one receiving traffic, which is 'green' after deployment.
Fill both blanks to create a dictionary mapping environments to their status.
env_status = {'blue': '[1]', 'green': '[2]'}In blue-green deployment, one environment is 'active' (live) and the other is 'inactive' (standby).
Fill all three blanks to complete the deployment switch logic.
if current_env == '[1]': next_env = '[2]' else: next_env = '[3]'
The logic switches from 'blue' to 'green', or from 'green' back to 'blue'.