AWS DevOps Engineer Professional Practice Test

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

Prepare for the AWS DevOps Engineer Professional Test. Enhance your skills with flashcards and multiple-choice questions, each offering hints and explanations. Become exam-ready!

Practice this question and more.


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

  1. Set an instance monitoring tool

  2. Create a new Deployment Configuration with a minimum healthy host count

  3. Use an Auto Scaling group

  4. Manually monitor the instances

The correct answer is: 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.