AWS Certified Solutions Architect – Professional — Question 231

A company is using AWS CodePipeline for the CI/CD of an application to an Amazon EC2 Auto Scaling group. All AWS resources are defined in AWS
CloudFormation templates. The application artifacts are stored in an Amazon S3 bucket and deployed to the Auto Scaling group using instance user data scripts.
As the application has become more complex, recent resource changes in the CloudFormation templates have caused unplanned downtime.
How should a solutions architect improve the CI/CD pipeline to reduce the likelihood that changes in the templates will cause downtime?

Answer options

Correct answer: B

Explanation

The correct answer is B, as it incorporates automated testing and CloudFormation change sets, which allow for better evaluation of changes prior to deployment, thus reducing the risk of downtime. Additionally, using AWS CodeDeploy with blue/green deployment patterns enables easy rollback if issues arise. The other options either rely too heavily on manual processes or do not sufficiently address the automation needed to prevent downtime.