nerdexam
Amazon

DOP-C02 · Question #418

A company is experiencing failures in its AWS CodeDeploy deployments for a critical application. The application is deployed on Amazon EC2 instances. A DevOps engineer must analyze the failed…

The correct answer is C. Use Amazon CloudWatch Logs to review application logs. Analyze CodeDeploy deployment logs. CodeDeploy deployment logs in /opt/codedeploy-agent/deployment-root/ on the EC2 instances show detailed deployment steps and errors. Amazon CloudWatch Logs can capture application logs for additional context. AWS X-Ray helps trace requests through application components to…

Submitted by tyler.j· Mar 6, 2026Monitoring and Logging

Question

A company is experiencing failures in its AWS CodeDeploy deployments for a critical application. The application is deployed on Amazon EC2 instances. A DevOps engineer must analyze the failed deployments to identify the root cause of the failures. Which solution will provide the appropriate information to troubleshoot the deployment issues?

Options

  • AConfigure VPC Flow Logs to monitor network traffic. Use Amazon Inspector to detect non-
  • BEnable detailed monitoring on the EC2 instances. Use AWS Systems Manager Run Command to
  • CUse Amazon CloudWatch Logs to review application logs. Analyze CodeDeploy deployment logs
  • DExamine AWS Trusted Advisor checks for the CodeDeploy deployments. Use the AWS Health

How the community answered

(40 responses)
  • A
    10% (4)
  • B
    5% (2)
  • C
    83% (33)
  • D
    3% (1)

Explanation

CodeDeploy deployment logs in /opt/codedeploy-agent/deployment-root/ on the EC2 instances show detailed deployment steps and errors. Amazon CloudWatch Logs can capture application logs for additional context. AWS X-Ray helps trace requests through application components to identify runtime issues.

Topics

#AWS CodeDeploy#Troubleshooting#Amazon CloudWatch Logs#Application logs

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice