AWS DevOps Engineer Professional Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 170

How can you ensure a minimum of 6 EC2 instances remain healthy during a deployment using CodeDeploy?

Set an instance monitoring tool

Create a new Deployment Configuration with a minimum healthy host count

Creating a new Deployment Configuration with a minimum healthy host count is the appropriate approach to ensure that a specified number of EC2 instances remain healthy during a deployment using CodeDeploy. Deployment configurations in CodeDeploy allow you to control the deployment process, including how many instances should remain available while updates are being applied. By setting a minimum healthy host count, you can specify that at least six instances must remain healthy at all times throughout the deployment. This helps minimize downtime and ensures that your application continues to serve traffic while updates are happening. The deployment will pause or halt if the number of healthy instances drops below the specified count, providing a safeguard against disruptions. While instance monitoring tools can provide insights and alerts about the health of instances, they do not actively manage or dictate deployment strategies. Using an Auto Scaling group can help maintain a certain number of instances, but it is more focused on scaling based on traffic rather than managing the deployment's health directly. Manually monitoring instances is not an effective strategy for automated deployments, as it would require constant human oversight, which contradicts the principles of DevOps automation and efficiency.

Use an Auto Scaling group

Manually monitor the instances

Next

Report this question