Recall & Review
beginner
What is blue-green deployment?
Blue-green deployment is a technique where two identical environments (blue and green) run different versions of an application. Traffic is switched between them to deploy updates with minimal downtime.
Click to reveal answer
beginner
How does NGINX help in blue-green deployment routing?
NGINX acts as a reverse proxy that routes user traffic to either the blue or green environment based on configuration, enabling smooth switching between versions.
Click to reveal answer
beginner
What is the main benefit of blue-green deployment routing?
It reduces downtime and risk by allowing quick rollback to the previous version if the new version has issues.
Click to reveal answer
intermediate
Show a simple NGINX snippet to route traffic to the blue environment.
server {
listen 80;
location / {
proxy_pass http://blue_backend;
}
}
This routes all traffic to the blue environment backend.
Click to reveal answer
intermediate
What must you update in NGINX to switch traffic from blue to green?
You update the proxy_pass directive to point from the blue backend to the green backend, then reload NGINX to apply the change.
Click to reveal answer
What does blue-green deployment aim to minimize?
✗ Incorrect
Blue-green deployment minimizes downtime by switching traffic between two environments.
In NGINX, which directive is used to route traffic to a backend server?
✗ Incorrect
The proxy_pass directive forwards requests to the specified backend server.
What is the purpose of having two environments in blue-green deployment?
✗ Incorrect
Two environments allow switching traffic smoothly between versions.
How do you apply changes after updating NGINX configuration for blue-green routing?
✗ Incorrect
Reloading NGINX applies configuration changes without downtime.
Which environment is usually live before switching in blue-green deployment?
✗ Incorrect
Typically, the blue environment is live before switching to green.
Explain how NGINX can be configured to switch traffic between blue and green environments in a blue-green deployment.
Think about how NGINX forwards requests and how changing the proxy_pass target affects traffic.
You got /4 concepts.
Describe the main advantages of using blue-green deployment routing in production environments.
Consider what problems blue-green deployment solves compared to direct updates.
You got /4 concepts.