Soru

Zorluk: OrtaDeployment Strategies and Execution

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.)

  1. Configure the deployment group to use a Blue/Green deployment type and select the option to copy the existing Auto Scaling group.Cevap
  2. 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.Cevap
  3. C
    Configure the deployment group to perform an In-place deployment using the CodeDeployDefault.AllAtOnce deployment configuration.
  4. D
    Configure a CloudFormation stack update policy using AutoScalingRollingUpdate and set the RollbackConfiguration to disable rollback on failure to allow manual troubleshooting of instances.
  5. E
    Configure AWS Systems Manager Patch Manager with a custom Patch Baseline and use Patch Groups to manage application rollbacks on the instances.

Cevap

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.

Adım Adım Çözüm

1
Determine the deployment strategy that supports zero-downtime, preserves original instances for verification, and allows rapid traffic shifts.
Identify that a Blue/Green deployment (copying the Auto Scaling group) satisfies these requirements.
Blue/Green deployment creates a new environment, deploys the new version there, routes traffic to it, and keeps the original instances intact for a specified duration.
2
Configure the rollback mechanism to handle both deployment failures and operational metrics (application error spikes).
Enable automatic rollback on deployment failures and configure CloudWatch alarms for error spikes to trigger CodeDeploy rollbacks.
This configuration automates the reversion process without manual intervention, minimizing the duration of any application degradation.

Anahtar Kavram

AWS CodeDeploy Blue/Green deployment configurations and automatic rollback triggers.
Bu soruyu puanla