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?
Select one answer.
Marked answer: B
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
1
B is correct The current CI/CD pipeline has caused unplanned downtime due to recent resource changes in CloudFormation templates. To minimize this risk, implementing automated testing using AWS CodeBuild will help ensure that changes are thoroughly tested in a non-production environment before being deployed to production. Using CloudFormation change sets allows for evaluating the impact of changes before deployment, reducing the likelihood of unexpected issues during deployment. Adopting a blue/green deployment pattern with AWS CodeDeploy ensures minimal downtime and provides an option to revert changes if needed. By replacing user data scripts with automated deployments using AWS CodeDeploy, operators no longer have to manually log in to instances for testing, further reducing the likelihood of human error during the deployment process.
2
Answer: B Key word " blue/green deployment" and not D.. coz manual testing.