nerdexam
Amazon

SAP-C02 · Question #350

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 st

The correct answer is B. Implement automated testing using AWS CodeBuild in a test environment.. https://aws.amazon.com/blogs/devops/performing-bluegreen-deployments-with-aws-codedeploy- and-auto-scaling-groups/ When one adopts go infrastructure as code, we need to test the infrastructure code as well via automated testing, and revert to original if things are not performing

Submitted by ngozi_ng· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

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?

Options

  • AAdapt the deployment scripts to detect and report CloudFormation error conditions when
  • BImplement automated testing using AWS CodeBuild in a test environment.
  • CUse plugins for the integrated development environment (IDE) to check the templates for errors,
  • DUse AWS CodeDeploy and a blue/green deployment pattern with CloudFormation to replace the

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    74% (14)
  • C
    5% (1)
  • D
    16% (3)

Explanation

https://aws.amazon.com/blogs/devops/performing-bluegreen-deployments-with-aws-codedeploy- and-auto-scaling-groups/ When one adopts go infrastructure as code, we need to test the infrastructure code as well via automated testing, and revert to original if things are not performing correctly.

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice