SAP-C02 Question 170
Select 3Your organization has a production workload running on Amazon ECS with an active CI/CD pipeline using AWS CodePipeline and CodeDeploy. The DevOps team plans to deploy a new application version but wants to ensure that any issues with the new deployment can be quickly rolled back with minimal downtime. Which change management processes and AWS features should you implement to meet this requirement?
- A
Configure an AWS CodeDeploy Blue/Green deployment strategy for ECS
- B
Enable manual approval actions in AWS CodePipeline for the production stage
- C
Use an AWS CloudFormation Change Set to preview infrastructure changes before deployment
- D
Leverage ECS task definitions with a 'canary' deployment strategy
- E
Configure automated rollback in AWS CodeDeploy for failed deployments
- F
Enable AWS Systems Manager Change Manager for all application deployments
Show answer and explanation
Correct answers: A, B, E
Explanation
To manage changes effectively for a production ECS workload, you should prioritize strategies that minimize downtime and enable quick rollbacks. A Blue/Green deployment strategy allows seamless traffic shifting between old and new versions. Manual approval actions in CodePipeline provide an additional layer of review for production changes. Lastly, automated rollback in CodeDeploy ensures a safety net for deployments, reverting to a stable state if issues arise.
- A. Correct.
Correct: Blue/Green deployment allows you to test the new version while keeping the old version running, enabling quick rollbacks if needed.
- B. Correct.
Correct: Adding manual approval actions ensures that deployments to production are reviewed before execution, reducing the risk of unintended changes.
- C. Incorrect.
Incorrect: While CloudFormation Change Sets are useful for previewing infrastructure changes, they do not directly manage application deployment or rollback in this scenario.
- D. Incorrect.
Incorrect: ECS task definitions support deployment strategies, but 'canary' is not a native feature for ECS. Blue/Green is more appropriate here.
- E. Correct.
Correct: Automated rollback in CodeDeploy ensures that failed deployments are reverted to the last known good state without manual intervention.
- F. Incorrect.
Incorrect: AWS Systems Manager Change Manager is useful for tracking and managing operational changes but does not directly implement rollback or deployment strategies.