QuestionQ88

VerifiedSDLC Automation

A company application runs on Amazon EC2 instances in an Auto Scaling group. A DevOps engineer must ensure that at least four application servers are running at all times. Whenever an application update is required, the engineer creates a new AMI with the updated configuration and updates the AWS CloudFormation template with the new AMI ID. After the stack update completes, the engineer manually terminates the old instances one at a time, confirming that each new instance is operational before continuing. The engineer needs to automate this process.

Which action will require the LEAST manual effort going forward?

Explanation

AWS CloudFormation's AutoScalingRollingUpdate update policy replaces Auto Scaling group instances in batches when the launch configuration or launch template changes. Configuring MinInstancesInService to 4 maintains at least four in-service application servers while old instances are updated, and WaitOnResourceSignals can make the rollout wait for new instances to report readiness before proceeding.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!