A CodeDeploy deployment failed with the error: “HEALTH-CONSTRAINTS — The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.” Which two issues could cause this failure? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: The CodeDeploy agent was not running on the target instances., The target instances were not configured with the required CodeDeploy health checks..
Why this is the answer
The CodeDeploy agent is essential for deployments; if it's not running, CodeDeploy cannot execute deployment commands on the instances, leading to deployment failures and health check issues. Similarly, if target instances lack proper CodeDeploy health check configurations, CodeDeploy cannot accurately assess instance health during deployment, potentially marking healthy instances as unhealthy or failing to detect actual issues, resulting in the "HEALTH-CONSTRAINTS" error. The unified CloudWatch agent is for monitoring, not directly for CodeDeploy execution. The developer's IAM role affects initiating deployments, not the health of instances during deployment. An IAM instance profile lacking permissions would typically cause a different error related to resource access, not health constraints.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed