Medium1 markMultiple Choice
Domain 2.1: Deployment StrategyDeploymentCodeDeployBlue/Green

AWS SAP-C02 · Question 43 · Domain 2.1: Deployment Strategy

A company is running a large-scale web application on Amazon EC2 instances behind an Application Load Balancer. They want to implement a blue/green deployment strategy to minimize downtime and risk during updates. The infrastructure is managed using AWS CloudFormation. Which approach requires the LEAST custom scripting and operational overhead?

Answer options:

A.

Use AWS CodeDeploy to manage the blue/green deployment, integrating it with the existing ALB and Auto Scaling groups.

B.

Update the CloudFormation template to create a second Auto Scaling group. Manually update the ALB listener rules to shift traffic.

C.

Use Amazon Route 53 weighted routing to shift traffic between two separate ALBs.

D.

Migrate the application to AWS Elastic Beanstalk and use the 'Swap Environment URLs' feature.

How to approach this question

Identify the native AWS deployment service that handles blue/green traffic shifting for EC2.

Full Answer

A.Use AWS CodeDeploy to manage the blue/green deployment, integrating it with the existing ALB and Auto Scaling groups.✓ Correct
Use AWS CodeDeploy to manage the blue/green deployment, integrating it with the existing ALB and Auto Scaling groups.
AWS CodeDeploy automates application deployments to Amazon EC2 instances. It natively supports blue/green deployments. CodeDeploy provisions the new (green) Auto Scaling group, deploys the new application version, registers the new instances with the ALB, shifts the traffic according to your rules (e.g., all at once, or linearly), and can automatically roll back if health checks fail.

Common mistakes

Choosing Route 53, which is less reliable for fast traffic shifting due to client-side DNS caching.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5

75 questions · hints · full answers · grading

More questions from this exam