A CI/CD pipeline needs to build an artifact, run integration tests, and then deploy only if tests pass. Which AWS approach is most aligned with this requirement?

Answer

Use AWS CodePipeline with stages (Build, Test, Deploy) and gate the Deploy stage on test success

Explanation

CodePipeline stages support a clear separation of duties and can prevent promotion to deploy until earlier stages succeed. This directly implements the “deploy only if tests pass” constraint.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list