nerdexam
Amazon

DOP-C02 · Question #100

An application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). A DevOps engineer is using AWS CodeDeploy to release a new version. The deployment fails during the AllowTraffic

Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #100. The question stem and answer options stay visible for context.

Submitted by anna_se· Mar 6, 2026SDLC Automation

Question

An application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). A DevOps engineer is using AWS CodeDeploy to release a new version. The deployment fails during the AllowTraffic lifecycle event, but a cause for the failure is not indicated in the deployment logs. What would cause this?

Options

  • AThe appspec.yml file contains an invalid script that runs in the AllowTraffic lifecycle hook.
  • BThe user who initiated the deployment does not have the necessary permissions to interact with the
  • CThe health checks specified for the ALB target group are misconfigured.
  • DThe CodeDeploy agent was not installed in the EC2 instances that are part of the ALB target group.

Unlock DOP-C02 to see the answer

You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#CodeDeploy#ALB health checks#deployment failures#AllowTraffic hook
Full DOP-C02 Practice