DOP-C02 Practice Question 61: CodeDeploy Minimum Healthy Hosts
AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 7 · question 1 of 10
A fleet of 20 EC2 instances behind a load balancer runs a monolithic application that is deployed with CodeDeploy using the EC2/On-Premises compute platform. The operations team wants a deployment to proceed in batches so that at least 75 percent of the fleet stays in service at all times, and they want the same percentage to apply automatically if the fleet is later resized. Which deployment configuration setting satisfies this requirement?
Show answer and explanation
Answer:
A FLEET_PERCENT minimum healthy hosts value scales automatically with the size of the deployment group, so 75 percent stays correct whether the fleet has 20 instances or 40. Option B (a HOST_COUNT of 15) hardcodes the number to today's fleet size; if the fleet grows or shrinks, 15 instances no longer represents 75 percent, so the requirement silently breaks. Option A (OneAtATime) keeps all but one instance healthy, which is a much stricter and slower rollout than 75 percent and is not tied to any percentage. Option D (AllAtOnce) has a minimum healthy hosts value of 0, meaning CodeDeploy considers the deployment successful even if only one instance succeeds, the opposite of keeping most of the fleet in service.
Reference: Working with deployment configurations in CodeDeploy