Question

Difficulty: EasyDeployment Strategy Design

An organization plans to deploy a new version of a stateless web application on Amazon EC2 instances managed by an Auto Scaling group. The primary requirement is to verify the new version in a completely isolated environment before routing any production traffic to it, and to support immediate rollback to the original version if any issues are detected. Which deployment strategy should the solutions architect choose to meet these requirements?

  1. Blue/green deploymentAnswer
  2. B
    Rolling deployment
  3. C
    All-at-once deployment
  4. D
    Canary deployment

Answer

Blue/green deployment
A blue/green deployment strategy creates two identical environments. The current version runs in the 'blue' environment, and the new version is deployed to the 'green' environment. This allows the solutions architect to test the green environment in isolation without affecting production traffic. Once verified, traffic is redirected to the green environment. If issues occur, traffic can be immediately switched back to the blue environment, meeting the requirement for rapid rollback.

Step-by-Step Solution

1
Analyze the requirement for isolated validation before routing any production traffic.
The strategy must allow deploying the new version to a separate environment where it can be tested without receiving public traffic.
This rules out in-place, rolling, and canary deployments which direct production traffic to the new version during the deployment phase.
2
Evaluate the rollback requirement.
The strategy must support immediate rollback to the previous version.
A blue/green deployment maintains the old version (blue) alongside the new version (green). If validation fails, traffic can be instantly routed back to the blue environment.

Key Concept

Selecting the appropriate deployment strategy to meet isolation and rollback speed requirements.
Rate this question