Question 54 of 724
DVA-C02 Deployment Practice Question
A company uses AWS CodeDeploy to deploy a web application to an Auto Scaling group. The deployment fails with the error 'The overall deployment failed because too many individual instances failed deployment'. The deployment configuration is set to CodeDeployDefault.OneAtATime. What is the most likely cause of this failure?
⚠ Common exam trap
Test-takers frequently assume 'too many individual instances failed' means multiple instances failed independently, when in fact with OneAtATime a single instance failure is enough to fail the entire deployment because the minimum healthy hosts requirement is not maintained.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The deployment failed on a single instance, causing the overall deployment to fail because the minimum number of healthy hosts was not maintained.
CodeDeployDefault.OneAtATime deploys to one instance at a time. The deployment stops immediately if a single instance fails, because the deployment configuration expects no failures. The error 'too many individual instances failed' is triggered by that single failure, since the deployment cannot proceed to the next instance without violating the minimum healthy hosts requirement, which is set to maintain availability.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The instances in the Auto Scaling group are not running a supported operating system.
Why it's wrong here
If instances were running an unsupported operating system, the AWS CodeDeploy agent would likely fail to install, start, or communicate with the CodeDeploy service. This would typically result in errors indicating agent connectivity issues, instances not registering for deployment, or immediate deployment failures due to an inability to reach target instances, rather than a 'too many instances failed' error after deployment initiation.
- ✗
The deployment configuration should be changed to AllAtOnce to avoid this error.
Why it's wrong here
Changing the deployment configuration to AllAtOnce would instruct CodeDeploy to deploy the application to all target instances simultaneously. If the underlying issue causing instance failures persists, deploying to all instances at once would likely result in a complete failure across the entire fleet, rather than avoiding the error. This configuration does not prevent failures; it merely changes the deployment strategy, potentially exacerbating the impact of a widespread issue.
- ✗
The IAM role for CodeDeploy does not have sufficient permissions.
Why it's wrong here
Insufficient IAM permissions for the CodeDeploy service role or the EC2 instance profile would typically manifest as explicit 'Access Denied' errors. These errors would prevent CodeDeploy from performing actions like reading from S3, interacting with EC2 instances, or updating deployment statuses. Such permission-related failures are distinct from a deployment successfully initiating on instances but then failing due to application-level issues or lifecycle hook failures, which would lead to a 'too many instances failed' message.
- ✓
The deployment failed on a single instance, causing the overall deployment to fail because the minimum number of healthy hosts was not maintained.
Why this is correct
CodeDeploy deployment configurations, such as `CodeDeployDefault.OneAtATime`, often specify a minimum healthy host threshold, which can be 100%. If a deployment fails on even a single instance due to issues like a failed lifecycle hook or an application startup problem, it immediately violates this strict healthy host requirement. This single failure is sufficient to cause the entire deployment to stop or roll back, triggering an error that indicates the minimum number of healthy hosts could not be maintained.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 24, 2026
This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.