A SysOps Administrator is configuring AWS CodeDeploy to deploy a new version of a critical web application hosted on a fleet of Amazon EC2 instances within an Auto Scaling group behind an Application Load Balancer. The deployment must minimize application downtime, automatically revert to the previous version if the deployment fails or if application errors spike, and allow manual verification on the original instances for a period before they are terminated. Which two configurations should the SysOps administrator apply to meet these requirements? (Select TWO.)
- Configure the deployment group to use a Blue/Green deployment type and select the option to copy the existing Auto Scaling group.Answer
- Configure the deployment group's automatic rollback options to roll back the deployment when a deployment fails or when a specified CloudWatch alarm is triggered.Answer
- CConfigure the deployment group to perform an In-place deployment using the CodeDeployDefault.AllAtOnce deployment configuration.
- DConfigure a CloudFormation stack update policy using AutoScalingRollingUpdate and set the RollbackConfiguration to disable rollback on failure to allow manual troubleshooting of instances.
- EConfigure AWS Systems Manager Patch Manager with a custom Patch Baseline and use Patch Groups to manage application rollbacks on the instances.
Answer
To meet the requirements, the SysOps administrator should configure the deployment group to use a Blue/Green deployment type by copying the existing Auto Scaling group, and configure the automatic rollback options to revert the deployment if it fails or if specified CloudWatch alarms are triggered.
A Blue/Green deployment type using the 'Copy Auto Scaling group' option creates a replacement environment and shifts traffic to it, ensuring zero downtime and keeping the original instances active for verification. Setting automatic rollback options to trigger on deployment failure or CloudWatch alarm thresholds ensures that the application is immediately reverted to the previous version when issues are detected.
Step-by-Step Solution
Key Concept
AWS CodeDeploy Blue/Green deployment configurations and automatic rollback triggers.